FB_Homing

FB_Homing 1:

The Homing class implements standard procedures for homing an axis.

Syntax:

FUNCTION_BLOCK FB_Homing EXTENDS FB_Base

FB_Homing 2: Properties

Name

Type

Access

Initial value

Description

AbsoluteSwitch

BOOL

Set

FALSE

Input value of an absolute position switch

AttachableMdInterface

I_MdComponent

Get

-

Interface to the machine data component

ExternalStates

I_AdaptableSeqExt

Get, Set

NULL

Interface to an object with additional homing procedure steps

FB_Homing 3: Methods

Name

Description

DoAbort()

Cancels the currently active homing.

DoAbsSwitch()

Starts axis homing against an absolute position switch.

DoAbsSwitchSequence()

Starts a sequence of DoAbsSwitch() and DoFinish().

DoBlock()

Starts homing against an end stop.

DoBlockDetect()

Starts the position detection at an end stop.

DoBlockSequence()

Starts a sequence of DoBlock(), DoBlockDetect() and DoFinish().

DoFinish()

Starts the termination of homing.

DoSetZero()

Sets the current position of the axis to 0

FB_Homing 4: Procedure controlling methods (FB_AdaptableSequence)

Name

Description

HomingStates()

State machine of the homing procedures

FB_Homing 5: Event-driven methods (callback methods)

Name

Description

ExtAdaptSeq()

Dummy method() for use without "ExternalStates"

FB_Homing 6: Possible events

ID

Description

Alarm/Message

4000

Homing not allowed

Alarm

4001

Homing failed

Alarm

4002

Save homing was successful

Message

4003

Save homing was not successful

Message

FB_Homing 7: Interfaces

Type

Description

I_Homing

Standard interface on FB_Homing

I_AttachableMdInterface

Interface for containerless machine data components

I_AdaptableSeqExt

Interface for providing external homing procedures

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.42

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v3.12.6.0)