FB_CamSwitchHmi

This class (FB) provides exactly one cam switch.
Syntax:
FUNCTION_BLOCK FB_CamSwitchHmi EXTENDS FB_BaseHmi
Properties
Name | Type | Access | Initial value | Description |
|---|---|---|---|---|
Name | STRING | Get, Set | <SourceName> | Specifies the name of the class instance. |
FB_CamSwitchHmi | ||||
Active | BOOL | Get | FALSE | TRUE if the cam switch is within the range of the current actual value. |
InUse | BOOL | Get, Set | FALSE | TRUE to activate the cam switch. |
LowerRange | LREAL | Get, Set | 0.0 | Lower range, starting from the threshold value. |
Threshold | LREAL | Get, Set | 0.0 | Threshold value at which the cam switch is aligned |
UpperRange | LREAL | Get, Set | 0.0 | Upper range, starting from the threshold value, |
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> |
|
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
|
[ | Identifies whether the transferred object corresponds to its own instance. |
[ | 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_CamsSwitchHmi | Standard interface on FB_BaseHmi. |
I_BaseHmi | Standard interface on FB_BaseHmi. |
I_BaseDev | Covers all methods and properties of the base class. |
I_Comparable | Enables comparisons via |
Requirements
Development environment | Target platform | PLC libraries to include |
|---|---|---|
TwinCAT 4026 >= v3.1.4026.19 | PC or CX (x64, x86) | Tc3_PlasticBaseApplication (>= v12.14.0.0) |