FB_ManualFunctionHmi

FB_ManualFunctionHmi 1:

The class is used to connect to a TF8550 ManualOperation control.

Syntax:

FUNCTION_BLOCK FB_ManualFunctionHmi EXTENDS FB_BaseHmi

FB_ManualFunctionHmi 2: Properties

Name

Type

Access

Initial value

Description

Name

STRING

Get, Set

<SourceName>

Specifies the name of the class instance.

FB_ManualFunctionHmi

Cmd

I_ManualFunctionCmdHmi

Get

-

Commands from the HMI.

DoSelect

BOOL

Get, Set

FALSE

Manual function should be selected for the central operating function.

IsSelectable

BOOL

Get, Set

FALSE

The central operating function can be selected to take over control.

IsSelected

BOOL

Get, Set

FALSE

The central operating function is connected and controls this manual function.

SelectCmd

T_ManualSelectCmd

Get, Set

0x0

Command of the central operating function.

SelectState

T_ManualSelectState

Get, Set

0x0

State of the central operating function.

SelectSupported

BOOL

Get, Set

FALSE

A central operating function is available for this manual function.

State

I_ManualFunctionStateHmi

Get

-

Feedback signals to the HMI.

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_ManualFunctionHmi 3:

Central operating function

The "Central operating function" provides for the use of an incremental encoder to operate the manual function. This is available, for example, in the class for the Beckhoff BlowMolding Panel PC (FB_CP22xx-1025). Use with another input device is also conceivable, but must be implemented in the project on a user-defined basis.

FB_ManualFunctionHmi 4: Local HMI variables

Name

Data type

Description

fbCmd

FB_ManualFunctionCmdHmi

Commands from the HMI.

fbState

FB_ManualFunctionStateHmi

Feedback signals to the HMI.

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

SetHMI(ipBase)

General assignment method for an FB_BaseHmi extending class.

Notice This method always fails in the FB_Base implementation. Overwriting is therefore absolutely necessary.

[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_ManualFunctionHmi 6: Interfaces

Type

Description

I_Base

Standard interface on FB_Base.

I_ManualFunctionHmi

Standard interface on FB_ManualFunctionHmi.

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)