FB_BaseRuntime
The class automates the initialization and cyclic calls of instantiated control objects such as axes, sequence algorithms, temperature controllers, etc.
Internal functions:
- Initialization (Init(), ParamInit() and MdInit())
- Cycle calls (3-tasks)
- PlcMcManager support function (when using hydraulic axes)
- Software version check
Syntax:
FUNCTION_BLOCK FB_BaseRuntime EXTENDS FB_Base
Properties
Name | Type | Access | Initial value | Description |
---|---|---|---|---|
DisableMdFillCollections | BOOL | Get, Set | FALSE | Blocks the filling of attached FB_MdCollection instances. |
DisableMdInit | BOOL | Get, Set | FALSE | Blocks the automatic loading of the machine data by the runtime. |
DisableRecipe | BOOL | Get, Set | FALSE | Locks the recipe handling of objects that support the interface I_Recipe. |
MdInitExecuted | BOOL | Get | FALSE | Loading of the machine data was performed for all objects. |
NumRuntimeObjects | INT | Get | 0 | Number of appended runtime objects. |
Methods
Name | Description |
---|---|
Appends a control object to the runtime. | |
Clear() | Deletes the list of appended control objects. |
MdLoadAll() | Starts the loading process of all appended control objects with machine data container. |
MdSaveAll() | Starts the saving process of all appended control objects with machine data container. |
SetParamInitTimeout( | Changes the timeout of the |
Cycle methods
Name | Description | Cycle time (recommended) |
---|---|---|
CoreCyclic() | Fast cycle method for control objects with I_TwoTaskInterface. | 2 ms |
Cyclic() | Normal cycle method for control objects with I_OneTaskInterface or I_TwoTaskInterface. | 10 ms |
TemperatureCyclic() | Slow cycle method for control objects with I_TempTaskInterface. | 25 ms |
The cycle methods must be called with programs (PRG) assigned to different tasks, so that the runtime can assign the appended objects to the individual tasks.
Possible events
ID | Description | Alarm/Message |
---|---|---|
1xx | Recipe | Message |
10xx | Initialization | Alarm + Message |
11xx | Parameterization | Alarm + Message |
12xx | Version incompatibility | Alarm |
20xx | Machine data | Alarm + Message |
Interfaces
Type | Description |
---|---|
I_BaseRuntime | Standard interface on FB_BaseRuntime. |
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) |