LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I view input registers in Modbus in hex?

Solved!
Go to solution

I am connected serially to a relay and when reading the input register at address 1, I get 580 which is the version of the relay firmware and hence is correct. Is there any way, I could get the output as the complete modbus header ie: (additional address:function code:data:error check/crc) eg: Fe,02,44,80,00,02,F8,DC?

 

Also when I am trying to write to a single coil which is the reset for the system, I do not know what address to use for the write single coil block. I know the function code is 5 and the operation code for this relay is 0001 but don't know how or where to use the operation code?

 

Attached is the VI used to read the register as well as the documentation on the reset command and Modbus application for the relay

Download All
0 Kudos
Message 1 of 4
(3,143 Views)

I'm not sure I understand your question. Page B-4 of the manual you uploaded shows exactly what you need to send for a reset.

 

I also don't understand what you are trying to do with your program. Is this intended to send a reset all the time?

0 Kudos
Message 2 of 4
(3,135 Views)

I want to reset the relay. Based on the PDF document from above and using the VI below, do I format the reset command in labview in hex or decimal? In the document the command for reset is 11,05,00,01,FF,00,DF,6A. Do I enter it in the text box as 11,05,00,01,FF,00,DF,6A or as 11050001FF00DF6A or as <11><05> etc or do I convert it to decimal and then enter it. And does the VI look write for what i am trying to do?

0 Kudos
Message 3 of 4
(3,125 Views)
Solution
Accepted by topic author jbs87

Set your "String to Write" control to hex display.  Then type in the hex values.

0 Kudos
Message 4 of 4
(3,118 Views)