====== Command:CNTS (C) ====== --> MS2000 or RM2000 syntax^ ^Shortcut |C | ^Format |CNTS [axis] = [encoder counts per mm]… | ^Units |Encoder counts per mm| ^Remembered |Using SS Z | <-- --> Tiger syntax^ ^Shortcut |C | ^Format |CNTS [axis] = [encoder counts per mm]… | ^Units |Encoder counts per mm| ^Type |Axis-Specific | ^Remembered |Using [addr#]SS Z | <-- Changes axis' encoder counts per mm. For example, doubling this number would cause a given number of mm to be converted internally to twice as many encoder counts as before. A command to move the stage 2 mm would instead cause it to move 4 mm. **MOST USERS DO NOT NEED THIS FUNCTION!** If your stage is not moving as expected try making sure the leadscrew pitch is set appropriately with the ''[[commands:customa|CUSTOMA]]'' command. \begin{equation} Cnts = {(6.5536 * 107) \over d} \end{equation} where ''d'' is the total range of movement in microns. For example, if the range of movement is -100um to +100um, then ''d = 200'', and ''Cnts = 327680''. **Note:** For a piezo device, always set **CNTS** first, then limits (**SL** and **SU**) afterward. == Example: == $ C X=13490.4 :A $ C X? :X=13490.4 A Changes the encoder constant on the X-axis to 13490.4 counts/mm. The default values for this parameter are restored upon reset and should not require user modification. {{tag>commands tiger ms2000}}