
?TC1
Tell Code command
1 Unrecognized command
Returned response
There are many reasons for receiving an invalid command response. The most common reasons are: unrecognized
command (such as typographical entry or lower case), command given at improper time (such as during motion),
or a command out of range (such as exceeding maximum speed). A complete listing of all codes is listed in the TC
command in the Command Reference section.
Interrogating the Controller
Interrogation Commands
The DMC-40x0 has a set of commands that directly interrogate the controller. When the command is entered, the
requested data is returned in decimal format on the next line followed by a carriage return and line feed. The
format of the returned data can be changed using the Position Format (PF), Variable Format (VF) and Leading Zeros
(LZ) command. See Chapter 7 Application Programming and the Command Reference.
Summary of Interrogation Commands
RP
Report Command Position
RL
Report Latch
^R^V
Firmware Revision Information
SC
Stop Code
TA
Tell Amplifier Error
TB
Tell Status
TC
Tell Error Code
TD
Tell Dual Encoder
TE
Tell Error
TI
Tell Input
TP
Tell Position
TR
Trace
TS
Tell Switches
TT
Tell Torque
TV
Tell Velocity
For example, the following example illustrates how to display the current position of the X axis:
TP A
Tell position A
0
Controllers Response
TP AB
Tell position A and B
0,0
Controllers Response
Interrogating Current Commanded Values.
Most commands can be interrogated by using a question mark (?) as the axis specifier. Type the command
followed by a ? for each axis requested.
PR ?,?,?,?
Request A,B,C,D values
PR ,?
Request B value only
The controller can also be interrogated with operands.
Chapter 5 Command Basics ▫ 69
DMC-40x0 User Manual