User Tools

Site Tools


commands:cnts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

commands:cnts [2019/04/18 23:33] (current)
Line 1: Line 1:
 +====== 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''​.
 +
 +<WRAP center round info 60%>
 +Note: For a piezo device, always set ''​CNTS''​ first, then limits (''​SL''​ and ''​SU''​) afterward.
 +</​WRAP>​
 +
 +
 +
 +== Example: ==
 +
 +
 +<asi> $ C X=13490.4
 +:A
 +$ C x?
 +:X=13490.4 A</​asi>​
 +
 +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}}
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
commands/cnts.txt · Last modified: 2019/04/18 23:33 (external edit)