FB_WtcTimer
Implements a timer as master for WTC camming.
Syntax:
FUNCTION_BLOCK FB_WtcTimer EXTENDS FB_Base
Properties
Name | Type | Access | Initial value | Description |
---|---|---|---|---|
Name | STRING | Get, Set | <SourceName> | Specifies the name of the class instance. |
FB_WtcTimer | ||||
ActualTime | LREAL | Get | 0.0 [s] | Elapsed time since start of WTC cycle in seconds. |
ActualTimeLatched | LREAL | Get | 0.0 [s] | Stored time of the last WTC cycle in seconds. |
AttachableMdInterface | I_MdComponent | Get | - | Interface to the machine data component. |
FirstStart | BOOL | Get | FALSE | WTC is in its first cycle since the last launch. |
GuidingValue | LREAL | Get | 0.0 | Time value as resulting camming master value. |
MaxMeasureTime | LREAL | Get | 0.0 [s] | Maximum overflow time of the timer. |
MaxMeasureTimeFactor | LREAL | Get, Set | 1.5 | Overflow factor for the set target time. |
ProfileStarted | BOOL | Get | FALSE | TRUE if the timer has been started. |
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_WtcTimer | |
ProfileStartAck( | Resets the |
Start( | Starts the timer. |
FB_Base | |
SetHMI( | General assignment method for an FB_BaseHmi extending class. |
[ | 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_WtcTimer | Standard interface on FB_WtcTimer. |
I_WtcMaster | General interface of a WTC master axis. |
I_TwoTaskInterface | Runtime interface for two PLC tasks. |
I_AttachableMdInterface | Interface for containerless machine data components. |
I_BaseEmpty | For extension without standard interface. |
I_BaseDev | Covers all methods and properties of the base class. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT >= v3.1.4024.54 (recommended) | PC or CX (x64, x86) | Tc3_PlasticBaseApplication (>= v3.12.7.0) |