Chapter 2: Setup and Operation
Stride MQTT Gateway User Manual, 1st Edition
2-8
• Enter a
Variable name
.
• Enter the Modbus
Address
for the variable.
• Select the Modbus
Function Code
to read the variable and to write the variable if not read-only.
Valid function codes for each variable type are shown below.
Modbus Read Function Codes
Variable Type
Read Function Codes
Write Function Codes
1 bit
01 - Read Coil Status
02 - Read Input Status
05 - Force Single Coil
15 - Force Multiple Coils
16 bit (INT)
03 - Read Holding Registers
04 - Read Input Registers
06 - Preset Single Register
16 - Preset Multiple Registers
32 bit (INT) Big endian
16 - Preset Multiple Registers
32 bit (INT) Little endian
32 bit (FP) Big endian
32 bit (FP) Little endian
• To linearly scale the values, if desired, define two raw measured values,
Measured value 1
and
Measured value 2
, and enter the desired final values for each, respectively, as
Engineering value 1
and
Engineering value 2
.
• If
Validity
is checked, set an additional
Address
to be compared to a preset
Value
to determine
current validity of the variable’s data.
Configure MQTT Topics
Enable the checkbox by each variable to be sent via MQTT or controlled via MQTT, and enter the MQTT
message parameters.
NOTE:
The MQTT Gateway allows arbitrary naming of message topics. Your MQTT broker may require that
topic names have a particular structure.