FB_BaseRuntime

FB_BaseRuntime 1:

The class automates the initialization and cyclic calls of instantiated control objects such as axes, sequence algorithms, temperature controllers, etc.

Internal functions:

Syntax:

FUNCTION_BLOCK FB_BaseRuntime EXTENDS FB_Base

FB_BaseRuntime 2: 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.

FB_BaseRuntime 3: Methods

Name

Description

Append()

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(iObject, fTimeout)

Changes the timeout of the ParamInit() function of an appended control object.

FB_BaseRuntime 4: 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.

FB_BaseRuntime 5: 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

FB_BaseRuntime 6: 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)
TwinCAT >= v3.1.4024.42 (required)

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v3.12.7.0)