I'm using modbus_t to establish communication between PC and Siemens PLC (I'm not so familiar with modbus.h library). To read and write, I'm using
modbus_write_registers()
modbus_read_registers()
to realise vehicle control. However these two functions takes around 200ms, respectively, which is too long and fails to reach the minimum control frequency.
So, I want to ask if this is the common situation for these two functions, or caused by hardware?