IoDrvOnboardEtherCAT (FB)

FUNCTION_BLOCK PUBLIC IoDrvOnboardEtherCAT EXTENDS IoDrvEtherCAT IMPLEMENTS IAC500OnboardEtherCATMaster

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