22_IOTPRO-ModbusRS485

Recommended

Field Name

ID - HEX

Size in Bytes

Description

Data Type

Uplink/

Downlink/

Both

telemetry_param_modbus_rtu_poll

0x000B

0

Command to poll the server for pending Modbus commands

N/A

Uplink

telemetry_param_modbus_rtu_result

0x659E

VAR_1B

Reports successful Modbus command result (0-length frame = success without reply)


Byte 1: Transaction Id, Byte 2: Frame Length (253 max.), Byte 3-X: Frame

Uplink

telemetry_param_modbus_rtu_error

0x177D

3

Reports an error for a Modbus command execution, including slave id

Byte 1: Transaction Id, Byte 2: (2: Timeout, 3: CRC Error, 4: Frame Error, 5: Truncated), Byte 3: Slave Id

Uplink

device_set_modbus_rtu_execute

0x659F

VAR_1B

Command to instruct the device to execute a Modbus command

Byte 1: Transaction Id, Byte 2: (0: No reply expected, 1: Reply expected), Byte 3: Frame Length (128 max.), Byte 4-X: Frame

Downlink

device_set_modbus_rtu_execute_repeat_slot_1

0x7149

VAR_2B

Command to instruct the device to execute a repeated Modbus command

Byte 1: (0: Disabled, 1: Enabled), Byte 2-3: Period in minutes, Byte 4: Number of commands (N); a payload length of 1 can be used to simply enable/disable the slot


Repeated sequence for N times: Byte 5: Transaction Id, Byte 6: (0: No reply expected, 1: Reply expected), Byte 7: Frame Length (128 max.), Byte 8-X: Frame

The entire length shouldn't exceed 488 bytes

Both

device_set_modbus_rtu_execute_repeat_slot_2

0x714A

VAR_2B

Same as above

Same as above

Both

device_set_modbus_rtu_execute_repeat_slot_3

0x714B

VAR_2B

Same as above

Same as above

Both

device_set_modbus_rtu_execute_repeat_slot_4

0x714C

VAR_2B

Same as above

Same as above

Both

device_set_modbus_rtu_execute_repeat_slot_5

0x714D

VAR_2B

Same as above

Same as above

Both

telemetry_param_pulse_count_channel_1

0x1F43

4

Pulse count of DIN1

Unsigned Integer

Uplink

telemetry_param_pulse_count_channel_2

0x1F44

4

Pulse count of DIN2

Unsigned Integer

Uplink

telemetry_param_pulse_count_channel_3

0x1F45

4

Pulse count of DIN3

Unsigned Integer

Uplink

telemetry_param_pulse_count_channel_4

0x1F46

4

Pulse count of DIN4

Unsigned Integer

Uplink

telemetry_param_state_channel_1

0x080A

1

State value

Boolean

Uplink

telemetry_param_state_channel_2

0x0819

1

State value

Boolean

Uplink

telemetry_param_state_channel_3

0x081A

1

State value

Boolean

Uplink

telemetry_param_state_channel_4

0x081B

1

State value

Boolean

Uplink

Optional

Field Name

ID - HEX

Size in Bytes

Description

Data Type

Uplink/

Downlink/

Both

device_set_modbus_baud_rate

0x1F59

4

Set the Modbus baud rate for communication

Unsigned Integer

Both

device_set_input_digital_mode_channel_1

0x0822

1

Set the input to off or a different mode

Unsigned Integer (0: Off, 1: Dry Contact, 2: Pulse)

Both

device_set_input_digital_mode_channel_2

0x0823

1

Set the input to off or a different mode

Unsigned Integer (0: Off, 1: Dry Contact, 2: Pulse)

Both

device_set_input_digital_mode_channel_3

0x0824

1

Set the input to off or a different mode

Unsigned Integer (0: Off, 1: Dry Contact, 2: Pulse)

Both

device_set_input_digital_mode_channel_4

0x0825

1

Set the input to off or a different mode

Unsigned Integer (0: Off, 1: Dry Contact, 2: Pulse)

Both

Example Packet

Packet (HEX)


ID1



Value1