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 stFloatValueType

In the library JCmpVisuBasic the following output objects are available for the floating points type stFloatValueType:

OutputstFloatValueNoComma: output of float value without decimal place.
OutputstFloatValueOneComma: output of float value with one decimal place.
OutputstFloatValueTwoComma: Output of float value with two decimal places.
OutputstFloatValueThreeComma: output of float value with three decimal places.

For all float value outputs, the same variable type stFloatValueType is used.

VAR
// Example for Float-Output
stFloatOutput : JCmpVisuBasic.JCmpUtilItf.stFloatValueType;
END_VAR

If you now drag the desired object from the Visualization Toolbox into the process screen, a parameter window opens. Here you can enter the structure variable e.g. stFloatOutput, which was previously defined.

image-20240112-103247.png

It is also possible to enter or change the parameters afterwards via the object property.

image-20240112-103310.png

The structure variable JCmpVisuBasic.JCmpUtilItf.stFloatValueType contains the following variables:

image-20240112-111052.png

rValue: real value
eValueError: enum for error.
eValueStateNamur: enum for the name status.
udiUnitType: value for the unit.

Example 1:
You only want to display a real value - then use of the structure variable rValue is sufficient.

image-20240115-114851.png

Example 2:
If, for example, you want to display the analogue input of the controller with the states (eValueError and eValueStateNemur), the analogue input of the controller must first be mapped.

image-20240115-115403.png

As both structure variables are of the same variable type stFloatValueType, the structure variable of the controller can be transferred directly to the output object.

image-20240115-115628.png

If the signal on the controller input is valid:

image-20240115-120226.png

If the signal on the controller input is invalid (sensor not plugged in):

image-20240115-120537.png