11.2.32. serial_communication_hub¶
This interface provides multiplexed access to one serial port (e.g. RS485) for multiple clients.
11.2.32.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
ID (1 byte) of the device to send the commands to
first_register_address:integer
Start address for read operation (16 bit address)
num_registers_to_read:integer
Number of registers to read (16 bit each)
Result:object (serial_comm_hub_requests-Result)
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
ID (1 byte) of the device to send the commands to
first_register_address:integer
Start address for read operation (16 bit address)
num_registers_to_read:integer
Number of registers to read (16 bit each)
Result:object (serial_comm_hub_requests-Result)
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
ID (1 byte) of the device to send the commands to
first_register_address:integer
Start address for write operation (16 bit address)
data_raw:object (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.
Result:string (serial_comm_hub_requests-StatusCodeEnum)
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
ID (1 byte) of the device to send the commands to
first_register_address:integer
Start address for read operation (16 bit address)
num_registers_to_read:integer
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
ID (1 byte) of the device to send the commands to
first_register_address:integer
Start address for write operation (16 bit address)
num_registers_to_read:integer
Number of registers to read (16 bit each)
Result:object (serial_comm_hub_requests-Result)
Result of the transfer
There is an extended definition for this object here.