Skip to main content
Skip table of contents

Input of integer values

In the variTRON, in addition to integers type INT, UINT, DINT, UDINT and ULINT, there are also regularly integers with metadata of type JCmpUtilItf.stDintValueType. There are two input object groups to provide corresponding input objects for both forms of integers.

In the JCmpVisuBasic library, there are the following input objects for input of integers type INT, UINT, DINT, UDINT and ULINT:

InputDINT: Input of integer value (-32768 to 32767).
InputUINT: Input of integer value (0 to 65535).
InputDINT: Input of integer value (-2147483648 to 2147483647).
InputUDINT: Input of integer value (0 to 4294967295).
InputULINT: Input of integer value (0 to 264-1).

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 input window or assign variables.

image-20240110-135649.png

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

image-20240110-135743.png

The same variables are used for all integer inputs.

:No1: iValue/uiValue/diValue/udiValue/uliValue: Entered integer value
:No2: iMaxValue/uiMaxValue/diMaxValue/udiMaxValue/udiMaxValue: Max. input limit as integer value or integer variable
:No3: iMinValue/uiMinValue/diMinValue/udiMinValue/uliMinValue: Min input limit as integer value or integer variable.
:No4: wsTitle: Title for the input window as wString or wStringvariable.
:No5: wsUnit: Unit as wString or wStringvariable is displayed behind the title.

image-20240110-140842.png
image-20240110-140918.png

InputsDintValue

In the JCmpVisuBasic library, there is the following input object for input of integers type stDintValueType:

InputstDintValue: Input of integer value via structure variable.

stDintValue Type: The integer structure contains the following variables:
diValue: integer value
eValueError: enum for errors.
eValueStateNamur: enum for the name status.
udiUnitType: value for the unit.

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

VAR
// Example for DINT
stDintValue : JCmpVisuBasic.JCmpUtilItf.stDintValueType;
END_VAR

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

image-20240111-100041.png

In the code, the input of the integer value can be queried as follows:

image-20240111-100150.png

JavaScript errors detected

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

If this problem persists, please contact our support.