ModbusTCPSlaveUnit (FB)¶
FUNCTION_BLOCK ModbusTCPSlaveUnit EXTENDS ModbusTCPSlaveBase
- InOut:
Scope
Name
Type
Initial
Comment
Input
xConfirmErrorBOOLFALSE
continue processing at rising edge
xDoInitBOOLTRUE
If true then xConfirmError also sends all reset init commands, false (old behaviour)
Output
xInitDoneBOOLFALSE
All init commands have been processed
xBusyBOOLFALSE
Is TRUE as long as a request is in progress
xDoneBOOLFALSE
Is TRUE if a request finished successfully
xErrorBOOLFALSE
Is TRUE if any error occurred. Communication to this Slave is suspended.
byModbusErrorMB_ErrorCodes.UNDEFINED
Specifies the current error as defined in the “MB_ErrorCodes” enumeration
iChannelIndexINT-1
usiUnitIDUSINT