User Tools

Site Tools


command_quick_start

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
command_quick_start [2026/09/01 16:11] – [Most common commands] add HALT command to table brandoncommand_quick_start [2026/10/12 19:44] (current) – jon
Line 3: Line 3:
 This section is intended to quickly bring the users up to speed on the most common serial commands.  Find separately [[commands|an index of all commands]] and a [[products/serial_commands|compiled list of commands]]; separate documentation for each command are linked there. This section is intended to quickly bring the users up to speed on the most common serial commands.  Find separately [[commands|an index of all commands]] and a [[products/serial_commands|compiled list of commands]]; separate documentation for each command are linked there.
  
-There is a separate page detailing the [[tech_note_rs232_comm|communication details]] (also includes notes on various software that can be used to send serial commands directly or indirectly including Python, Julia, Micro-Manager, LabView, etc).  Serial commands are not case-sensitive.  For commands that require a numeric input, if none is specified then the value is taken to be 0.+There is a separate page detailing the [[tech_note_rs232_comm|communication details]] (also includes notes on various software that can be used to send serial commands directly or indirectly including [[python|Python]], Julia, [[micro-manager|Micro-Manager]], [[labview|LabView]], etc).  Serial commands are not case-sensitive.  For commands that require a numeric input, if none is specified then the value is taken to be 0.
  
 The most common commands are identical across both the MS-2000/RM-2000 controller and the TG-1000 "Tiger" controller.  Any "axis-specific" commands that specifies a physical axis that the command applies to will be identical (e.g. ''M'', ''R'', ''W'' for absolute and relative moves along with position query) along with the busy query ''/''.  Commands that use a letter to specify what the setting is (e.g. ''TTL X'' sets TTL input mode and ''TTL Y'' sets TTL output mode) are slightly different on Tiger in that the card address must be prepended.  There is a full description of [[tiger_ms2k_difference|TG-1000 and MS-2000’s instruction set differences]].  The most common commands are identical across both the MS-2000/RM-2000 controller and the TG-1000 "Tiger" controller.  Any "axis-specific" commands that specifies a physical axis that the command applies to will be identical (e.g. ''M'', ''R'', ''W'' for absolute and relative moves along with position query) along with the busy query ''/''.  Commands that use a letter to specify what the setting is (e.g. ''TTL X'' sets TTL input mode and ''TTL Y'' sets TTL output mode) are slightly different on Tiger in that the card address must be prepended.  There is a full description of [[tiger_ms2k_difference|TG-1000 and MS-2000’s instruction set differences]]. 
Line 16: Line 16:
 ^ ''[[commands:halt|HALT]]'' ^ ''[[commands:halt|\]]'' | Stops all active motors and actuators | - | Broadcast; TG-1000 card address allowed, but only with the full ''HALT'' | ''\'' halts motion; follow with ''/'', which returns ''N'' once all axes have stopped | ^ ''[[commands:halt|HALT]]'' ^ ''[[commands:halt|\]]'' | Stops all active motors and actuators | - | Broadcast; TG-1000 card address allowed, but only with the full ''HALT'' | ''\'' halts motion; follow with ''/'', which returns ''N'' once all axes have stopped |
 ^ ''[[commands:where|WHERE]]'' ^ ''[[commands:where|W]]'' | Queries the absolute position of the axis | 10ths of microns | Axis | ''W X'' returns '':A 1000'' if the absolute position is 100um relative to the origin | ^ ''[[commands:where|WHERE]]'' ^ ''[[commands:where|W]]'' | Queries the absolute position of the axis | 10ths of microns | Axis | ''W X'' returns '':A 1000'' if the absolute position is 100um relative to the origin |
-^ ''[[commands:here|HERE]]'' ^ ''[[commands:here|H]]'' | Sets the origin of the coordinate system for the specified axis | 10ths of microns | Axis | ''H X'' sets the current position of the X axis to be 0  |+^ ''[[commands:here|HERE]]'' ^ ''[[commands:here|H]]'' | Redefines the current position of the axis without moving it | 10ths of microns | Axis | ''H X=1000'' declares the current position of X to be 100 um; ''H X'' sets it to 0 | 
 +^ ''[[commands:zero|ZERO]]'' ^ ''[[commands:zero|Z]]'' | Makes the current position the origin for all axes | - | Broadcast | ''Z'' zeroes every axis; use ''HERE'' to zero one axis |
 ^ ''[[commands:status|STATUS]]'' ^ ''[[commands:status|/]]'' | Queries status of all axes on controller (MS-2000) or on card (TG-1000 if address is specified) | - | Address optionally (TG-1000 only) | ''/'' returns ''N'' if no axis is busy or ''B'' if at least one axis is busy | ^ ''[[commands:status|STATUS]]'' ^ ''[[commands:status|/]]'' | Queries status of all axes on controller (MS-2000) or on card (TG-1000 if address is specified) | - | Address optionally (TG-1000 only) | ''/'' returns ''N'' if no axis is busy or ''B'' if at least one axis is busy |
 ^ ''[[commands:rdstat|RDSTAT]]'' ^ ''[[commands:rdstat|RS]]'' | When used with ''?'' qualifier, queries status of the specified axis | - | Axis | ''RS X?'' returns ''N'' if the X axis is not busy or ''B'' if busy | ^ ''[[commands:rdstat|RDSTAT]]'' ^ ''[[commands:rdstat|RS]]'' | When used with ''?'' qualifier, queries status of the specified axis | - | Axis | ''RS X?'' returns ''N'' if the X axis is not busy or ''B'' if busy |
Line 41: Line 42:
 ''…'' indicates more arguments can be sent with the same command. ''…'' indicates more arguments can be sent with the same command.
  
-All commands are completed with a Carriage Return (ASCII hex code: ''0D'').  The controllers receive ASCII characters one at a time and place them into their memory buffer.  With the exception of single hex code commands like the tilde ''~'' and halt ''/'', the controller will not process a command in the memory buffer until the Carriage Return ''<CR>'' has been received. +All commands are completed with a Carriage Return (ASCII hex code: ''0D'').  The controllers receive ASCII characters one at a time and place them into their memory buffer.  With the exception of single hex code commands like the tilde ''~'' and halt ''\'', the controller will not process a command in the memory buffer until the Carriage Return ''<CR>'' has been received. 
  
 ===== Reply Syntax ===== ===== Reply Syntax =====
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
command_quick_start.1788293505.txt.gz · Last modified: by brandon