52
Gemini GV6K/GT6K Command Reference
Example:
PORT2
; Select COM2 ("RS-232") port
BAUD38400
; Set the baud rate for COM2 to 38400 baud
BOT
Beginning of Transmission Characters
Type
Communication
Interface
Syntax
<!>BOT<i>,<i>,<i>
Units
n/a
Range
i
=
0
–
256
Default
0,0,0
Response
BOT: *BOT0,0,0
See Also
EOT, ERROK, ERRBAD, PORT, DRPCHK, EOL, ], [
Product Rev
GT6K 6.0
GV6K 6.0
The
BOT
command designates the characters to be placed at the beginning of every response. Up to 3
characters can be placed before the first line of a multi-line response, or before all single-line responses.
The characters are designated with their ASCII equivalent. For example, a carriage return is ASCII 13, a
line feed is ASCII 10, a Ctrl-Z is ASCII 26, and no terminating character is designated with a zero.
NOTE
: ASCII 256 transmits nothing. ASCII 256 transmits a null ASCII zero character, which is typically
used to create a null terminated string in a C language.
For a more complete list of ASCII Equivalents, refer to the ASCII Table in
Appendix B
.
Example:
BOT13,10,26
; Place a carriage return, line feed, and Ctrl-Z before
; the first line of a multi-line response, and before
; all single line responses
BP
Set a Program Break Point
Type
Program
Flow
Control
or
Program
Debug
Tool
Syntax
<a_><!>BP<i>
Units
i
=
break
point
number
Range
1
–
32
Default
n/a
Response
n/a
See Also
BREAK,
C,
HALT,
K,
S,
[
SS
],
TSS
Product Rev
GT6K 6.0
GV6K 6.0
The
BP
command allows the programmer to set a place in the program where command processing will halt
and a message will be transmitted to the PC. There are 32 break points available,
BP1
to
BP32
, all
transmitting the message *
BREAKPOINT
NUMBER
x<cr>
where
x
is the break point number.
After halting at a break point, command processing can be resumed by issuing a continue (
!C
) command.
The break point command is useful for stopping a program at specific locations in order to test status for
debugging or other purposes.
Example:
DEF prog1
; Begin definition of program named prog1
D50000
; Set distance to 50000 units
MA1
; Absolute mode
GO1
; Initiate motion
IF(PC>40000)
; Compare commanded position to 40000
BP1
; If the motor position is > 40000 units, set break point #1
NIF
; End IF statement
D80000
; Set distance to 80000 units
GO1
; Initiate motion
BP2
; Set break point #2
END
; End program definition
RUN prog1
; Execute program prog1
If the
IF
statement evaluates true, the message *
BREAKPOINT
NUMBER
1
will be transferred out. A
!C
command must be issued before processing will continue. Once processing has continued, the second break
www.comoso.com
Summary of Contents for Gemini GT6K
Page 24: ...www comoso com ...
Page 40: ...www comoso com ...
Page 344: ...www comoso com ...
Page 350: ...www comoso com ...