Micromod MOD: MODBUS RTU Communications Guide User Manual
Page 17
MODBUS RTU
COMUNICATIONS GUIDE
13
INPUT CONVERT BLOCK
One expression block is required for each analog value read from the slave instrument, for data type
conversion. The expression is as follows:
if Input > 32767 then (Input - 65536.0) / Scaler
else Input / Scaler
Input is a COUNT value which is read from the slave instrument.
Scaler is the FLOATING-POINT result of the Scaler block.
OUTPUT CONVERT BLOCK
One expression block is required for each analog value written to the slave instrument, for data type
conversion. The expression is as follows:
if (Output * Scaler) > 32767.0 then 32767 else
if (Output * Scaler) < -32768.0 then 32768 else
if Output >= 0 then Output * Scaler else
65536.0 + (Output * Scaler)
Output is the FLOATING-POINT number to be converted to a COUNT, and send to the slave instrument.
Scaler is the FLOATING-POINT result of the Scaler block.