User Tools

Site Tools


commands:rdsbyte

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:rdsbyte [2025/03/26 19:59] – use section> to include code brandoncommands: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 ''Status Byte'' (see definition below).  Similar to [[commands:rdstat|RDSTAT]] but returns the raw byte. 
 + 
 + 
 +<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 [[#python_helper_script|Python script]] below for an example of how to parse the data.  Or use the [[commands:rdstat|RDSTAT]] command without any modifier, which returns the same byte in decimal form. 
 +</WRAP>
  
 == Status Byte Format == == Status Byte Format ==
Line 78: Line 83:
 **Note:** Motor power can be on while a commanded move is not in progress and the stage appears not to be moving.  This happens when the motor is either making a final adjustment to a commanded move or when it is applying a force to maintain the stage position. **Note:** Motor power can be on while a commanded move is not in progress and the stage appears not to be moving.  This happens when the motor is either making a final adjustment to a commanded move or when it is applying a force to maintain the stage position.
 </WRAP> </WRAP>
 +
 +=== Python Helper Script ===
  
 {{section>:python_code#status_byte&noheader&nofooter}} {{section>:python_code#status_byte&noheader&nofooter}}
  
 {{tag>commands tiger ms2000}} {{tag>commands tiger ms2000}}
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
commands/rdsbyte.1743033559.txt.gz · Last modified: by brandon