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.
Properties:
AutoSetOperational, inherited from IoDrvEtherCAT
BusLoad, inherited from IoDrvEtherCAT
CheckLastPort, inherited from IoDrvEtherCAT
ConfigRead, inherited from IoDrvEtherCAT
DCClockReferenceTime, inherited from IoDrvEtherCAT
DCInSyncWindow, inherited from IoDrvEtherCAT
DCIntegralDivider, inherited from IoDrvEtherCAT
DCPropFactor, inherited from IoDrvEtherCAT
DCSyncToMaster, inherited from IoDrvEtherCAT
DCSyncToMasterWithSysTime, inherited from IoDrvEtherCAT
DCSyncToMasterWithSysTimeFrom2000, inherited from IoDrvEtherCAT
EnableTaskOutputMessage, inherited from IoDrvEtherCAT
EnableTimeMeasurements, inherited from IoDrvEtherCAT
FirstPortActive, inherited from IoDrvEtherCAT
FirstSlave, inherited from IoDrvEtherCAT
FrameAtTaskStart, inherited from IoDrvEtherCAT
InstanceNumber, inherited from IoDrvEtherCAT
LastError, inherited from IoDrvEtherCAT
LastInstance, inherited from IoDrvEtherCAT
LastMessage, inherited from IoDrvEtherCAT
MasterState, inherited from IoDrvEtherCAT
NbrSlavesFirstPort, inherited from IoDrvEtherCAT
NbrSlavesSecondPort, inherited from IoDrvEtherCAT
NextInstance, inherited from IoDrvEtherCAT
NumberActiveSlaves, inherited from IoDrvEtherCAT
OpenTimeout, inherited from IoDrvEtherCAT
PdoOnlyInOperational, inherited from IoDrvEtherCAT
SecondPortActive, inherited from IoDrvEtherCAT
SplitFrame, inherited from IoDrvEtherCAT
StartConfigWithLessDevice, inherited from IoDrvEtherCAT
TaskSync, inherited from IoDrvEtherCAT
WaitForPackets, inherited from IoDrvEtherCAT
Methods:
CheckCurrentSupportedCommunicationState
CheckSupportedCommunicationState
ClearStatistics, inherited from IoDrvEtherCAT
DeviceIsInvisible, inherited from IoDrvEtherCAT
EtherCAT_Task, inherited from IoDrvEtherCAT
GetCurrentTimeInCycle, inherited from IoDrvEtherCAT
GetStatistics, inherited from IoDrvEtherCAT
Structure:
- CheckCurrentSupportedCommunicationState (Method)
- CheckSupportedCommunicationState (Method)
- GetBusDiagnosisInfo (Method)
- GetBusErrorAsync (Method)
- GetBusInfo (Method)
- GetBusScanAsync (Method)
- GetBusState (Method)
- GetDeviceDiagnosisInfo (Method)
- GetDeviceErrorAsync (Method)
- GetDeviceInfo (Method)
- GetDeviceState (Method)
- GetLogger (Method)
- GetQoS (Method)
- GetSpecificBusState (Method)
- GetSpecificDeviceErrorAsync (Method)
- GetSpecificDeviceState (Method)
- INode
- SetCommunicationState (Method)