13.2.37. serial_communication_hub

This interface provides multiplexed access to one serial port (e.g. RS485) for multiple clients.

13.2.37.1. Commands

modbus_read_holding_registers:object
Send a Modbus RTU ‘read holding registers’ command via serial interface to the target hardware. (return value: response)
target_device_id:integer <required>
ID (1 byte) of the device to send the commands to
first_register_address:integer <required>
Start address for read operation (16 bit address)
num_registers_to_read:integer <required>
Number of registers to read (16 bit each)
Result of the transfer
There is an extended definition for this object here.
modbus_read_input_registers:object
Send a Modbus RTU ‘read input registers’ command via serial interface to the target hardware. (return value: response)
target_device_id:integer <required>
ID (1 byte) of the device to send the commands to
first_register_address:integer <required>
Start address for read operation (16 bit address)
num_registers_to_read:integer <required>
Number of registers to read (16 bit each)
Result of the transfer
There is an extended definition for this object here.
modbus_write_multiple_registers:string
Send a Modbus RTU ‘write multiple registers’ command via serial interface to the target hardware. (return value: response)
target_device_id:integer <required>
ID (1 byte) of the device to send the commands to
first_register_address:integer <required>
Start address for write operation (16 bit address)
data_raw:object <required> (serial_comm_hub_requests-VectorUint16)
Data content to be written to the above selected registers (in 16 bit words)
There is an extended definition for this object here.
Status code of the transfer
There is an extended definition for this object here.
modbus_write_single_register:string
Send a Modbus RTU ‘write single register’ command via serial interface to the target hardware. (return value: response)
target_device_id:integer <required>
ID (1 byte) of the device to send the commands to
register_address:integer <required>
Address of the register to write to (16 bit address)
data:integer <required>
Data content to be written to the above selected register
Status code of the transfer
There is an extended definition for this object here.
nonstd_write:void
Non standard mode to write registers in read discrete input mode without waiting for reply. Used e.g. by GYDCG-UBC1 isolation monitor.
target_device_id:integer <required>
ID (1 byte) of the device to send the commands to
first_register_address:integer <required>
Start address for read operation (16 bit address)
num_registers_to_read:integer <required>
Number of registers to read (16 bit each)
nonstd_read:object
Non standard mode to read registers in read coils mode, but getting a malformed reply. Used e.g. by GYDCG-UBC1 isolation monitor.
target_device_id:integer <required>
ID (1 byte) of the device to send the commands to
first_register_address:integer <required>
Start address for write operation (16 bit address)
num_registers_to_read:integer <required>
Number of registers to read (16 bit each)
Result of the transfer
There is an extended definition for this object here.