TeachUpdate

TeachUpdate 1:

This core function is used for referencing analog encoder systems. It is used after TeachPosition to calculate the measured values.

Syntax:

FUNCTION_BLOCK FB_TeachUpdate EXTENDS FB_CorefunctionFeedback

TeachUpdate 2: Properties

Name

Type

Access

Description

SetUpperPosition

BOOL

Get, Set

FALSE = The set position is used for the lower measured value.

TRUE = The set position is used for the upper measured value.

TeachUpdate 3: Methods

Name

Description

DoUpdate(bExecute)

Calculates the measurement and parameters for encoder offset and scaling.

SetPosition(fPosition)

Configures the setpoint at one of the measuring points.

SetStroke(fStroke)

Configures the stroke between the two measuring points.

TeachUpdate 4: Interfaces

Type

Description

I_TeachUpdate

Standard interface on FB_TeachUpdaten.

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