EDH0162En1040 – 06/99
3.140
MM4005
TT — Read trace data
Usage
IMM
PGM
MIP
Syntax
xxTT
Parameters
Description
xx
[int]
— Sample number to read.
Range
xx
—
0
to
number of samples
set by TM command.
Units
xx
— None.
Defaults
xx
Missing: 0.
Out of range: Error C.
Floating point: Error A.
Description
This command reads the trace data stored in trace mode. The trace mode
is enabled by TM command and defined by SP and TM commands.
If
xx
is a number different than 0 and in range, the controller returns the
values for that sample number. If
xx
is 0, the controller returns all samples
stored in memory.
Returns
xxTT, THnn
1
, TPnn
2
xx
—
Sample number.
nn
1
—
Theoretical position.
nn
2
—
Actual position.
NOTE
If xx was set to 0 in the TT command, all samples are returned (starting
with number 1), each one on a separate line.
Errors
A
—
Unknown message code.
C
—
Parameter out of limits.
D
—
Unauthorized execution.
S
—
Communication time-out.
Rel. Commands
SP
—
Set trace sample rate.
TM
—
Set trace mode.
XN
—
Read number of acquisitions.
Example
SP0.002 |
Set trace period to 2 ms.
2TM500 |
Set trace mode for axis #2 and 500 data points.
2PR0.1, WS |
Perform a motion of 0.1 units on axis #2 and wait for stop.
9TT
|
Read trace sample #9.
9TT, TH1.002, TP1.001
|
Controller returns for trace sample #9 theoretical position 1.002 and
real position 1.001 units.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com