Skip to main content
Skip table of contents

Output of integer values

Output options for numeric values can be found in the library JCmpVisuBasic.

The following output objects exist for integer values:

OutputstDintValue: Output of integer value (-2147483648 to 2147483647).

For the integer value output, the variable type stDintValueType is used.

VAR
// Example for Output Dint Object
stDintValue : JCmpVisuBasic.JCmpUtilItf.stDintValueType;
END_VAR

If you now drag the desired object from the Visualization Toolbox into the process screen, a parameter window opens. Here you can either specify fixed values as parameters for the output object or assign variables.

image-20240116-095410.png

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

image-20240116-095438.png

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

diValue: DINT value
eValueError: enum for error.
eValueStateNamur: enum for the name status.
udiUnitType: value for the unit.

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

image-20240116-100149.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.