User Tools

Site Tools


commands:spin

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
commands:spin [2017/12/22 22:19]
jon
commands:spin [2019/04/18 23:33] (current)
Line 1: Line 1:
 +====== Command:​SPIN (@) ======
  
 +--> MS2000 or RM2000 syntax#
 +
 +^Shortcut ​ |@| 
 +^Format ​ |SPIN [axis]=[-128 to 128]…|
 +^Units ​   |integer -128 to 128|
 +
 +<--
 +
 +--> Tiger syntax# ​
 +
 +^Shortcut ​ |@| 
 +^Format ​ |SPIN [axis]=[-128 to 128]…|
 +^Units ​   |integer -128 to 128|
 +^Type    |Axis-Specific ​ |
 +
 +<--
 +
 +Tells controller to ‘spin’ the motor of specified axis at a rate expressed as its DAC value, a bit value from -128 to 128.  This causes the motor to run in open-loop mode with no position or speed feedback.
 +
 +== Reply ==
 +If there are no errors, a positive reply of <wrap reply> :A </​wrap>​ is sent back.
 +== Example ==
 +
 +<asi> $ @ X=100 Y=-100 Z
 +:​A</​asi>​
 +
 +This example shows a command that will instruct the X-axis turn at a motor rate of 100 DAC bits in one direction, the Y-axis at the same rate but in the other direction, and stop any rotation or motion of the Z-axis.
 +
 +**Note 1:** To stop rotation, give a value of zero, or just the type the axis letter without an assignment as shown in the example above, or use the [[commands:​halt|HALT command]].
 +
 +**Note 2:** The ''​HALT''​ command will not return an <wrap reply> :N-21 </​wrap> ​ when stopping a ''​SPIN''​ command.
 +
 +
 +
 +{{tag>​commands tiger ms2000}}
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
commands/spin.txt · Last modified: 2019/04/18 23:33 (external edit)