
485 TO ETH (B) User Manual
13
/
36
Then click "Design Next".
8. Go to step 2.2.2 to design "alarm2": The method is similar to alarm1, and the register
address is set to 1. Similarly, first click "Design Next", and then in the "2.2.3" step, click
"Return to the previous level".
9. Enter section 2.3, because 2.3 does not need to be designed, click "return to previous
level" at this time. Because there is still "value": 2345 is not designed, otherwise you can
directly "save the design".
10. Enter section 3. Here, design a Modbus data with the keyword value. Now click "Save
Design". Note: If the "value": 2345 does not exist here, then you need to click save directly
in the previous step. If you have accidentally clicked "return to the previous level" to enter
the third here, but the third does not exist, you can use it at this time The new version of
vircom "Delete and go to the next" to delete this useless node.
11. Back to the JSON to Modbus RTU setting interface, click "Save JSON Settings". Then
download it to the inside of the device and use it.
When the TCP connection is established, the data is received:
{"header":{"DEVID":"2850002F0EEC","time":"2019-05-13
23:41:26"},"data":{"id":"MyData123456","alarm":{"alarm1": 123.4C," alarm2":"
567.8C"}},"value": 2345}
Note that if you are editing the current JSON design, you need to select the correct
destination on the web download interface first.In addition, click the button in accordance
with the design-time steps to fully browse all nodes.
3.3. READ THE BITS OF THE BYTE REGISTER
Sometimes the data read by Modbus using the 03/04 function code will also use bits to
express specific meanings. For example, the register of the 00 00 address read by the 03
function code is 0x8183, then bit16, bit9, bit8, bit2 and bit1 are included. All are 1. These
bits have different meanings. When they are 1, they indicate different alarms. So you also
need to upload with different json keywords. Methods as below: