InputCoE406

InputCoE406 1:

This class can be used for a DS406 based encoder. In this context, the term CoE (CAN over EtherCAT) refers to the transmission of the CiA DS406 protocol via EtherCAT.

Syntax:

FUNCTION_BLOCK FB_InputCoE406 EXTENDS FB_InputBase

InputCoE406 2: I/O variables

Name

Type

Direction

Description

WcState

BIT

Input

Working Counter State

CounterValue

DINT

Input

Counter value of the encoder.

DeviceState

WORD

Input

Status word of the encoder.

AdsAddr

AMSADDR

Input

ADS address of the I/O element for asynchronous communication.

Toggle

BIT

Input

Bit switching with the update rate of the mapping.

InfoDataState

UINT

Input

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

InputCoE406 3: Properties

Name

Type

Access

Description

InputScale

DINT

Get, Set

Scale for scaling the input value.

InputCoE406 4: Methods

Name

Description

Cyclic()

Cycle method

GetChannelState()

Reads the status word of the input element.

SetChannelState()

Writes the status word of the input element.

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.

InputCoE406 5: Interfaces

Type

Description

I_IoBase

Standard interface on FB_IoBase.

I_InputCoE406

Standard interface on FB_InputCoE406.

I_InputBase

Standard interface on FB_InputBase.

I_IoEcAds

Standard interface on FB_IoEcAds.

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)