Hardware manual
Basic Commands and Functions Impact Reference Guide
Datalogic Automation Inc. 5-8
Basic Commands and Functions
Important Note: Some Basic commands and functions are not implemented in Impact software. Some of
them may be implemented in future versions.
These commands are implemented only in the CPM Basic control. They will not work in the VPM Basic
tool.
• chdir, close, curdir, delete, eod, eof, input, line, open, mkdir, isdirectory, isfile
These commands are not implemented:
• File, directory, network, and screen I/O functions (binmode, delete, eod, eof, line, loc, print, reset,
rewind, tcpconnect, textmode, truncate, seek)
• Process spawning (execute, kill, system)
• Command line (environ, command)
• External module access (declare, epreproc)
• Sleep
Impact Basic commands are listed below, in alphabetical order. Commands are shown in upper-case but they
may also be written in lower-case.
Commands and Functions A-D
&
Concantenates (joins) two strings. Example:
var_string ="first" & "second" yields var_string = "firstsecond"
ABS()
Returns the absolute value of the argument. If the argument is undef, the result is undef. Example:
x = ABS(-12) yields x = 12
ACOS()
This function calculates the arc cosine of the argument (the inverse of the cos function). The result is in radi-
ans. If the argument is not between -1.0 and +1.0 the result is undef. Example:
x = ACOS(0.54) yields x = 1.000359
ADDDAY()
This function takes two arguments and returns a real number representing a date and time. The first argu-
ment is a time value, the second argument is the number of days to add to or subtract from it. (See“FOR-
MATDATE” on page 5-14.) Example:
tomorrow = ADDDAY(now,1) yields tomorrow = 1.330420E9