IoDrvEthercat_Diag
(FB)
FUNCTION_BLOCK IoDrvEthercat_Diag EXTENDS IoDrvEtherCAT IMPLEMENTS DED.IBus, DED.IStack, DED.IReconfigureProvider
Implicit extended Master Instance
Extended instance of IoDrvEtherCAT with device diagnosis functions
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
xRestart
BOOL
FALSE
Rising edge: The master is restarted and all configuration parameters are reloaded.
xStopBus
BOOL
FALSE
Stop the bus when signal is true
Output
xConfigFinished
BOOL
TRUE: Transfer of all configuration parameters was completed with no errors. Communication is running on the bus.
xDistributedClockInSync
BOOL
If distributed clocks are used, then the PLC is synchronized with the first EtherCAT slave with the DC option activated. The output is TRUE as soon as the synchronization is ended successfully. This signal can be used, for example, for activating SoftMotion function blocks when the PLC is in synchronous mode. Otherwise position jumps can occur. When starting the PLC, the output is FALSE and switches to TRUE after a few seconds. If the synchrony is lost due to an error, then the output is reset to FALSE.
xError
BOOL
The output is TRUE when an error occurs when starting the EtherCAT stack, or communication with the slaves is interrupted because no more messages can be received (for example, due to a damaged cable).
xSyncInWindow
BOOL
The output is TRUE when the Sync Window Monitoring option is activated and the synchronization of all slaves is within the Sync Window.
IoDrvEthercat_Diag.CheckCurrentSupportedCommunicationState
(METH)IoDrvEthercat_Diag.CheckSupportedCommunicationState
(METH)IoDrvEthercat_Diag.GetBusDiagnosisInfo
(METH)IoDrvEthercat_Diag.GetBusErrorAsync
(METH)IoDrvEthercat_Diag.GetBusInfo
(METH)IoDrvEthercat_Diag.GetBusScanAsync
(METH)IoDrvEthercat_Diag.GetBusState
(METH)IoDrvEthercat_Diag.GetDeviceDiagnosisInfo
(METH)IoDrvEthercat_Diag.GetDeviceErrorAsync
(METH)IoDrvEthercat_Diag.GetDeviceInfo
(METH)IoDrvEthercat_Diag.GetDeviceState
(METH)IoDrvEthercat_Diag.GetLogger
(METH)IoDrvEthercat_Diag.GetQoS
(METH)IoDrvEthercat_Diag.GetSpecificBusState
(METH)IoDrvEthercat_Diag.GetSpecificDeviceErrorAsync
(METH)IoDrvEthercat_Diag.GetSpecificDeviceState
(METH)INode
IoDrvEthercat_Diag.ChildNodeCount
(PROP)IoDrvEthercat_Diag.Connector
(PROP)IoDrvEthercat_Diag.Enable
(PROP)IoDrvEthercat_Diag.FirstChildNode
(PROP)IoDrvEthercat_Diag.Index
(PROP)IoDrvEthercat_Diag.IsRootNode
(PROP)IoDrvEthercat_Diag.NextSiblingNode
(PROP)IoDrvEthercat_Diag.ParentNode
(PROP)IoDrvEthercat_Diag.SiblingNodeCount
(PROP)
IoDrvEthercat_Diag.SetCommunicationState
(METH)