EDH0162En1040 – 06/99
3.132
MM4005
TH — Read theoretical position
Usage
IMM
PGM
MIP
Syntax
xxTH
Parameters
Description
xx
[int]
— Axis number.
Range
xx
—
0
to
4.
Units
xx
— None.
Defaults
xx
Missing: 0.
Out of range: Error B.
Floating point: Error A.
Description
This command reads the theoretical position and the instantaneous real
position. If the axis specifier
xx
is missing or set to 0, the controller returns
the desired position for all axes.
The command could be sent at any time but its primary use is while a
motion is in progress.
The command is useful in determining the following error of a motion
device by comparing the theoretical position to its real position.
Returns
xxTHnn
or
xx
1
THnn
1
, xx
2
THnn
2
, xx
3
THnn
3
, xx
4
THnn
4
xx, xx
1
, xx
2
, xx
3
, xx
4
—
Axis number.
nn, nn
1
, nn
2
, nn
3
, nn
4
—
Theoretical position, in pre-defined units.
Errors
A
—
Unknown message code.
B
—
Incorrect axis number.
S
—
Communication time-out.
Rel. Commands
TP
—
Read actual position.
Example
3TP,
3TH
|
Read real and theoretical position on axis #3.
3TP 5.322
|
Controller returns real position 5.322 for axis #3.
3TH 5.323
|
Controller returns theoretical position 5.323 for axis #3.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com