Hi,
I am trying to design Modbus UDP driver. I have already designed and tested Modbus TCP and RTU drivers. Now the requirement is to send the Modbus request using UDP/IP in addition to TCP/IP.
I have changed the Socket create message parameter 'Type' to 2 i.e. UDP (1 for TCP) but it does not seem to work. The socket is created and connected successfully , but my read/write messages not working. Write message showing no error but not sure where it is writing to? Read message showing error 0xff with extended error code 16#0046 which seem like if both read/write are triggered at the same time. It is definitely not the case as I have used not read/write enable to trigger the next message.
I am also not sure if I am testing it correctly. I have modbus simulator downloaded which I have used for Modbus TCP testing and works fine. Not sure if it allows Modbus RTU so I am open to test if using two EN2T modules in the same rack if some one please guide me how. Thanks
I am trying to design Modbus UDP driver. I have already designed and tested Modbus TCP and RTU drivers. Now the requirement is to send the Modbus request using UDP/IP in addition to TCP/IP.
I have changed the Socket create message parameter 'Type' to 2 i.e. UDP (1 for TCP) but it does not seem to work. The socket is created and connected successfully , but my read/write messages not working. Write message showing no error but not sure where it is writing to? Read message showing error 0xff with extended error code 16#0046 which seem like if both read/write are triggered at the same time. It is definitely not the case as I have used not read/write enable to trigger the next message.
I am also not sure if I am testing it correctly. I have modbus simulator downloaded which I have used for Modbus TCP testing and works fine. Not sure if it allows Modbus RTU so I am open to test if using two EN2T modules in the same rack if some one please guide me how. Thanks