UR5 interface with STM32 and servo

If your STM32F103 supports Modbus TCP, then yes. But it’s up to you to figure out how to configure that part. :slight_smile:
You can find articles about Modbus and UR here: Articles | Support site | Universal Robots