FB_ScaleHmi

FB_ScaleHmi 1:

Used as a common basis for scaling values.

Syntax:

FUNCTION_BLOCK FB_ScaleHmi EXTENDS FB_BaseHmi

FB_ScaleHmi 2: Properties

Name

Type

Access

Initial value

Description

Name

STRING

Get, Set

<SourceName>

Specifies the name of the class instance.

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

Name

Description

Reset()

Resets the error state of the class.

FB_ScaleHmi

[PROTECTED] XtoY(...)

Scales a value x to a value y, using the minimum and maximum value of both scales.

FB_BaseHmi

Init(ipBase)

Default initialization method to pass the base class.

FB_ScaleHmi 4: Interfaces

Type

Description

I_Base

Standard interface on FB_Base.

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)