26
Gemini GV6K/GT6K Command Reference
Example
DEF pick
; Begin definition of program called pick
GO1
; Initiate motion
IF(VAR1=5)
; If variable 1 = 5 then do commands between IF and ELSE,
; otherwise commands between ELSE and NIF
GOTO pick1
; Goto label pick1
ELSE
; Else part of IF command
GOTO pick2
; Goto label pick2
NIF
; End IF command
$pick1
; Label declaration for pick1
TAS
; Report axis status
BREAK
; Break out of current subroutine or program
$pick2
; Label declaration for pick2
TPC
; Report commanded position
END
; End program definition
RUN pick
; Execute program named pick
[ # ]
Step Through a Program
Type
Operator
(Other)
Syntax
<a_>!#<i>
Units
i
=
number
of
commands
to
execute
from
the
buffer
Range
i
=
1
-
200
Default
1
Response
n/a
See Also
DEF,
HELP,
STEP,
TRACE,
TRANS
Product Rev
GT6K 6.0
GV6K 6.0
This command controls the execution of a program or sequence when the single step mode is enabled
(
STEP1
). Each time you enter the
!#<i>
command followed by a delimiter,
i
commands in the sequence
buffer will be executed. A
!#
followed by a delimiter will cause one command to be executed.
Single step mode can be advantageous when trying to debug a program.
Example:
DEF tst
; Begin definition of program named tst
V1
; Set velocity to 1 unit/sec
A10
; Set acceleration to 10 units/sec/sec
D1
; Set distance to 1 unit
GO1
; Initiate motion
OUT11X1
; Turn on on-board programmable outputs 1, 2, and 4,
; leave 3 unchanged
END
; End program definition
STEP1
; Enable single step mode
RUN tst
; Execute program named tst
NOTE
:
After entering the command
RUN
no action will occur because single step mode has been enabled.
Single step operation is as follows:
!#2
; First 2 commands in the program tst are executed,
; commands to be executed are V1 and A10.
!#
; Execute 1 command from program; command to execute is D1
!#1
; Execute 1 command from program; command to be executed is GO1
!#2
; Execute 2 commands from program; commands to be executed are
; OUT11X1 and END
www.comoso.com
Содержание Gemini GT6K
Страница 24: ...www comoso com ...
Страница 40: ...www comoso com ...
Страница 344: ...www comoso com ...
Страница 350: ...www comoso com ...