ModbusTCPSlave_Diag (FB)
FUNCTION_BLOCK ModbusTCPSlave_Diag EXTENDS ModbusTCPSlave IMPLEMENTS IDevice
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Output
xInitDoneBOOLFALSE
xBusyBOOLFALSE
Is TRUE as long as a request is in progress
xDoneBOOLFALSE
Is TRUE if a request finished successfully
xErrorBOOLFALSE
Is TRUE if a request finished unsuccessfully
byModbusErrorMB_ErrorCodes.UNDEFINED
Specifies the current error as defined in the “MB_ErrorCodes” enumeration
ComSettingsComStateModbusTCPComState.OFF
iChannelIndexINT-1
Input
xConfirmErrorBOOLFALSE
continue processing at rising edge
xDoInitBOOLTRUE
If true then xConfirmError also sends all reset init commands, false (old behaviour)
IDeviceModbusTCPSlave_Diag.GetDeviceDiagnosisInfo(METH)ModbusTCPSlave_Diag.GetDeviceErrorAsync(METH)ModbusTCPSlave_Diag.GetDeviceInfo(METH)ModbusTCPSlave_Diag.GetDeviceState(METH)ModbusTCPSlave_Diag.GetSpecificDeviceErrorAsync(METH)ModbusTCPSlave_Diag.GetSpecificDeviceState(METH)ModbusTCPSlave_Diag.SetCommunicationState(METH)
INode