FB_WtcTimerHmi

FB_WtcTimerHmi 1:

HMI parallel class of the FB_WtcTimer.

Syntax:

FUNCTION_BLOCK FB_WtcTimerHmi EXTENDS FB_BaseHmi

FB_WtcTimerHmi 2: Properties

Name

Type

Access

Initial value

Description

Name

STRING

Get, Set

<SourceName>

Specifies the name of the class instance.

FB_WtcTimerHmi

ActualTime

LREAL

Get, (Set)

0.0

Elapsed time since the timer was started.

AutoStart

BOOL

Get, Set

FALSE

The timer restarts automatically after MasterTime has expired.

AutoTime

BOOL

Get, Set

FALSE

When the timer is restarted using FB_WtcTimer.Start(), LatchedTime is adopted as the new MasterTime.

LatchedTime

LREAL

Get, (Set)

0.0

Elapsed time reached before the last start signal.

MasterTime

LREAL

Get, Set

20.0

Set time value for the complete passage of the coupled WTC cam plate.

MasterTimeMax

LREAL

Get, Set

60.0

Maximum for limiting the adjustable MasterTime

MasterTimeMin

LREAL

Get, Set

10.0

Minimum for limiting the adjustable MasterTime

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

Type

Description

I_Base

Standard interface on FB_Base.

I_WtcTimerHmi

Standard interface on FB_WtcTimerHmi.

I_WtcMasterHmi

General HMI of a WTC master axis.

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 >= v3.1.4024.54 (recommended)
TwinCAT >= v3.1.4024.42 (required)

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v3.12.7.0)