330
Gemini GV6K/GT6K Command Reference
Example:
SCALE1
; Enable scaling
SCLA25000
; Set the acceleration scaling factor to
; 25000 counts/unit/unit
SCLV25000
; Set the velocity scaling factor to 25000 counts/unit
SCLD1
; Set the distance scaling factor to 1 count/unit
DEL proge
; Delete program called proge
DEF proge
; Begin definition of program called proge
MA0
; Incremental positioning mode
MC0
; Preset positioning mode
A10
; Set the acceleration to 10 units/sec/sec
V1
; Set the velocity to 1 units/sec
D100000
; Set the distance to 100000 units
GO1
; Initiate motion
END
; End definition of proge
[ V ]
Velocity (Programmed) Assignment
Type
Assignment or Comparison
Syntax
See below
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
GO, SCALE, SCLV, V, [ VEL ]
Product Rev
GT6K 6.0
GV6K 6.0
The velocity assignment operator (
V
) is used to compare the programmed velocity value to another value or
variable, or to assign the current programmed velocity to a variable.
Syntax:
VARn=V
where “
n
” is the variable number, or
V
can be used in an expression such as
IF(V<25)
The (
V
) value used in any comparison, or in any assignment statement is the programmed (
V
) value. If the
actual velocity information is required, refer to the
VEL
or
VELA
command.
UNITS OF MEASURE
and
SCALING
: refer to page
16
.
Example:
IF(V<25)
; If the programmed velocity is less than 25
; units/sec, then do the statements between the IF and NIF
VAR1=V*2
; Variable 1 = programmed velocity times 2
V(VAR1)
; Set the velocity to the value of variable 1
NIF
; End the IF statement
VAR
Numeric Variable Assignment
Type
Variable
Syntax
<a_><!>VAR<i><=r>
Units
i = variable number
r = number or expression
Range
i = 1-225
r = ±999,999,999.99999999
Default
n/a
Response
VAR1: *VAR1=+0.0
See Also
DVAR, VARB, VARCLR, VARI, VCVT, VARS, WRVAR
Product Rev
GT6K 6.0
GV6K 6.0
Numeric variables can be used to store any real number value, with a range from -999,999,999.99999999 to
+999,999,999.99999999. The information is assigned to the variable with the equal sign
(e.g.,
VAR1=32.3
).
www.comoso.com
Summary of Contents for Gemini GT6K
Page 24: ...www comoso com ...
Page 40: ...www comoso com ...
Page 344: ...www comoso com ...
Page 350: ...www comoso com ...