ECATWCStatus

PLCopen motion icon Pipe Network motion icon

 FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Returns the current number of working counter errors for the Sync unit.

Inputs

Input

Data Type

Range

Unit

Default

Description

SyncUnit

INT

0 (zero)

N/A

No default

Sync Unit Index

For future compatibility with multiple frames.

Outputs

Output

Data Type

Range

Unit

Description

Count

UDINT

No range

N/A

Working Counter error.

Remarks

Figure 6-78: 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