commands:rdsbyte
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| commands:rdsbyte [2018/02/07 17:24] – jon | commands:rdsbyte [2026/03/12 17:25] (current) – jon | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Command: | ||
| + | --> MS2000 or RM2000 syntax ^ | ||
| + | |||
| + | ^Shortcut | ||
| + | ^Format | ||
| + | |||
| + | <-- | ||
| + | |||
| + | --> Tiger syntax ^ | ||
| + | |||
| + | ^Shortcut | ||
| + | ^Format | ||
| + | ^Type |Axis-Specific | ||
| + | |||
| + | <-- | ||
| + | |||
| + | Requests the TG-1000 and MS-2000 to respond with the '' | ||
| + | |||
| + | |||
| + | <WRAP center round info 80%> | ||
| + | **Note:** If you don't see the serial response, it may be because the reply is in raw bytes, see the [[# | ||
| + | </ | ||
| + | |||
| + | == Status Byte Format == | ||
| + | '' | ||
| + | '' | ||
| + | '' | ||
| + | |||
| + | The number is one byte, which can be broken down into 8 bits that represent the following internal flags: | ||
| + | |||
| + | ^Bit 0|0 = No commanded move is in progress. \\ 1 = A commanded move is in progress. \\ This bit is synonymous with the '' | ||
| + | ^Bit 1|0 = The axis is disabled. \\ 1 = The axis is enabled. \\ Axes can be re-enabled using one of the following: \\ High Level command '' | ||
| + | ^Bit 2|0 = Motor is inactive (off) \\ 1 = Motor is active (on).| | ||
| + | ^Bit 3|0 = Joystick/ | ||
| + | ^Bit 4|0 = Motor not ramping \\ 1 = Motor ramping | ||
| + | ^Bit 5|0 = Ramping down \\ 1 = Ramping up | | ||
| + | ^Bit 6|Upper Limit Switch: \\ 0 = Open \\ 1 = Closed | ||
| + | ^Bit 7|Lower Limit Switch: \\ 0 = Open \\ 1 = Closed | ||
| + | |||
| + | == Reply == | ||
| + | |||
| + | <wrap reply>:< | ||
| + | |||
| + | <wrap reply>< | ||
| + | |||
| + | The reply should be read as raw bytes, a common pattern for the '' | ||
| + | | ||
| + | The total length of the reply will be the number of axes sent in the command plus 3. \\ | ||
| + | For example '' | ||
| + | |||
| + | The response '':< | ||
| + | '' | ||
| + | |||
| + | |||
| + | == MS-2000 Example == | ||
| + | |||
| + | <asi> $ RB X | ||
| + | :< | ||
| + | $ RB X Y | ||
| + | :< | ||
| + | $ RB X Y Z | ||
| + | :< | ||
| + | </ | ||
| + | |||
| + | == TG-1000 Example == | ||
| + | |||
| + | <asi> $ 1RB X Y | ||
| + | :< | ||
| + | </ | ||
| + | |||
| + | \\ The X-axis example value of '' | ||
| + | '' | ||
| + | '' | ||
| + | '' | ||
| + | '' | ||
| + | '' | ||
| + | '' | ||
| + | '' | ||
| + | '' | ||
| + | |||
| + | <WRAP center round info 60%> | ||
| + | **Note:** Motor power can be on while a commanded move is not in progress and the stage appears not to be moving. | ||
| + | </ | ||
| + | |||
| + | === Python Helper Script === | ||
| + | |||
| + | {{section>: | ||
| + | |||
| + | {{tag> | ||
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
