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

-32768 to +32767

N/A

No default

Sync Unit IndexClosed Zero pulse (zero signal) of a hardware pin such as digital input or feedback pin.

Outputs

Output

Data Type

Range

Unit

Description

CountClosed Internal count pulses, 1 pulse = 1/2^20turn.

UDINT

No range

N/A

Working Counter error.

Remarks

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