FB_FlexValue

FB_FlexValue 1:

Class (FB) comparable to the structured data type ST_FlexValue from TF8560. Represents a variable without a specified data type.

Syntax:

FUNCTION_BLOCK FB_FlexValue

FB_FlexValue 2: Properties

Name

Type

Access

Initial value

Description

Value

U_FlexValue

Get

0

Value as Union (all types).

ValueType

E_FlexValue

Get

eBOOL

Last assigned value data type (except if assigned via structure).

_BOOL

BOOL

Get, Set

FALSE

Value as BOOL.

_IBASE

I_Base

Get, Set

NULL

Value as interface I_Base.

_INT

INT

Get, Set

0

Value as INT.

_LREAL

LREAL

Get, Set

0.0

Value as LREAL.

Notice

Online Change handling

The interpretation of the _IBASE value is not handled during an Online Change! It must be ensured that the return value of the interface is a valid instance of a class!

FB_FlexValue 3: Interfaces

Type

Description

I_FlexValue

Standard interface on FB_FlexValue.

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)