InputBase

InputBase 1:

This class is the basis for I/O input elements.

InputBase 2:

Class is Abstract

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

Variants already implemented:

Name

Description

InputAnalog16

Input module for (up to) 16-bit analog input terminals.

InputAnalog16Status

Expanded input module for (up to) 16-bit analog input terminals with additional status information.

InputAnalog32

Input module for (up to) 32-bit analog input terminals.

InputCoE406

Input module for DS406-based encoder systems via EtherCAT.

InputCoE_Polling

Input element for values from an EtherCAT participant that can be read asynchronously via CoE.

InputDigital

Input element for a digital (Boolean) input signal.

InputDigitalCam

Input element for digital feedback from a hydraulic axis.

InputSsi

Input module for SSI-based encoder systems.

Syntax:

FUNCTION_BLOCK ABSTRACT FB_InputBase EXTENDS FB_IoEcAds

InputBase 3: I/O variables

Name

Type

Direction

Description

WcState

BIT

Input

Working Counter State

AdsAddr

AMSADDR

Input

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

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).

InputBase 4: Properties

Name

Type

Access

Description

InputScale

DINT

Get, Set

Scale for scaling the input value.

InputBase 5: 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.

InputBase 6: Interfaces

Type

Description

I_IoBase

Standard interface on FB_IoBase.

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)