DMC-18x6 Command Reference
64
DE
FUNCTION: Dual (Auxiliary) Encoder Position
DESCRIPTION:
The DE command defines the position of the auxiliary encoders.
The DE command defines the encoder position when used with stepper motors.
Note: The auxiliary encoders are not available for the stepper axis or for any axis where
output compare is active.
ARGUMENTS: DE n,n,n,n,n,n,n,n
or
DEA=n
where
n is a signed integers in the range -2147483648 to 2147483647 decimal
n = ? Returns the position of the auxiliary encoders for the specified axes.
n = ? returns the commanded reference position of the motor (in step pulses) when used with
a stepper motor. Example: DE 0 This will define the TP or encoder position to 0. This
will not effect the DE ? value. (To set the DE value when in stepper mode use the DP
command.)
USAGE:
DEFAULTS:
While Moving
Yes
Default Value
0,0,0,0
In a Program
Yes
Default Format
Position Format
Command Line
Yes
Controller Usage ALL CONTROLLERS
OPERAND USAGE:
_DEn contains the current position of the specified auxiliary encoder.
RELATED COMMANDS:
Define main encoder position
Tell Dual Encoder position
EXAMPLES:
DE 0,100,200,400
Set the current auxiliary encoder position to 0,100,200,400 on A,B,C and
D axes
DE?,?,?,? Return
auxiliary
encoder
positions
DUALA=_DEA
Assign auxiliary encoder position of A-axis to the variable DUALA
Hint: Dual encoders are useful when you need an encoder on the motor and on the load. The encoder on
the load is typically the auxiliary encoder and is used to verify the true load position. Any error in load
position is used to correct the motor position.