Command Descriptions
53
point command will be encountered, again the message *
BREAKPOINT
NUMBER
2
will be transferred out,
and processing of commands will pause until a second
!C
command is received.
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
Product Rev
GT6K 6.0
GV6K 6.0
The
BREAK
command terminates program execution when processed. This command allows the user to
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
HALT
command.
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
Product Rev
GT6K 6.0
GV6K 6.0
The Continue (
!C
) command ends a pause state (
PS
), a break point (
BP
) condition, or a stopped (
S
)
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
!C
command,
command processing will resume, starting with the first command after the
PS
command or the
BP
command. If a stop (
S
) command has been issued, motion and command processing can be resumed by
issuing a
!C
command, only if
COMEXS
has been enabled.
Example:
PS
; Stop execution of command buffer until !C command
MA0
; Select incremental positioning mode
D10000
; Set distance to 10000 counts
GO1
; Initiate motion
www.comoso.com
Содержание Gemini GV6K
Страница 24: ...www comoso com...
Страница 40: ...www comoso com...
Страница 344: ...www comoso com...
Страница 350: ...www comoso com...