3.179
EDH0162En1040 – 06/99
MM4005
XS — Read trace sample rate
Usage
IMM
PGM
MIP
Syntax
XS
Parameters
None.
Description
This command reads the trace acquisition period. This is the period that
will be used to sample the real and desired positions of a motion device
and store the values in memory.
NOTE
The returned value usually differs from the one preset in the SP com-
mand because it reflects the real clock used for the timer. For that rea-
son, the sample period is reported with at least 10 decimal points.
Returns
XSnn
xx
—
Real trace sample period, in seconds.
.
Errors
S
—
Communication time-out.
Rel. Commands
SP
—
Set trace sample rate.
TM
—
Set trace mode.
Example
SP0.005 |
Set global trace sample period to 5 ms.
GQ1000 |
Enable global trace mode and acquire 1000 samples
.
2PR0.2 |
Start a relative motion on axis #2 and the acquisition process
.
XS
|
Read the global trace sample period.
XS0.005003436196
|
Controller returns the real sample rate, in seconds.
XT — Tell number of elements in the trajectory
Usage
IMM
PGM
MIP
Syntax
XT
Parameters
None.
Description
This command retrieves from the controller the number of valid elements
that have been loaded into the trajectory.
Returns
XTnn
nn
—
Number of elements.
Errors
S
—
Communication time-out.
Rel. Commands
AT
—
Tell the element number under execution.
LT
—
Extended list of the trajectory.
Example
NT
|
Reset trajectory buffer.
XT
|
Read number of elements.
XT0
|
Controller returns 0.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com