EcatState (FB)

FUNCTION_BLOCK EcatState

Function block to get coupler’s current state of synchronisation

InOut:

Scope

Name

Type

Initial

Comment

Input

Execute

BOOL

Device

IDeviceCM579EtherCAT

CM579-ECAT coupler device

Output

Done

BOOL

Busy

BOOL

Error

BOOL

ErrorID

ERROR_ID

Error code describing error condition

AddErrNo

UDINT

Additional error code for detailed error description, will be set if ErrorID = ERROR_ID.ADDITIONAL_ERROR_INFO.

CommState

UDINT

0

Communication state

CommErno

UDINT

0

Communication error

NumErr

BYTE

0

Number of errors occured since power up