User Tools

Site Tools


commands:where

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:where [2016/09/07 18:04] – ↷ Links adapted because of a move operation asiadmincommands:where [2026/11/20 19:07] (current) – jon
Line 1: Line 1:
 +====== Command:WHERE (W) ======
  
 +--> MS2000 or RM2000 syntax ^
 +
 +^Shortcut  |W | 
 +^Format  |WHERE axis [axis] [axis]…|
 +
 +<--
 +
 +--> Tiger syntax ^ 
 +
 +^Shortcut  |W | 
 +^Format  |WHERE axis [axis] [axis]…|
 +^Type    |Axis-Specific  |
 +
 +<--
 +
 +Returns the current position of the device for the axis specified. \\
 +
 +The reporting precision of the ''WHERE'' command can be changed with the [[commands:vb|VB Z command]].
 +
 +== Reply ==
 +If there are no errors, a positive reply of <wrap reply> :A </wrap> will be followed by the current position, in tenths of microns.\\
 +== Example ==
 +
 +<asi> $ W X Y Z
 +:A 1234.5  432.1 0</asi>
 +
 +In this example, **X** is 123.45 microns from the origin, **Y** is 43.21 microns from the origin, and **Z** is sitting on the origin.
 +
 +<WRAP center round alert 80%>
 +When querying multiple axes in the same serial command, the order of the axes in the WHERE command does not matter.  The reply will always be in the order of the underlying hardware.  In other words, the the ordering of the responses for multiple axes does not necessarily follow the order of the query nor alphabetical order.  The order of the underlying hardware is first by card address (for Tiger only) and then by the ordering of the electronics on each card.  The ordering of underlying hardware can be determined by using the ''Z2B'' query and also found in the output of the ''BU X'' command in the line beginning with "Motor Axes:".
 +
 +</WRAP>
 +
 +
 +
 +
 +
 +
 +{{tag>commands tiger ms2000}}
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181