FB_MdAnalogValue

FB_MdAnalogValue 1:

This machine data component contains parameters that are relevant for analog scaled I/Os.

Syntax:

FUNCTION_BLOCK FB_MdAnalogValue EXTENDS FB_MdBaseComponent

FB_MdAnalogValue 2: Machine data

Index (Identifier)

Parameter

PLC storage location

0x0000 6010

ScalingRawMin

FB_ScaleAnalogHmi

0x0000 6011

ScalingRawMax

0x0000 6020

ScalingValueMin

0x0000 6021

ScalingValueMax

0x0000 6030

ScalingElectricalMin

0x0000 6031

ScalingElectricalMax

0x0000 604x

UnitValue (16 indices)

0x0000 605x

UnitElectrical (16 indices)

0x0000 6110

LimitL

FB_MonitoringHmi

0x0000 6111

LimitLL

0x0000 6112

LimitH

0x0000 6113

LimitHH

FB_MdAnalogValue 3: Properties

Name

Type

Access

Initial value

Description

Connected

BOOL

Get

FALSE

Component is connected to its dependencies (except for the MD container).

FB_MdAnalogValue

ConnectedMonitoring

BOOL

Get

FALSE

Component is connected to a Monitoring class to save additional parameters.

 

FB_MdBaseComponent

LinkedContainer

I_MdBaseContainer

Get

NULL

Points to the container to which the component was appended.

Tc3_PlasticFunctions.FB_MdComponent

Further characteristics

<>

<>

<>

Implemented by FB_MdComponent

FB_MdAnalogValue 4: Methods

Name

Description

AddNextComponent()

Adds the subsequent component to the component (list).

FB_MdAnalogValue

Connect(ipScalings)

Connects the component with the necessary dependencies.

ConnectMonitoring(ipMonitoring)

Connects the component to other optional dependencies.

FB_MdBaseComponent

[PROTECTED] ConfigCompType(eCompType)

Used with inheriting classes to initialize the encoding offset after E_StandardCompType.

[PROTECTED] ConfigCompTypeEx()

Used with the inheriting class to initialize the encoding offset.

[PROTECTED] NextString(…)

Simplified method for reading a text-based machine data parameter. This method is used within the MdNextParameter(...) Callback method.

[PROTECTED] SetString(…)

Simplified method for writing a text-based machine data parameter. This method is used within the MdSetParameter(...) Callback method.

Tc3_PlasticFunctions.FB_MdComponent

Other methods

Implemented by FB_MdComponent.

FB_MdAnalogValue 5: Event-driven methods (callback methods)

Name

Description

MdNextParameter(…)

Container call for saving the parameters in a file, implemented by FB_MdComponent.

MdSetParameter(…)

Container call for loading the parameters into the runtime, implemented by FB_MdComponent.

FB_MdAnalogValue 6: Interfaces

Type

Description

I_MdComponent

Standard interface on FB_MdComponent

I_MdAnalogValue

Standard interface on FB_MdAnalogValue.

I_MdBaseComponent

Standard interface on FB_MdBaseComponent

Further interfaces

Implemented by FB_MdComponent

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)