FB_TempSchedule

FB_TempSchedule 1:

Class for the use of weekday timers in connection with temperature control.

Syntax:

FUNCTION_BLOCK FB_TempSchedule EXTENDS FB_TimerWeekdayMaster

FB_TempSchedule 2: Properties

Name

Type

Access

Initial value

Description

Name

STRING

Get, Set

<SourceName>

Specifies the name of the class instance.

FB_TimerWeekdayMaster

Elapsed

LREAL

Get

0.0

Current time value in seconds

Latched

LREAL

Get

0.0

Stored time value of the last execution in seconds

Preset

LREAL

Get, Set

0.0

Preset time value in seconds

Et

TIME

Get

T#0ms

Current time value in milliseconds

In

BOOL

Get, Set

FALSE

Activation input

L

TIME

Get

T#0ms

Stored time value of the last execution in milliseconds

Pt

TIME

Get, Set

T#0ms

Preset time value in milliseconds

Q

BOOL

Get

FALSE

Timer output

FB_BaseMd

MachineData

I_MdBaseContainer

Get

-

Interface for machine data handling.

FB_Base

BaseState

E_BaseState

Get

eNotHandled

Initialization state of the class instance.

Error

BOOL

Get

FALSE

Class is in an error state.

ResultMessage

I_AppMessage

Get

-

Access to the class-internal EventLogger.

[PROTECTED] _Name

STRING

Get

<SourceName>

.Name without leading 'fb'.

FB_TempSchedule 3: Methods

Name

Description

Reset()

Resets the error state of the class.

FB_TempSchedule

MemberSchedule(x)

Returns an interface to the first timer assigned to the group (member) x.

MemberScheduledActive(x)

Returns an interface to the first timer assigned to the group (member) x and currently active.

FB_BaseMd

[PROTECTED] AddMdComp()

Adds a component of type I_MdComponent to the machine data container.

FB_Base

GetHMI()

Returns the assigned HMI object.

Notice The method is not implemented in the FB_Base class. If the method is not overwritten by inheritance, a pseudo variable is always returned.

SetHMI(ipBase)

General assignment method for an FB_BaseHmi extending class as a local HMI.

Notice The method is not implemented in the FB_Base class. If the method is not overridden by inheritance, it always fails.

[PROTECTED] _QueryNamespace()

Extracts the first part of the instance path as an object namespace.

[PROTECTED] _QueryObjectName()

Extracts the last part of the instance path as the object name.

FB_TempSchedule 4:

Exceptions avoidance

The list access functions (e.g. Channels(x), Groups(x), etc...) return a pseudo variable if the requested index is invalid. In addition, a message is thrown in the EventLogger.

FB_TempSchedule 5: Machine data

Component

Description

Index range

Number of instances

FB_MdFileInfo

File information

0x0000 Fxxx

1

FB_MdTempTimer

Temperature attributes of a timer

0x0000 4Dxx

30 (Default)

FB_MdWeekdayTiming

Period of a weekly timer

0x0000 71xx

30 (Default)

FB_TempSchedule 6: Interfaces

Type

Description

I_Base

Standard interface on FB_Base.

I_TempSchedule

Standard interface on FB_TempSchedule

I_OneTaskInterface

Runtime interface for a PLC task

I_TimerWeekday

Standard interface on FB_TimerWeekdayMaster

I_BaseMd

Standard interface on FB_BaseMd.

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.42

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v3.12.6.0)