Command Descriptions
283
TCMDER
Transfer Command Error
Type
Transfer
or
Program
Debug
Tool
Syntax
<a_><!>TCMDER
Units
n/a
Range
n/a
Default
n/a
Response
TCMDER: *(incorrect
command)
See Also
ERRBAD,
[
SS
],
TSS
Product Rev
GT6K 6.0
GV6K 6.0
For program debugging, use
TCMDER
to transfer the command that the drive detects as an error. This is
especially useful if you receive an error message when running or downloading a program, because it catches
and remembers the
first
command that caused the error.
When the bad command is detected, the drive sends an error message to the screen, followed by the
ERRBAD
error prompt (
?
). To determine which command is in error, enter the
TCMDER
command and the
drive will display the command, including all its command fields, if any.
Once a command error has occurred, the command and its fields are stored and system status bit #11
(reported in the
TSSF
,
TSS
, and
SS
commands) is set to
1
. The status bit remains set until the
TCMDER
command is issued.
Example:
DEL badprg
; Delete program called badprg
DEF badprg
; Begin definition of program called badprg
MA1
; Select the absolute preset positioning mode
A25
; Set acceleration
AD11
; Set deceleration
V5
; Set velocity
VAR1=0
; Set variable #1 equal to zero
GO1
; Initiate move
IF(VAR1<)16
; Mistyped IF statement—should be typed as: IF(VAR1<16)
VAR1=VAR1+1
; If variable #1 is less than 16, increment the counter by 1
NIF
; End IF statement
END
; End programming of program called badprg
RUN badprg
; Run the program called badprg
; (this will cause an error --see comment box below)
; **********************************************************************
; * 1. When you run the badprg program, you should see this error *
; * message on your screen: "*INCORRECT DATA" (this error message *
; * indicates incorrect command syntax). *
; * 2. Type "TCMDER" and press enter. This queries the drive to *
; * display the command that caused the error. In this case, the *
; * response will be "*IF(VAR1<)16". *
; **********************************************************************
www.comoso.com
Содержание Gemini GT6K
Страница 24: ...www comoso com ...
Страница 40: ...www comoso com ...
Страница 344: ...www comoso com ...
Страница 350: ...www comoso com ...