This seems somewhat straightforward, but maybe it is not.
I'm experimenting with a 32-digital Input module, said to have "MODBUS RTU 03 06 command control mode". See attached.
I have it working (somewhat) using a simple Arduino sketch, verifying this example:
So next I'm trying to use the Radzio! Modbus Master Simulator. This app seems very simplistic, with few settings, but it doesn't work.
I have the serial port set correctly, and device setting I'm quite sure, but every frame returns 0 valid response and an error.
I have attached the manual and the Modbus RTU protocol paper that was included from the manufacturer.
Is there possibly a setting of this board, like "Input port status reporting" that must be set to enable the Modbus Master Simulator?
I'm trying to learn how this operates to create a simple input status indication display to use on the farm.
Any advice greatly appreciated.
I'm experimenting with a 32-digital Input module, said to have "MODBUS RTU 03 06 command control mode". See attached.
I have it working (somewhat) using a simple Arduino sketch, verifying this example:
Using the Arduino, the RS485 is from a MAX485 board connected to a serial port of an Arduino Nano, works great. With the Modbus Master Simulator, I'm using a USB to RS485 dongle I've had around a while. It is listed in the Win10P device manager as USB-Serial CH340 (COM8), and has the latest driver.For example: Read channel X00-X15 port value:
Send data(RS485 address is 1):01 03 00 C0 00 01 84 36
Returns data:01 03 02 00 80 B9 E4
01 RS485 address,03 Function,02 length,B9 E4 crc16,
00 80 represents the input status of X00-X15, the eighth bit is 1, the other bits are 0; it means that X07 has input, and other channels have no input
So next I'm trying to use the Radzio! Modbus Master Simulator. This app seems very simplistic, with few settings, but it doesn't work.
I have the serial port set correctly, and device setting I'm quite sure, but every frame returns 0 valid response and an error.
I have attached the manual and the Modbus RTU protocol paper that was included from the manufacturer.
Is there possibly a setting of this board, like "Input port status reporting" that must be set to enable the Modbus Master Simulator?
I'm trying to learn how this operates to create a simple input status indication display to use on the farm.
Any advice greatly appreciated.
Attachments
-
725.9 KB Views: 1
-
681.7 KB Views: 1