FB_Parameter

FB_Parameter 1:

Allows concatenation of multiple 64-bit floating-point (LREAL) values with assignable name.

Syntax:

FUNCTION_BLOCK FB_Parameter EXTENDS FB_Base

FB_Parameter 2: Properties

Name

Type

Access

Initial value

Description

Name

STRING

Get, Set

<SourceName>

Specifies the name of the class instance.

FB_Parameter

Next

I_Parameter

Get, Set

NULL

Next item in the list

Root

I_Parameter

Get, Set

THIS^

First element of the list

Value

LREAL

Get, Set

0.0

Value of the parameter

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

Name

Description

Append()

Appends a new item to the list.

Idx()

Returns the element of the x-th position of the list.

FB_Parameter 4:

Exceptions avoidance

The Idx() function returns the first element (root) of the list on invalid requested index.

FB_Parameter 5: Interfaces

Type

Description

I_Base

Standard interface on FB_Base.

I_Parameter

Standard interface on FB_Parameter

I_ParameterQuery

Extension of the I_Parameter interface with set access to next and root properties as well as the Append method.

I_BaseDev

Covers all methods and properties of the base class.

I_Comparable

Enables comparisons via _IsMyself() or F_IsSameInstance().

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT 4026 >= v3.1.4026.19
TwinCAT 4024 >= v3.1.4024.71

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v12.16.0.0)