DMC-18x6 Command Reference
192
TD
FUNCTION: Tell Dual Encoder
DESCRIPTION::
This command returns the current position of the dual (auxiliary) encoder(s). Auxiliary encoders
are not available for stepper axes or for the axis where output compare is used.
When operating with stepper motors, the TD command returns the number of counts that have
been output by the controller.
ARGUMENTS: TD nnnnnnnnnn
where
n is A,B,C,D,E,F,G or H or any combination to specify the axis or axes
No argument will provide the dual encoder position for all axes
USAGE: DEFAULTS:
While Moving
Yes
Default Value
0
In a Program
Yes
Default Format
Position Format
Not in a Program
Yes
Controller Usage
ALL CONTROLLERS
OPERAND USAGE:
_TDn contains value of dual encoder register.
RELATED COMMANDS:
Dual Encoder
EXAMPLES:
:TD
Return A,B,C,D Dual encoders
200, -10, 0, -110
TDA
Return the A motor Dual encoder
200
DUAL=_TDA
Assign the variable, DUAL, the value of TDA