IoEc

IoEc 1:

This class is the basis for EtherCAT-based I/O elements.

IoEc 2:

Class is Abstract

Since the class is defined as ABSTRACT, the class cannot be instantiated and must be implemented using inheritance.

Syntax:

FUNCTION_BLOCK ABSTRACT FB_IoEc EXTENDS FB_IoBase

IoEc 3: I/O variables

Name

Type

Direction

Description

WcState

BIT

Input

Working Counter State

Toggle

BIT

Input

Cyclic switching bit that is synchronized with the update rate of the mapping. As a rule, the InputToggle of the WcState structure is mapped for this purpose.

InfoDataState

UINT

Input

Numerical information on the state of the EtherCAT slave (see State).

IoEc 4: Properties

Name

Type

Access

Description

EcMisses

UINT

Get

Number of EtherCAT diagnostic errors in a row

IoEc 5: Methods

Name

Description

Cyclic()

Cycle method

GetProcessIoStatus()

Reads the EtherCAT status of the input/output element.

SetProcessIoStatus()

Writes the EtherCAT status of the input/output element.

GetProcessValue()

Reads the terminal-specific input/output value.

SetProcessValue()

Writes the terminal-specific input/output value.

IoEc 6: Interfaces

Type

Description

I_IoBase

Standard interface on FB_IoBase.

I_IoEc

Standard interface on FB_IoEc.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.55

PC or CX (x64, x86)

Tc3_PlasticFunctions (>= v3.12.5.0)