FB_MonitoringHmi

FB_MonitoringHmi 1:

HMI parallel class to the FB_Monitoring.

Syntax:

FUNCTION_BLOCK FB_MonitoringHmi EXTENDS FB_ScaleAnalogHmi

FB_MonitoringHmi 2: Properties

Name

Type

Access

Initial value

Description

Name

STRING

Get, Set

<SourceName>

Specifies the name of the class instance.

FB_MonitoringHmi

ActualValue

LREAL

Get, Set

0.0

Current value of the monitored analog signal.

ActualValueMax

LREAL

Get, Set

0.0

Maximum of the current value.

ActualValueMin

LREAL

Get, Set

0.0

Minimum of the current value.

ActualValueReset

BOOL

Get, Set

FALSE

A TRUE resets the determined minimum and maximum of the current value.

ExceededLimitHH

BOOL

Get, Set

FALSE

Indicator for exceeding the critical limit value LimitHH.

ExceededLimitH

BOOL

Get, Set

FALSE

Indicator for exceeding the warning limit value LimitH.

ExceededLimitL

BOOL

Get, Set

FALSE

Indicator for falling below the warning limit value LimitL.

ExceededLimitLL

BOOL

Get, Set

FALSE

Indicator for falling below the critical limit value LimitLL.

LimitHH

LREAL

Get, Set

80.0

Upper critical limit value to be monitored.

LimitH

LREAL

Get, Set

60.0

Upper warning limit value to be monitored.

LimitL

LREAL

Get, Set

20.0

Lower warning limit value to be monitored.

LimitLL

LREAL

Get, Set

10.0

Lower critical limit value to be monitored.

FB_ScaleAnalogHmi

ScalingElectricalMax

LREAL

Get, Set

10.0

Maximum of the electrical voltage input.

ScalingElectricalMin

LREAL

Get, Set

0.0

Minimum of the electrical voltage input.

ScalingRawMax

LREAL

Get, Set

32767

Maximum of the raw analog measured value (bit).

ScalingRawMin

LREAL

Get, Set

0

Minimum of the raw analog measured value (bit).

ScalingValueMax

LREAL

Get, Set

100.0

Maximum of the scaled end unit.

ScalingValueMin

LREAL

Get, Set

0.0

Minimum of the scaled end unit.

UnitGroupElectrical

STRING(64)

Get, Set

‘‘

Physical quantity in which the electrical measurement is measured.

UnitGroupValue

STRING(64)

Get, Set

‘‘

Physical quantity in which the scaled end value is measured.

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

Name

Description

Reset()

Resets the error state of the class.

FB_ScaleAnalogHmi

ElectricalToRaw(fElectrical)

Scales the electrical voltage to the raw analog measured value (bit/numeric).

ElectricalToValue(fElectrical)

Scales the electrical voltage to the unit of the final scaling.

RawToElectrical(nRaw)

Scales the raw analog measured value (bit/numeric) to the electrical voltage.

RawToValue(nRaw)

Scales the raw analog measured value (bit/numeric) to the unit of the final scaling.

ValueToElectrical(fValue)

Scales the unit of the final scaling to the electrical voltage.

ValueToRaw(fValue)

Scales the unit of the final scaling to the raw analog measured value (bit/numeric).

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

Type

Description

I_Base

Standard interface on FB_Base.

I_MonitoringHmi

Standard interface on FB_MonitoringHmi.

I_ScaleAnalogHmi

Standard interface on FB_ScaleAnnalogHmi.

I_ScaleAnalogScalings

Interface to the scaling minima and maxima.

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.35

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v3.12.5.0)