FB_CurveHmi

FB_CurveHmi 1:

This class (FB) implements a stand-alone TF8550 CurveEditor based cam plate.

Syntax:

FUNCTION_BLOCK FB_CurveHmi EXTENDS FB_BaseCurveHmi

FB_CurveHmi 2: Properties

Name

Type

Access

Initial value

Description

Name

STRING

Get, Set

<SourceName>

Specifies the name of the class instance.

FB_BaseCurveHmi

Activate

BOOL

Get, Set

FALSE

Activation bit for adopting the curve transmitted by the HMI

BaseMax

UDINT

Get

400

Number of master curve points used.
0-based index for use in the HMI.

CurrentIndex

UDINT

Get

0

Currently active master curve point.
0-based index for use in the HMI.

CurrentPoint

UDINT

Get, Set

1

Currently active master curve point.
1-based index for use in the PLC.

CurrentValue

LREAL

Get, Set

0.0

Current value of the object on this cam plate.

Points

UDINT

Get, Set

401

Number of master curve points used.
1-based index for use in the PLC.

ValueMax

LREAL

Get, Set

0.0

Maximum possible value for the object operated with this cam plate.

ValueMin

LREAL

Get, Set

0.0

Minimum possible value for the object operated with this cam plate.

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_CurveHmi 3: Local HMI variables

Name

Data type

Description

aSetCurve

ARRAY[] OF LREAL

Set curve transmitted by the HMI.

aActCurve

ARRAY[] OF LREAL

Actual curve that the operated object has actually implemented and should be displayed.

FB_CurveHmi 4: Methods

Name

Description

Reset()

Resets the error state of the class.

FB_BaseCurveHmi

ActPoint(x)

Access to x-th value of the actual curve. The method returns an interface to a .Value property. You can also write to it to assign a value to the curve.

CheckDisplay(iDisp)

Checks whether the transferred object is authorized to describe the actual values of the curve.

Copy(iCopy)

Copies the transferred curve to this instance of the curve.

SetDisplay(iDisp)

Sets the authorization for actual value display by reference to an object instance (I_Base compatible). If the method is called without a transfer value, the authorization is canceled.

SetPoint(x)

Access to x-th value of the set curve. The method returns an interface to a .Value property. You can also write to it to assign a value to the curve.

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_CurveHmi 5: Interfaces

Type

Description

I_Base

Standard interface on FB_Base.

I_CurveHmi

Standard interface for TF8550 CurveEditor based cam plates.

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.

Prerequisites

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 (>= v12.10.2.0)