ECATWCStatus

PLCopen motion icon Pipe Network motion icon

 Function - Returns the current number of working counter errors for the Sync unit.

Inputs

Input

Data Type

Range

Unit

Default

Description

SyncUnit

INT

-32768 to +32767

N/A

No default

Sync Unit Index

Outputs

Output

Data Type

Range

Unit

Description

Count

UDINT

No range

N/A

Working Counter error.

Remarks

  • The working counter errors are cleared to zero when the EtherCAT network is taken from Init to OP state.
  • Value 0 (zero)means no working counter errors.
    • When the value is non zero, the master automatically reduces the count by 1 for every thousand good frames received.
  • When the working counter error exceeds the Working Counter Error Limit, the EtherCAT network is stopped.

Figure 1: ECATWCStatus

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

(********************************************************)
(* read Ethercat Working counter value *)
(********************************************************)

wcErrorCounter := ECATWCStatus( 0 );

See Also