ModbusTCPDeviceDiag (FB)ΒΆ
FUNCTION_BLOCK ModbusTCPDeviceDiag EXTENDS CAADiagDeviceDefault
This fucntion block is generated for the Modbus TCP slave device in the device tree if generic DIagnosis is activated.
- InOut:
Scope
Name
Type
Initial
Comment
Input
xEnableBOOLTRUE
TRUE : start operation, open socketsOutput
xOnlineBOOLTCP Port opened, ready for receiving request.
xInternalErrorBOOLFALSE
Unrecoverable internal error (e.g. if mem-alloc fails or no license)
ErrorCodeUDINTerror code
PortUINTPort Number
uiClientConnectionsUINTnumber of currently established client connections (TCP/IP)
xTimeoutBOOLTimeout (if configured) expired. Holding Registers and Coils are set to zero.
Methods:
Structure: