TeachPosition

TeachPosition 1:

This core function is used for referencing analog encoder systems.

Syntax:

FUNCTION_BLOCK FB_TeachPosition EXTENDS FB_CorefunctionFeedback

TeachPosition 2: Properties

Name

Type

Access

Description

TeachLatchM

LREAL

Get, (Set)

The recorded value when executing DoTeachM() in analog increments.

TeachLatchPTeachLatchP

LREAL

Get, (Set)

The recorded value when executing DoTeachP() in analog increments.

Valid

BOOL

Get

Two valid values were recorded.

TeachPosition 3: Methods

Name

Description

DoTeach(bExecute)

Sets the axis to teaching mode.

DoTeachM(bExecute)

Triggers the recording of the lower position.

DoTeachP(bExecute)

Triggers the recording of the upper position.

TeachPosition 4: Interfaces

Type

Description

I_TeachPosition

Standard interface on FB_TeachPosition.

I_TeachPositionDev

Extended interface with access to the setters of the latch properties.

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)