Parker Automation Gemini GV6K Command Reference Manual page 55

Servo drive/controller
Table of Contents

Advertisement

point command will be encountered, again the message *
and processing of commands will pause until a second
BREAK
Terminate Program Execution
Type
Program Flow Control
Syntax
<a_><!>BREAK
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
BP, C, GOSUB, HALT, K, S
The
command terminates program execution when processed. This command allows the user to
BREAK
terminate a program based upon a condition, or at any other particular point in the program where it is
necessary to end the program. If the program terminated was called from another program, control will be
passed to the calling program. This command is useful when debugging a program.
To terminate all program processing, use the
Example:
DEF prog1
; Define a program called prog1
GO1
; Initiate motion
GOSUB prog2
; Gosub to subroutine named prog2
GO1
; Initiate motion
END
; End program definition
DEF prog2
; Define a program called prog2
D5
; Change distance
IF(IN=b1X0)
; IF condition is: status of input 1 is active (1)
; and input 3 is inactive (0)
BREAK
; If condition is true break out of program
ELSE
; Else part of if condition
TPE
; If condition does not come true, transfer position of encoder
NIF
; End If statement
END
; End program definition
RUN prog1
; Execute program prog1
;
; Upon completion of motion, subroutine prog2 is called. If inputs 1 and 3
; are in the correct state when the subroutine is entered, the subroutine
; will be terminated and returned to prog1, where motion will be initiated.
C
Continue Command Execution
Type
Program Flow Control
Syntax
<a_>!C
Units
n/a
Range
n/a
Default
n/a
Response
n/a
See Also
BP, COMEXR, COMEXS, INFNC, PS, S
The Continue (
) command ends a pause state (
!C
condition. When the Gem6K is in a paused state or at a break point, no commands from the command
buffer are executed. All immediate commands, however, are still processed. By sending a
command processing will resume, starting with the first command after the
command. If a stop (
) command has been issued, motion and command processing can be resumed by
S
issuing a
command, only if
!C
Example:
PS
; Stop execution of command buffer until !C command
MA0
; Select incremental positioning mode
D10000
; Set distance to 10000 counts
GO1
; Initiate motion
BREAKPOINT NUMBER 2
command is received.
!C
command.
HALT
), a break point (
PS
has been enabled.
COMEXS
www.comoso.com
will be transferred out,
Product
GT6K
GV6K
Product
GT6K
GV6K
) condition, or a stopped (
BP
command,
!C
command or the
PS
BP
Command Descriptions
Rev
6.0
6.0
Rev
6.0
6.0
)
S
53

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gemini gt6k

Table of Contents