User Tools

Site Tools


commands:scan

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:scan [2023/12/15 21:00] – add note about ms2k fast/slow axes brandoncommands:scan [2026/08/18 16:13] (current) – [Table] chrisd
Line 4: Line 4:
  
 ^Shortcut  |SN   |  ^Shortcut  |SN   | 
-^Format  |SCAN [X=scan_axis for X] [Y=scan_axis for Y] [Z=scan_axis for Z] [F=pattern]|+^Format  |SCAN [X=scan_axis_x] [Y=scan_axis_y] [Z=scan_axis_z] [F=pattern]|
 ^Units    |Integer| ^Units    |Integer|
 ^Remembered |Using SS Z | ^Remembered |Using SS Z |
-^Firmware Required |SCAN or ARRAY|+^Firmware Required | [[:scan_module|SCAN MODULE]] or [[:array|ARRAY MODULE]] |
  
-Sets which axes are to be used for 2-D raster scan.  The same axis settings also apply to the ''ARRAY'' module. The fast-scanned raster axis (horizontal) is defined by ''scan_axis = 1''; the slow-scanned axis (vertical) is defined by ''scan_axis = 2''.  Single axis scans (1-D) requires setting the unused axes ''scan_axis = 0'', and the driven axis as ''scan_axis = 1''.  **Note this is different from the Tiger usage of pseudoaxes X/Y/Z.**+Sets which axes are to be used for 2D raster scan. The same axis settings **also apply to the ''ARRAY'' module**. The fast-scanned raster axis (horizontal) is defined by ''scan_axis = 1''; the slow-scanned axis (vertical) is defined by ''scan_axis = 2''.  Single axis scans (1D) requires setting the unused axes ''scan_axis = 0'', and the driven axis as ''scan_axis = 1''.  **Note: this is different from the Tiger usage of pseudoaxes X/Y/Z.**
  
-The scan pattern may be set to 0 for ''RASTER'' scans or 1 for ''SERPENTINE'' scans.  This setting defaults to ''RASTER'' for firmwares with the ''SCAN MODULE'' included and ''SERPENTINE'' for firmwares with the ''ARRAY MODULE'' included.  When the number of lines (''SCANV Z'') is set to the default of 1 then the behavior is the same for both raster and serpentine.+To set multiple axes in the ''SCAN'' command, you will need to set all of the axes to 0 first.
  
-Without arguments, the command ''SCAN'' initiates (or stops) a scan using parameters set with the ''SCANR'' and ''SCANV'' commands.+<WRAP center round info 80%> 
 +If you try to set the axis index and that index is already assigned to another axis, then the value will not change. For example, if you use **SCAN X=2** and the Y axis is already set to index 2, nothing will happen. The solution is to set **SCAN Y=0** and then you will be able to change the X axis index. 
 +</WRAP>
  
-To use multiple axes in the ''SCAN'' command, you will need to set all of the axes to 0 first.+**No Arguments:** The command ''SCAN'' initiates (or stops) a scan using parameters set with the [[:commands:scanr|SCANR]] and [[:commands:scanv|SCANV]] commands. 
 + 
 +**X:** ''[scan_axis_x]'' Set or query the scan axis for the X axis. 
 + 
 +**Y:** ''[scan_axis_y]'' Set or query the scan axis for the Y axis. 
 + 
 +**Z:** ''[scan_axis_z]'' Set or query the scan axis for the Z axis. 
 + 
 +^ Scan Axes for MS2000 only                           ||| 
 +^ Code                       ^ Name      ^ Description  ^ 
 +| 0                          | ''None''  | No Axis      | 
 +| 1                          | ''Horz''  | Fast Axis    | 
 +| 2                          | ''Vert''  | Slow Axis    | 
 + 
 +**F:** ''[pattern]'' The scan pattern may be set to 0 for ''RASTER'' scans or 1 for ''SERPENTINE'' scans.  This setting defaults to ''RASTER'' for firmware with the ''SCAN MODULE'' included and ''SERPENTINE'' for firmware with the ''ARRAY MODULE'' included.  When the number of lines ([[:commands:scanv|SCANV Z]]) is set to the default of 1 then the behavior is the same for both raster and serpentine scans. 
 + 
 +^Scan Pattern^ 
 +| ''0'' - ''RASTER'' | 
 +| ''1'' - ''SERPENTINE'' |
  
 <asi> <asi>
Line 39: Line 59:
 ^Type    |Card-Addressed| ^Type    |Card-Addressed|
 ^Remembered |Using [addr#]SS Z | ^Remembered |Using [addr#]SS Z |
-^Firmware Required |SCAN or ARRAY|+^Firmware Required | [[:scan_module|SCAN MODULE]] or [[:array|ARRAY MODULE]] |
  
  
 Note multiple small changes in usage from MS-2000 command set.  Note multiple small changes in usage from MS-2000 command set. 
  
-Specifying an argument for the pseudoaxis X in decimal sets  the  state  directly  (see  table  below;  the  value  is  simply  the  decimal representation  of  the  corresponding  state  character).    Note  that  the  firmware expects  only certain  states to  be set  by the user (marked as “OK to  set” in  the table); setting to a different state may yield unpredictable results.  Querying the pseudoaxis X value returns the character associated with the current state.+**No Arguments:** The command ''SCAN'' initiates (or stops) a scan using parameters set with the ''SCANR'' and ''SCANV'' commands.
  
-Specify the cards axis ID  as the ''fast_axis_id'' or ''slow_axis_id'' (axis IDs are obtainable using ''Z2B'' query; they are 0 and 1 for X and Y axes respectively on a two-axis motor card).  If ''slow_axis_id''  is set to 9 then a true single-axis scan will be executed (not even anti-backlash moves on the slow axis); if ''slow_axis_id''  is specified but the slow axis start and stop positions (''NV X'' and ''NV Y'') are equal then a single-axis scan will execute but the slow axis position will be checked at the scan turnaround points.  **Note this is different from the MS-2000 usage of pseudoaxes X/Y/Z.**+**X:** ''[scan_state]'' Specifying an argument for the pseudoaxis X in decimal sets  the  state  directly  (see  table  below;  the  value  is  simply  the  decimal representation  of  the  corresponding  state  character).    Note  that  the  firmware expects  only certain  states to  be set  by the user (marked as “OK to  set” in  the table); setting to a different state may yield unpredictable results.  Querying the pseudoaxis X value returns the character associated with the current state.
  
-The scan pattern may be set to 0 for ''RASTER'' scans or 1 for ''SERPENTINE'' scans.+**Y/Z:** ''[axis_id]'' Specify the cards axis ID  as the ''fast_axis_id'' or ''slow_axis_id'' (axis IDs are obtainable using ''Z2B'' query; they are 0 and 1 for X and Y axes respectively on a two-axis motor card).  If ''slow_axis_id''  is set to 9 then a true single-axis scan will be executed (not even anti-backlash moves on the slow axis); if ''slow_axis_id''  is specified but the slow axis start and stop positions (''NV X'' and ''NV Y'') are equal then a single-axis scan will execute but the slow axis position will be checked at the scan turnaround points.  **Note: this is different from the MS-2000 usage of pseudoaxes X/Y/Z.**
  
-Without arguments, the command ''SCAN'' initiates (or stops) a scan using parameters set with the ''SCANR'' and ''SCANV'' commands.+**F:** ''[pattern]'' The scan pattern may be set to 0 for ''RASTER'' scans or 1 for ''SERPENTINE'' scans. 
 + 
 +^ Scan Axes for Tiger only                                   ||| 
 +^ Code (axis_id)            ^ Name              ^ Description  ^ 
 +| 0                         | ''Horz / X / Z''  | First Axis   | 
 +| 1                         | ''Vert / Y / F''  | Second Axis  | 
 +| 9                         | ''None''          | No Axis      |
  
 ^ Scan states (SCAN_MODULE firmware) ^^^^ ^ Scan states (SCAN_MODULE firmware) ^^^^
Line 61: Line 87:
 |c| |No |Waits for fast axis move to finish       | |c| |No |Waits for fast axis move to finish       |
 |d| |No |Starts serpentine slow axis move         | |d| |No |Starts serpentine slow axis move         |
-|e| |No |Waits until serepentine move complete    | +|e| |No |Waits until serpentine move complete    | 
-|f| |No |Used in XF_SPIM only                     |+|f| |No |Used in ''XF_SPIM'' only                     |
 |g| |No |Waits until retrace is complete          | |g| |No |Waits until retrace is complete          |
 |h| |No |Scan complete, cleans up                 | |h| |No |Scan complete, cleans up                 |
 +|t| |No |Scan init, if ''scan_overshoot'' is not 0 (''NV T'') |
  
 <-- <--
Line 77: Line 104:
 ^Firmware Required |MM_SPIM| ^Firmware Required |MM_SPIM|
  
-Without arguments, starts or arms the SPIM state machine or terminates it if running or armed (starts state machine execution for Micro-mirror, puts in arm state for piezo).  By so doing, any active single-axis functions will be stopped and the SPIM positions/steps will be calculated according to the active parameters (e.g. SAA, SAO, NR, NV, RT). Specifying an argument for the pseudo-axis X in decimal sets the state directly (see table below; the value is simply the decimal representation of the corresponding state character).  Note that the firmware expects only certain states to be set by the user (marked as “OK to set” in the table); setting to a different state may yield unpredictable results.  Querying the pseudo-axis X value returns the character associated with the current state.+**No Arguments:** Starts or arms the SPIM state machine or terminates it if running or armed (starts state machine execution for Micro-mirror, puts in arm state for piezo).  By so doing, any active single-axis functions will be stopped and the SPIM positions/steps will be calculated according to the active parameters (e.g. ''SAA'', ''SAO'', ''NR'', ''NV'', ''RT'').  
 + 
 +**X:** ''[state]'' Specifying an argument for the pseudo-axis X in decimal sets the state directly (see table below; the value is simply the decimal representation of the corresponding state character).  Note that the firmware expects only certain states to be set by the user (marked as “OK to set” in the table); setting to a different state may yield unpredictable results.  Querying the pseudo-axis X value returns the character associated with the current state.
  
 ^ Micro-mirror SPIM states (MM_SPIM firmware) ^^^^ ^ Micro-mirror SPIM states (MM_SPIM firmware) ^^^^
Line 85: Line 114:
 |  a  | 97 | Yes         |Arm for trigger (goes to state 'A')      | |  a  | 97 | Yes         |Arm for trigger (goes to state 'A')      |
 |  A  | | No |Armed and waiting                        | |  A  | | No |Armed and waiting                        |
-|  T  | 84 | Yes |Trigger from state 'A' (v3.37+)          |+|  T  | 84 | Yes |Trigger from state 'A' <wrap lo>(Requires firmware v3.37+)</wrap> |
 |  P  | 80 | Yes |Stop (goes to state 'I')                 | |  P  | 80 | Yes |Stop (goes to state 'I')                 |
 |  M  | | No |In middle of sheet (executing per-sheet scan/camera/laser state machines)| |  M  | | No |In middle of sheet (executing per-sheet scan/camera/laser state machines)|
Line 99: Line 128:
  
  
- +{{tag>scan array commands tiger ms2000}}
-{{tag>commands tiger ms2000 scan array}}+
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
commands/scan.1702692005.txt.gz · Last modified: by brandon