Optima DMC-1xxx and DMC-18x2 Command Reference
QS
i
157
QS
FUNCTION: Error Magnitude
DESCRIPTION:
The QS command reports the magnitude of error, in step counts, for axes in Stepper Position
Maintenance mode. A step count is directly proportional to the resolution of the step
drive.
ARGUMENTS: QS nnnnnnnn or QSn = ?
where
n is A,B,C,D,E,F,G or H or any combination to specify the axis or axes
USAGE: DEFAULTS:
While Moving
Yes
Default Value
0
In a Program
Yes
Default Format
1.4
Command Line
Yes
OPERAND USAGE:
_QSn contains the error magnitude in drive step counts for the given axis.
RELATED COMMANDS:
"
YA
"
Step Drive Resolution
"
YB
"
Step Motor Resolution
"
YC
"
Encoder Resolution
"
YR
"
Error Correction
"
YS
"
Stepper Position Maintenance Mode Enable, Status
EXAMPLES:
1. For an SDM-20620 microstepping drive, query the error of B axis:
:QSB=?
:253
This shows 253 step counts of error. The SDM-20620 resolution is 64
microsteps per full motor step, nearly four full motor steps of error.
2. Query the value of all axes:
:QS
:0,253,0,0,0,0,0,0
Response shows all axes error values
Notes:
1.
When QS exceeds three full motor steps of error, the YS command indicates the excessive
position error condition by changing to 2. This condition also executes the #POSERR
automatic subroutine if included in the runtime code.
2.
The operand use of the QS command can be used in conjunction with the YR command to
correct for position error. See the YR command for more details.