User Tools

Site Tools


commands:zs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
commands:zs [2016/09/07 22:03]
asiadmin ↷ Page moved from documentation:commands:zs to commands:zs
commands:zs [2019/04/18 23:33] (current)
Line 1: Line 1:
 +====== Command:ZS ======
  
 +--> MS2000 or RM2000 syntax#
 +
 +^Shortcut ​ |ZS| 
 +^Format ​ |ZS [X=dZ] [Y=n] [Z=mode] [F= stack_timeout]|
 +^Remembered |Using SS Z |
 +
 +<--
 +
 +--> Tiger syntax# ​
 +
 +^Shortcut ​ |ZS| 
 +^Format ​ |[addr#]ZS [X=dZ] [Y=n] [Z=mode] [F= stack_timeout]|
 +^Type    |Card-Addressed|
 +^Remembered |Using [addr#]SS Z |
 +
 +<--
 +
 +Sets parameters for use with TTL triggered Z movement. ​ User must set ''​TTL X=4''​ for this trigger mode to be active. ​ When a positive TTL edge is detected, the Z-axis is moved by an amount ''​dZ''​ (expressed in 10th microns units). This move distance is repeated for n TTL triggered moves. ​ If ''​mode=1'',​ the stage will step in the opposite direction for n moves, then turn around again, repeating a triangular waveform cycle. ​ If ''​mode=0''​ the stage will return to the original position after n moves and repeat a saw-tooth waveform cycle.  ​
 +
 +The stage will move to the starting position upon receiving the first TTL pulse after waiting more than stack_timeout milliseconds (default 500ms) from the previous pulse.
 +
 +Th axis moved by the TTL is the designated "focus index" (also the axis used for CRISP among other things). ​ Use [[commands:​unlock|UNLOCK F]] to read or set the axis letter corresponding to "focus index"​. ​ Note the setting has to be changed, settings saved, and the controller reset or power cycled for the new setting to take effect. ​ If the controller has a piezo but no motorized focus drive then the piezo axis should be set as the "focus index"​. ​ If both are present the "focus index" normally default to the piezo.
 +
 +
 +
 +<WRAP center round info 60%>
 +**Backlash** : ZS routine also performs the backlash compensation move for each step. For step size smaller than 10 microns, this might result in issues like irregular step sizes. Consider disabling [[commands:​backlash|Command:​BACKLASH]] for smaller step sizes. ​
 +</​WRAP>​
 +
 +<WRAP center round info 60%>
 +**Stack Timeout** : If the TTL frequency is less than 2Hz , then the controller might consider it a stack time out condition. Consider increasing the Stack timeout to accommodate the slower TTL frequency, to avoid any issue. ​  
 +</​WRAP>​
 +
 +
 +== Reply ==
 +
 +If there are no errors, a positive reply of <wrap reply> :A </​wrap>​ will be returned.
 +Example
 +
 +--> Tiger Example#
 +
 +Focus Drive axis is on Card#2
 +
 +<asi> $ 2ZS X=10 Y=20 Z=1
 +:​A</​asi> ​
 +
 +<--
 +
 +-->​MS2000 Example#
 +
 +<asi> $ ZS X=10 Y=20 Z=1
 +:​A</​asi> ​
 +
 +<--
 +
 +Setup to do twenty 1 micron slices with triangular pattern.
 +
 +
 +
 +
 +{{tag>​commands tiger ms2000}}
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181