commands:rdsbyte
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| commands:rdsbyte [2024/06/18 14:50] – table cleanup brandon | commands:rdsbyte [2026/03/12 17:25] (current) – jon | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| <-- | <-- | ||
| - | Requests the TG-1000 and MS-2000 to respond with the Status Byte. | + | 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: | The number is one byte, which can be broken down into 8 bits that represent the following internal flags: | ||
| Line 30: | Line 40: | ||
| == Reply == | == Reply == | ||
| - | <wrap reply> :<byte as hexadecimal> | ||
| - | == Example == | + | <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 | ||
| <asi> $ RB X | <asi> $ RB X | ||
| Line 40: | Line 62: | ||
| $ RB X Y Z | $ RB X Y Z | ||
| :< | :< | ||
| + | </ | ||
| + | |||
| + | == TG-1000 Example == | ||
| + | |||
| + | <asi> $ 1RB X Y | ||
| + | :< | ||
| </ | </ | ||
| \\ The X-axis example value of '' | \\ The X-axis example value of '' | ||
| - | Bit7: 1 - X Axis is at its lower limit \\ | + | '' |
| - | Bit6: 0 - X Axis upper limit switch open \\ | + | '' |
| - | Bit5: 0 - Ramping down, if ramping \\ | + | '' |
| - | Bit4: 0 - Motor not ramping \\ | + | '' |
| - | Bit3: 1 - Joystick/ | + | '' |
| - | Bit2: 0 - Motor power is off \\ | + | '' |
| - | Bit1: 1 - X Axis is enabled \\ | + | '' |
| - | Bit0: 0 - No commanded move is in progress \\ | + | '' |
| <WRAP center round info 60%> | <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. | + | **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> | {{tag> | ||
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
commands/rdsbyte.1718736629.txt.gz · Last modified: by brandon
