System version 10.0 System version 9.1 System version 9.0 System version 8.2
System version 10.0 System version 9.1 System version 9.0 System version 8.2

Output value type stDoubleValueType

In the library JCmpVisuBasic the following output objects are available for the floating points type stDoubleValueType and stDoubleValueBaseType:

OutputstDoubleValue: Output of real value via the structure variable.
OutputstDoubleValueBase: Output of real value via the structure variable.

stDoubleValueTyp/stDoubleValueBaseTyp: the structure contains the following variables:
lrValue: long real value
eValueError: enum for error.
eValueStateNamur: enum for the name status.
udiUnitType: value for the unit. (only for stDoubleValueTyp)

In the project, the necessary structures can be defined as follows:

VAR
// Example for Output Double Object
stDoubleValue : JCmpVisuBasic.JCmpUtilItf.stDoubleValueType;
stDoubleValueBase : JCmpVisuBasic.JCmpUtilItf.stDoubleValueBaseType;
END_VAR

The structure defined above must now be transferred for the transfer parameters.

image-20240116-091905.png

In the code, the output of the long real value can be output as follows:

image-20240116-092523.png