FB_TimerWeekdayHmi

FB_TimerWeekdayHmi 1:

HMI interface for a weekday timer for use with the TF8550 Control ProcessScheduler.

Syntax:

FUNCTION_BLOCK FB_TimerWeekdayHmi EXTENDS FB_TimerHmi

FB_TimerWeekdayHmi 2: Properties

Name

Type

Access

Initial value

Description

Name

STRING

Get, Set

<SourceName>

Specifies the name of the class instance.

FB_WeekdayTimerHmi

AttachableMdInterface

I_MdComponent

Get

-

Interface to the machine data component.

EndWeekday

E_Weekday

Get, Set

eNone

Weekday of the end time.

Duration

LREAL

Get

0.0

Time difference between start and end time.

EndTime

LREAL

Get, Set

0.0

End time in seconds.

StartTime

LREAL

Get, Set

0.0

Start time in seconds.

Weekday

E_Weekday

Get, Set

eNone

Weekday of the start time.

FB_TimerHmi

ActualValue

LREAL

Get, Set

0.0

Current time value in seconds

LatchedValue

LREAL

Get, Set

0.0

Stored time value of the last execution in seconds

Out

BOOL

Get, Set

FALSE

Timer output (depending on TON, TOF, TP)

SetValue

LREAL

Get, Set

0.0

Preset time setpoint in seconds

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_TimerWeekdayHmi 3: Methods

Name

Description

Reset()

Resets the error state of the class.

FB_BaseHmi

Init(ipBase)

Default initialization method to pass the base class.

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_TimerWeekdayHmi 4: Interfaces

I_TimerWeekday

Standard interface on FB_TimerWeekdayMaster

I_TimerWeekdayHmiQuery

Interface for internal queuing of multiple weekday timers

I_AttachableMdInterface

Interface for containerless machine data components

I_TimerHmi

Standard interface on FB_TimerHmi

I_BaseHmi

Standard interface on FB_BaseHmi.

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 4026 >= v3.1.4026.16
TwinCAT 4024 >= v3.1.4024.66

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v12.12.0.0)