26
•
CE
DMC-1000/1500 Command Reference
DMC-1000
DMC-1500
CE
FUNCTION:
Configure Encoder
DESCRIPTION:
The CE command configures the encoder to the quadrature type or the pulse and direction
type. It also allows inverting the polarity of the encoders. The configuration applies
independently to the four main axes encoders and the four auxiliary encoders.
ARGUMENTS:
CE x,y,z,w CEX=x CE a,b,c,d,e,f,g,h where
x,y,z,w are integers in the range of 0 to 15. Each integer is the sum of two integers n and m
which configure the main and the auxiliary encoders. The values of m and n are
M = MAIN ENCODER TYPE
N = AUXILIARY ENCODER TYPE
0
Normal quadrature
0
Normal quadrature
1
Normal pulse and direction
4
Normal pulse and direction
2
Reversed quadrature
8
Reversed quadrature
3
Reversed pulse and direction
12
Reversed pulse and direction
For example: x = 10 implies m = 2 and n = 8, both encoders are reversed quadrature.
"?" returns the value of the encoder configuration for the specified axes.
USAGE: DEFAULTS:
While Moving
Yes
Default Value
O
In a Program
Yes
Default Format
2.0
Command Line
Yes
Can be Interrogated
Yes
Used as an Operand
Yes
OPERAND USAGE:
_CEx contains the value of encoder type for the axis specified by ‘x’.
RELATED COMMANDS:
MT
Specify motor type
EXAMPLES:
CE 0, 3, 6, 2
Configure encoders
CE ?,?,?,?
Interrogate configuration
V = _CEX
Assign configuration to a variable
Note: When using pulse and direction encoders, the pulse signal is connected to CHA and the
direction signal is connected to CHB.