Output - Parker Automation Gemini GV6K Command Reference Manual

Servo drive/controller
Table of Contents

Advertisement

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
This command controls the execution of a program or sequence when the single step mode is enabled
(
). Each time you enter the
STEP1
buffer will be executed. A
!#
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
After entering the command
NOTE:
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
26
Gemini GV6K/GT6K Command Reference
command followed by a delimiter,
!#<i>
followed by a delimiter will cause one command to be executed.
no action will occur because single step mode has been enabled.
RUN
www.comoso.com
Product
Rev
GT6K
6.0
GV6K
6.0
commands in the sequence
i

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents