IoDrvModbusComPort
(FB)
FUNCTION_BLOCK IoDrvModbusComPort EXTENDS IoDrvModbusBase.IoDrvModbusBase IMPLEMENTS ICmpIoDrvParameter
This function block is generated for each serial Modbus master in the device tree.
- InOut:
Scope
Name
Type
Initial
Comment
Input
xStop
BOOL
FALSE
Stops sending any new requests to the Slaves if TRUE, continues if FALSE
xResetComPort
BOOL
FALSE
Closes and immediately reopens the COM Port on a rising edge
Output
uiNumberOfCommunicatingSlaves
UINT
0
Displays the number of communicating Slaves
xAllSlavesOk
BOOL
FALSE
Is TRUE if all Slaves are communicating, is FALSE if some Slaves have errors