ModbusSlaveComPort
(FB)
FUNCTION_BLOCK ModbusSlaveComPort EXTENDS IoDrvModbusBase.ModbusSerialSlaveBase
This block is generated for each serial Modbus slave in the device tree.This function block represents the logical connection to an individual Modbus serial slave. The channels defined for this device are processed in the background. The inputs and outputs of this block provide status information to the user and allow the ability to confirm occurring errors (in order to continue processing).
- InOut:
Scope
Name
Type
Initial
Comment
Output
byModbusError
MB_ErrorCodes.UNDEFINED
Specifies the current error as defined in the “MB_ErrorCodes” enumeration
iChannelIndex
INT
-1