FB_Homing
The Homing class implements standard procedures for homing an axis.
Syntax:
FUNCTION_BLOCK FB_Homing EXTENDS FB_Base
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 |
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 |
Procedure controlling methods (FB_AdaptableSequence)
Name | Description |
---|---|
State machine of the homing procedures |
Event-driven methods (callback methods)
Name | Description |
---|---|
ExtAdaptSeq() | Dummy method() for use without "ExternalStates" |
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 |
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) |