Installation guide

158 Programming Commands
VAL String Manipulation
ACTION: Returns the floating point value of the designated string variable.
PROGRAM SYNTAX: VAL(n$) - used in an expression
REMARKS: n$ is the designated string variable.
The string variable format for conversion is: [sign]digits[.digits[e or
E[sign]integer]
The sign and scientific notions are optional.
Only numeric values are returned. The first character that cannot be
part of the number terminates the string. If no digits have been proc-
essed, a value of zero is returned.
EXAMPLES: a$=“134 Main St”
b$=“10.55 dollars”
x=VAL(a$) ‘ sets x=134
y=VAL(b$) ‘ sets y=10.55
VELOCITY Trajectory Parameter
ACTION: Sets or returns the path speed to be used for coordinated motion.
PROGRAM SYNTAX: VELOCITY = expression
VELOCITY - used in an expression
REMARKS: This velocity is used in the LINE, ARC, and PATH commands.
EXAMPLES: VELOCITY=10.1
Sets the coordinated velocity for a LINE or ARC command to 10.1
units/sec
k1 = VELOCITY
Sets the variable k1 equal to the value of VELOCITY used in the pro-
gram
WAIT Time Function
ACTION: Waits for the period of time (expressed in seconds) to expire before
continuing.
PROGRAM SYNTAX: WAIT = expression
REMARKS: The expression defines the wait delay in seconds.
Program execution is suspended until the desired time has elapsed.
EXAMPLES: WAIT = 1.1
Wait 1.1 seconds and then continue