Hardware manual
Impact Reference Guide Data Types
5-7 Datalogic Automation Inc.
Basic code, click the drop-down arrow next to the variable name in the Tool Properties pane to define its
data type.
Boolean and Boolean List
Boolean variables have a value of True (non-zero) or False (zero). You can use any of the comparison oper-
ators to compare boolean variables to each other or the constants True and False. You can also assign values
to Boolean variables. Individual Boolean List elements can be accessed using array notation. For example,
to access the third element of the Boolean List variable Checklist, use the notation Checklist[2].
Here are examples of boolean operations:
bvalue = True
bvalue = False
If bvalue = True then
REM the code to be executed goes here
endif
Checklistlist[2] = False
Integer and Integer List
Integer variables can have a whole number value from -2147483647 to 2147483647. You can use any of the
comparison operators to compare integer variables to each other or constants. You can also assign values to
Integer variables. Individual Integer List elements can be accessed using array notation. For example, to
access the third element of the Integer List variable Checkllist, use the notation Checklist[2].
Here are examples of integer operations:
value = 1
value = 1+3-99
If value>16 then
REM the code to be executed goes here
endif
Checklist[2] = value
Real and Real List
Real variables can have a floating number value from -2.147483647E9 to 2.147483647E9. Real variables
may use scientific notation. You can use any of the comparison operators to compare real variables to each
other or constants. You can also assign values to real variables. Individual Real List elements can be
accessed using array notation. For example, to access the third element of the Real List variable Checkllist,
use the notation Checklist[2]. Here are examples of real operations:
value = 1.5
value = 1.8+3.0-99E6
If value>16.0 then
REM the code to be executed goes here
endif
Checklist[2] = value
String
A string constant is indicated by enclosing a series of letters and/or numbers in double quotes. The following
functions and commands are available for string handling.
ASC(), CHR(), &, HEX(), INSTR(), INSTRREV(), ISSTRING(), JOIN(), LCASE(), LEFT(), LEN(), LIKE,
LTRIM(), MID(), OCT(), REPLACE(), RIGHT(), RTRIM(), SPACE(), SPLIT, STR(), STRING(), STRRE-
VERSE(), TRIM(), UCASE().