You have no items in your shopping cart.

New HIDS Drum Scales!

Click Here to Learn More!
Support: 858-292-2710

How do I send or read an integer BCD number using the HI 1746WS?

Last updated 10/02/2014 09:45 AM

Question

How do I send or read an integer BCD number that I recognize through the RSLogix 500 software into the HI 1746WS module to change the setpoints? The address that this information occupies appears to take up 32 bits and I don't understand how to convert this to a number that I can recognize. Is there some kind of math instruction that I can use to convert the bit status on these two words to a single word integer? Can I apply these changes directly to the input/output table without going through the MO/MI files?

Answer

There are three ways to send a setpoint value to the HI 1746WS module. One would be to use the SETPARAM command. The second would be to write it directly into the M0 file (only available on modules with 2.0 or higher firmware). The third way would be to write the value into the output table.

The two words designated for each setpoint value should be treated as a 32 bit word that has been split in half to become the MSW and LSW in the table.

NOTE: Care should be taken when working with large values (anything above 32767) as your PLC will not interpret these large values correctly. They need to be converted to floating point values to read them correctly. Also note that the format of all 4 byte values, including setpoints, is controlled by the MULTIPLIER setting to determine if value is integer or floating point format.

If you are working with a BCD value, you can use the FRD instruction to convert this to an integer value. You can use the TOD instruction to convert from integer back to BCD if needed.