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 revisionPrevious revision
Next revision
Previous revision
commands:spin [2016/09/07 18:04] – ↷ Links adapted because of a move operation asiadmincommands:spin [2026/08/31 15:56] (current) – add motion tag, motion topic section brandon
Line 1: Line 1:
 +====== Command:SPIN (@) ======
  
 +--> MS2000 or RM2000 syntax ^
 +
 +^Shortcut  |@| 
 +^Format  |SPIN [axis]=[-128 to 128]…|
 +^Units    |Integer |
 +
 +<--
 +
 +--> Tiger syntax ^
 +
 +^Shortcut  |@| 
 +^Format  |SPIN [axis]=[-128 to 128]…|
 +^Units    |Integer |
 +^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.
 +
 +{{topic>motion&nodate}}
 +
 +{{tag>motion commands tiger ms2000}}
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181