ETCSlave_Diag (FB)
FUNCTION_BLOCK ETCSlave_Diag EXTENDS ETCSlave IMPLEMENTS IDevice2
Implicit extended Instance of Slave
Extended instance of ETCSlave with device diagnosis functions
- InOut:
Scope
Name
Type
Comment
Inherited from
Input
xSetOperationalBOOLRising edge: An attempt is made to switch to the ETC_SLAVE_OPERATIONAL mode.
ETCSlaveStack
Output
wStateETC_SLAVE_STATECurrent state of the slave:
0: ETC_SLAVE_BOOT
1: ETC_SLAVE_Init
2: ETC_SLAVE_PREOPERATIONAL
4: ETC_SLAVE_SAVEOPERATIONAL
8: ETC_SLAVE_OPERATIONAL
Configuration was successfully completed.
If errors occur during the configuration, the slave can fall back into an earlier state.
ETCSlaveStack
Properties:
ChildNodeCount
Connector
Enable
FirstChildNode
Index
IsRootNode
NextSiblingNode
ParentNode
SiblingNodeCount
Methods:
CheckCurrentSupportedCommunicationState
CheckSupportedCommunicationState
GetDeviceDiagnosisInfo
GetDeviceErrorAsync
GetDeviceInfo
GetDeviceState
GetSpecificDeviceErrorAsync
GetSpecificDeviceState
SetCommunicationState
Structure:
ETCSlave_Diag.CheckCurrentSupportedCommunicationState(METH)ETCSlave_Diag.CheckSupportedCommunicationState(METH)ETCSlave_Diag.GetDeviceDiagnosisInfo(METH)ETCSlave_Diag.GetDeviceErrorAsync(METH)ETCSlave_Diag.GetDeviceInfo(METH)ETCSlave_Diag.GetDeviceState(METH)ETCSlave_Diag.GetSpecificDeviceErrorAsync(METH)ETCSlave_Diag.GetSpecificDeviceState(METH)INodeETCSlave_Diag.SetCommunicationState(METH)