Technical FAQs

Ask a Question

​How to read Modbus Status bits

Issue:
How to read Modbus Status bits

 

Product line:
All products


Environment:
All products


Cause:
How to read Status bits



Resolution:
Using a Modbus tool like Generic Modbus Tester you receive the values in the two examples below.  The Generic Modbus tester does not provide binary values so the examples below shows the conversion.  If the application used provides binary then keep that part.

 

Below is a couple of examples from a Galaxy VX:

Example 1:  Register 400002 (16385)

16385 in BIN 100 000 0000 0001

This example has 14 bits and to get to 16 bits two zeros were added to the left (red text)

10 0000 0000 0001 is 0010 0000 0000 0001

Below is the mapping of the bits to the Modbus registers to the Galaxy VX.  You start the with zero on the right and end with 15 on the left.


 

Example 2:  Register 400010 (512)

512 in BIN 10 0000 0000

This example has 10 bits so six bits needs to be added to the left (red text)

10 0000 0000 is 000 0010 0000 0000

Below is the mapping of the bits to the Modbus registers to the Galaxy VX.  You start the with zero on the right and end with 15 on the left.

Was this helpful?
What can we do to improve the information ?