Hardware manual

Impact Reference Guide Commands and Functions E-H
5-15 Datalogic Automation Inc.
For Next
This loop construct starts by setting the value of variable equal to StartValue. After the execution of the loop,
the variable is increased or decreased by the value of StepValue. The loop is repeated as long as the value of
variable is equal to or less than the value of EndValue. If StartValue is already greater than EndValue, the
loop is never executed.
The keywords STEP and StepValue are optional. If they are omitted, StepValue is one.
FOR variable = StartValue TO EndValue STEP StepValue
REM loop body
NEXT
FRAC()
This function returns the fractional part of the argument. If the argument is an integer, it will return zero. The
sign of the argument is retained. If the argument is undef, the result is undef. Example:
x = FRAC(1.5) yields x = 0.5
FUNCTION
This command declares a function. The function can have arguments, local variables, and local error han-
dling. Example:
FUNCTION MyFunction(var1, var2, var3)
REM function code goes here
END FUNCTION
GMTIME
0D date with leading zero, if needed
WD single digit day of the week starting with Sunday = 0
WEEKDAY-NAME weekday name
WDN three letter abbreviation of the weekday name
HH hour (24 hour notation)
0H hour with leading zero, if needed (24 hour notation)
hh hours (12 hour notation)
0h hours with leading zero, if needed (12 hour notation)
mm minutes
0m minutes with leading zero, if needed
ss seconds
0s seconds with leading zero, if needed
am or pm indicate am or pm (12 hour notation)
Format String Resultant display