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.

IoDrvEtherCAT

xStopBus

BOOL

FALSE

Stop the bus when signal is true

IoDrvEtherCAT

Output

xConfigFinished

BOOL

TRUE: Transfer of all configuration parameters was completed with no errors. Communication is running on the bus.

IoDrvEtherCAT

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.

IoDrvEtherCAT

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).

IoDrvEtherCAT

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

Properties:

AutoSetOperational, inherited from IoDrvEtherCAT

BusLoad, inherited from IoDrvEtherCAT

CheckLastPort, inherited from IoDrvEtherCAT

ChildNodeCount

ConfigRead, inherited from IoDrvEtherCAT

Connector

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

Enable

EnableTaskOutputMessage, inherited from IoDrvEtherCAT

EnableTimeMeasurements, inherited from IoDrvEtherCAT

FirstChildNode

FirstPortActive, inherited from IoDrvEtherCAT

FirstSlave, inherited from IoDrvEtherCAT

FrameAtTaskStart, inherited from IoDrvEtherCAT

Index

InstanceNumber, inherited from IoDrvEtherCAT

IsRootNode

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

NextSiblingNode

NumberActiveSlaves, inherited from IoDrvEtherCAT

OpenTimeout, inherited from IoDrvEtherCAT

ParentNode

PdoOnlyInOperational, inherited from IoDrvEtherCAT

SecondPortActive, inherited from IoDrvEtherCAT

SiblingNodeCount

SplitFrame, inherited from IoDrvEtherCAT

StartConfigWithLessDevice, inherited from IoDrvEtherCAT

TaskSync, inherited from IoDrvEtherCAT

WaitForPackets, inherited from IoDrvEtherCAT

Methods:

Structure: