The “Generic Modbus” application does not provide status bits values in binary
Issue:
The “Generic Modbus” application does not provide status bits values in binary
Product line:
Generic Modbus Application or Similar application
Environment:
Generic Modbus Application or Similar application
Cause:
The “Generic Modbus” application does not provide status bits values in binary
Resolution:
Take the value provided by the application and convert it to binary by using a calculate like the one provided by Windows. If using the Windows calculator, you may have to change the calculator to scientific or Programmer mode to accomplish this conversion.
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
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