IoDigital

IoDigital 1:

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

IoDigital 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_IoDigital EXTENDS FB_IoBase

IoDigital 3: Properties

Name

Type

Access

Description

DelayOff

LREAL

Get, Set

Delay [s] of a falling edge of the digital signal.

DelayOn

LREAL

Get, Set

Delay [s] of a rising edge of the digital signal.

In

BOOL

Get, Set

Digital input value.

Invert

BOOL

Get, Set

Inverts the interpretation of the input value.

Q

BOOL

Get

Interpreted input value.

QF

BOOL

Get

Falling edge from Q.

QR

BOOL

Get

Rising edge from Q.

IoDigital 4: Methods

Name

Description

Cyclic()

Cycle method

GetProcessValue()

Reads the terminal-specific input/output value.

SetProcessValue()

Writes the terminal-specific input/output value.

IoDigital 5: 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)