Parker Automation Gemini GV6K Command Reference Manual page 149

Servo drive/controller
Table of Contents

Advertisement

GOTO
Goto a Program or Label
Type
Program; Subroutine Definition; Program Flow Control
Syntax
<!>GOTO<t>
Units
t = text (name of program/label)
Range
Text name of 6 characters or less
Default
n/a
Response
n/a
See Also
$, DEF, DEL, END, GOSUB, IF, JUMP, L, LN, NIF, NWHILE, REPEAT, RUN,
UNTIL, WHILE
The
command branches to the corresponding program name or label when executed. A program or
GOTO
label name consists of 6 or fewer alpha-numeric characters. The program or label that the
will not return control to the line after the
program will end. This holds true unless the subroutine in which the
program; in this case, the
END
If an invalid program or label name is entered, the
the line after the
.
GOTO
Use caution when performing a GOTO between IF & NIF, or L & LN, or REPEAT &
UNTIL, or WHILE & NWHILE. Branching to a different location within the same program
will cause the next IF, L, REPEAT or WHILE statement to be nested within the previous
IF, L, REPEAT or WHILE statement unless a NIF, LN, UNTIL or NWHILE command has
already been encountered. If you wish to avoid this nesting situation, use the JUMP
command instead of the GOTO command.
Example:
DEF pick
; Begin definition of subroutine named pick
D-5000
; Set distance to -5000
GO1
; Initiate motion
END
; End subroutine definition
DEF place
; Begin definition of subroutine named place
GOTO pick
; Goto to subroutine named pick
D+5000
; Set distance to +5000
GO1
; Initiate motion
END
; End subroutine definition
place
; Execute program named place
; After the GOTO command, the D+5000 and GO1 commands will not be executed because a
; GOTO was issued. If a GOSUB was used instead of the GOTO statement, control would
; have been returned to the line after the GOSUB.
GOWHEN
Conditional Go
Type
Motion
Syntax
<a_><!>GOWHEN(expression)
Units
n/a
Range
Up to 80 characters (including parentheses)
Default
n/a
Response
n/a
See Also
[ AS ], COMEXC, [ ER ], ERROR, ERRORP, [ FB ], FGADV, FSHFC,
FSHFD, GO, [ IN ], [ LIM ], [ NMCY ], [ PC ], [ PE ], [ PMAS ],
[ PSHF ], [ PSLV ], T, TAS, TER, TRGFN, WAIT
Use the
command to synchronize a motion profile of an axis with a specified position count
GOWHEN
(commanded, feedback device, motor, master, follower, Following shift), input status, dwell (time delay),
or master cycle number on that axis. Command processing does not wait for the
(relational expressions) to become true during the
subsequent start-motion command (
becomes true.
when the program completes operation—instead, the
GOTO
in the
program will initiate a return to the calling program.
GOTO
will be ignored, and processing will continue with
GOTO
CAUTION
GOWHEN
,
,
, and
GO
FGADV
FSHFC
www.comoso.com
resides was called by another
GOTO
GOWHEN
command. Rather, the motion from the
) will be suspended until the condition
FSHFD
Command Descriptions
Product
Rev
GT6K
6.0
GV6K
6.0
initiates
GOTO
Product
Rev
GT6K
6.0
GV6K
6.0
conditions
147

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents