SLR – StepNLoop Pulse Conversion
The SLR command sets the pulse conversion value for the StepNLoop operation. It is the ratio of motor pulses to encoder counts.
Applies to: CMD-4CR, CMD-4EX-SA, PMX-4EX-SA, PMX-4ET-SA, PMX-2ED-SA, PMX-2EX-SA
ASCII SLR
Syntax:
Read:
SLR[axis]
Write:
SLR[axis]=[value]
Where: [axis] specifies the axis to be set (X, Y, Z, U) [value] specifies the pulse conversion value (0.001 – 999.999) |
Reply:
Command is accepted and executed
Read:
Returns the set conversion value (0.001 – 999.999)
Write:
OK
Command cannot be processed
An error message is returned. See Error Codes
Example:
Read:
SLRX * Returns pulse conversion value for the X axis
Write:
SLRY=0.5 * Sets the pulse conversion value to 0.5 for the Y axis
Notes:
- A convenient way to find the StepNLoop ratio is to set EX=0, PX=0 and move the motor +1000 pulses. The ratio can be calculated by dividing 1000 by the resulting EX value. Note that the value must be positive. If it is not, then the direction polarity must be adjusted. This test should be performed while StepNLoop is disabled.
- The ratio will depend on the motor type, micro-stepping, encoder resolution, and decoding multiplier. Joystick and buffer operation are invalid during StepNLoop operation.