DMC-18x6 Command Reference
220
YC
FUNCTION: Encoder Resolution
DESCRIPTION:
The YC command specifies the resolution of the encoder, in counts per revolution, for Stepper
Position Maintenance mode.
ARGUMENTS: YC m,m,m,m,m,m,m,m or YCn = m
where
n is A,B,C,D,E,F,G or H or any combination to specify the axis or axes.
m is 0 to 32766 which represents the encoder resolution in counts per revolution.
USAGE: DEFAULTS:
While Moving
No
Default Value
4000
In a Program
Yes
Default Format
1.4
Command Line
Yes
OPERAND USAGE:
_YCn contains the encoder resolution for the specified axis.
RELATED COMMANDS:
"
"
Error Magnitude
"
"
Stepper Position Maintenance Mode Enable, Status
"
"
Step Drive Resolution
"
Step Motor Resolution
"
Error Correction
EXAMPLES:
1. Set the encoder resolution of the D axis for a 4000 count/rev encoder:
:YC,,,4000
2. Query the D axis value:
:YCD=?
:4000
Response shows D axis encoder resolution
Notes:
1.
This value must be the same as the encoder resolution for that axis. The error magnitude (QS)
will climb quickly causing a false error state if the assigned value differs from actual.