FB_ChangeDetector

FB_ChangeDetector 1:

This class can recognize sudden changes in a value.

Syntax:

FUNCTION_BLOCK FB_ChangeDetector

FB_ChangeDetector 2: Properties

Name

Type

Access

Description

Cycletime

LREAL

Get, Set

Cycle time used for checking.

Filter

LREAL

Get, Set

Filter time over which a slight change in the value is adjusted.

Tolerance

LREAL

Get, Set

Tolerance above which a change is recognized.

FB_ChangeDetector 3: Methods

Name

Description

Cyclic(fValue)

Cycle method

Notice Returns FALSE if fValue has changed.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.35

PC or CX (x64, x86)

Tc3_PlasticFunctions v3.12.4.26 or higher