FB_ReferencingHmi

HMI class parallel to the referencing class of an axis.
Syntax:
FUNCTION_BLOCK FB_ReferencingHmi EXTENDS FB_BaseHmi
Properties
Name | Type | Access | Initial value | Description |
---|---|---|---|---|
Name | STRING | Get, Set | <SourceName> | Specifies the name of the class instance. |
FB_ReferencingHmi | ||||
Busy | BOOL | Get, (Set) | FALSE | The axis is referencing and/or is in the active referencing state. |
DetectionVeloTimeMax | LREAL | Get, Set | 10.0 [s] | Maximum adjustable duration of the detection velocity |
DistanceMax | LREAL | Get, Set | 800.0 | Maximum adjustable distance |
DoHomingAbort | BOOL | Get, Set | FALSE | Aborts the current homing process. |
DoHomingAbsSwitch | BOOL | Get, Set | FALSE | Starting homing to an absolute switch |
DoHomingAbsSwitchDetect | BOOL | Get, Set | FALSE | Start calibration of the absolute switch position. |
DoHomingAbsSwitchDetect | BOOL | Get, Set | FALSE | Start a sequence from |
DoHomingBlock | BOOL | Get, Set | FALSE | Start homing to an end stop. |
DoHomingBlockDetect | BOOL | Get, Set | FALSE | Start the calibration of an end stop position. |
DoHomingBlockSequence | BOOL | Get, Set | FALSE | Start a sequence from |
DoHomingFinish | BOOL | Get, Set | FALSE | Complete the homing process. |
DoHomingLimitSwitch | BOOL | Get, Set | FALSE | Start homing to an end position sensor. |
DoHomingLimitSwitchDetect | BOOL | Get, Set | FALSE | Start the calibration of an end position sensor. |
DoHomingLimitSwitchSequence | BOOL | Get, Set | FALSE | Start a sequence from |
DoSetZero | BOOL | Get, Set | FALSE | Sets the current axis position to |
Enable | BOOL | Get, (Set) | FALSE | The homing of the axis is enabled by the PLC. |
EnableAutoSave | BOOL | Get, Set | FALSE | Once a homing process has been successfully completed, the axis parameters should be saved in the machine data. |
HomingAbsSwitch | Get | <Local> | Parameter set for homing via absolute switch. | |
HomingAbsSwitchDetect | Get | <Local> | Parameter set for calibrating an absolute switch. | |
HomingBlock | Get | <Local> | Parameter set for homing via end stop. | |
HomingBlockDetect | Get | <Local> | Parameter set for calibrating an end stop position. | |
HomingFinish | Get | <Local> | Parameter set for finishing a homing process. | |
HomingLimitSwitch | Get | <Local> | Parameter set for homing via end position sensor. | |
HomingLimitSwitchDetect | Get | <Local> | Parameter set for calibrating an end position sensor. | |
IsHomed | BOOL | Get, Set | FALSE | The last completed homing process was successful. |
PositionMax | LREAL | Get, Set | 500.0 | Maximum adjustable position. |
PositionMin | LREAL | Get, Set | 0.0 | Minimum adjustable position. |
TimeLimitMax | LREAL | Get, Set | 30.0 | Maximum adjustable time limit. |
FB_Base | ||||
BaseState | Get | eNotHandled | Initialization state of the class instance. | |
Error | BOOL | Get | FALSE | Class is in an error state. |
ResultMessage | Get | - | Access to the class-internal EventLogger. | |
[ | STRING | Get | <SourceName> |
|
Local HMI variables
Name | Data type | Description |
---|---|---|
fbHomingBlock | Parameter set for homing via end stop. | |
fbHomingBlockDetect | Parameter set for calibrating an end stop position. | |
fbHomingAbsSwitch | Parameter set for homing via absolute switch. | |
fbHomingAbsSwitchDetect | Parameter set for calibrating an absolute switch. | |
fbHomingLimitSwitch | Parameter set for homing via end position sensor. | |
fbHomingLimitSwitchDetect | Parameter set for calibrating an end position sensor. | |
fbHomingFinish | Parameter set for finishing a homing process. |
Methods
Name | Description |
---|---|
Reset() | Resets the error state of the class. |
FB_BaseHmi | |
Init( | Default initialization method to pass the base class. |
FB_Base | |
GetHMI() | Returns the assigned HMI object.
|
SetHMI( | General assignment method for an
|
[ | Extracts the first part of the instance path as an object namespace. |
[ | Extracts the last part of the instance path as the object name. |
Interfaces
Type | Description |
---|---|
I_Base | Standard interface on FB_Base. |
I_ReferencingHmi | Standard interface on FB_ReferencingHmi. |
I_BaseHmi | Standard interface on FB_BaseHmi. |
I_BaseEmpty | For extension without standard interface. |
I_BaseDev | Covers all methods and properties of the base class. |
Prerequisites
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT >= v3.1.4024.54 (recommended) | PC or CX (x64, x86) | Tc3_PlasticBaseApplication (>= v12.10.2.0) |