Modbus device integration to I/A Series R2 requires encode and decode of integer type registers to bytes.

Issue

Modbus device integration to I/A Series R2 requires encode and decode of integer type registers to bytes. In this particular case, the Modbus device is a Patterson-Kelly ENVI boiler where the HIGH byte and LOW byte of a standard Modbus integer represent individual values.  However, the solution can be applied to other devices as required.

Product Line

TAC I/A Series

Environment

I/A Series R2, Modbus

Cause

Application - integration of Modbus into I/A Series R2

Resolution

The attached R2 program objects can be used to encode or decode values as required.

ModbusIntToBytes - Program will take the input integer value and decode to individual byte values as float status type values.

ModbusBytesToInt - Program will take individual float status type values and encode bytes to a Modbus integer.

Download ModbusIntBytePgms zip file ...