Table of Contents

IEthercatSyncUnit

Namespace
ZCore
Extends
Inherited Properties
Inherited Methods
INTERFACE IEthercatSyncUnit EXTENDS ZCore.IBootable, ZCore.IObject, ZCore.IError

This interfaces holds the general methods that the Zeugwerk Framework expects from an ethercat syncunit. Implementations may be provided in a platform dependent library, i.e. (The beckhoff platform-library).

Methods

EthercatStateFlags

METHOD EthercatStateFlags () : EthercatSyncUnitStateFlags

This method returns the state of the EtherCAT sync unit in a flags enum. This means that several bits of the returned value can be on or off at once.

Returns

EthercatSyncUnitStateFlags

Name

METHOD Name () : ZString

This method returns the name of the ethercat syncunit that has been set with SetName. This is somehow usefull if there are more than one ethercat syncunit instances present.

Returns

ZString

SyncUnitStatistic

METHOD SyncUnitStatistic (
 [inout] statistic : EthercatSyncUnitStatistic)

InOuts

statistic EthercatSyncUnitStatistic

WcState

METHOD WcState () : BOOL

The method returns the state of the working counter for the ethercat syncunit whose Process Data Objects are mapped to this instance. It is an easy way to find out if data is sent and received correctly to the device. If any error occurs, this objects additionally transitions into its error state (for at least 1 cycle) and ErrorMessage can be used to retrieve informations about the error.

Returns

BOOL