User Tools

Site Tools


commands:pz

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:pz [2023/04/02 05:45] – minor edits brandoncommands:pz [2026/04/14 15:41] (current) – Clarification on old PZ Y range. chrisd
Line 1: Line 1:
 ====== Command:PZ ====== ====== Command:PZ ======
  
---> MS2000 or RM2000 syntax#+--> MS2000 or RM2000 syntax ^
  
-^ Format      | PZ X=[1 to 255] Y=[20 to 5101] Z=[0 to 3] <wrap lo>(pre 9.2f)</wrap> \\ PZ X=[1 to 255] Y=[1 to 255] Z=[0 to 3,+,-] F=[0 to 65000] <wrap lo>(9.2f and above)</wrap>  |+^ Format      | PZ X=[1 to 255] Y=[25 to 5101] Z=[0 to 3] <wrap lo>(pre 9.2f)</wrap> \\ PZ X=[1 to 255] Y=[1 to 255] Z=[0 to 3,+,-] F=[0 to 65000] <wrap lo>(9.2f and above)</wrap>  |
 ^ Units       | Integer codes                                                                                                                                                        | ^ Units       | Integer codes                                                                                                                                                        |
 ^ Remembered  | X and Y automatically, Z and F using SS Z                                                                                                                            | ^ Remembered  | X and Y automatically, Z and F using SS Z                                                                                                                            |
Line 9: Line 9:
 <-- <--
  
---> Tiger syntax# +--> Tiger syntax ^
  
 ^Format  |[#Addr]PZ X=[1 to 255] Y=[25 to 5101] Z=[0 to 3] F=[0 to 100] T=[0 to 500] <wrap lo>(pre v2.83)</wrap> \\ [#Addr]PZ X=[1 to 255] Y=[1 to 255] Z=[0 to 3,+,-] (v3.11 and above: F=[0 to 65000] R=[0 to 100] T=[0 to 500]) \\ <wrap lo>(v2.83-3.10: F=[0 to 100] T=[0 to 500])</wrap> | ^Format  |[#Addr]PZ X=[1 to 255] Y=[25 to 5101] Z=[0 to 3] F=[0 to 100] T=[0 to 500] <wrap lo>(pre v2.83)</wrap> \\ [#Addr]PZ X=[1 to 255] Y=[1 to 255] Z=[0 to 3,+,-] (v3.11 and above: F=[0 to 65000] R=[0 to 100] T=[0 to 500]) \\ <wrap lo>(v2.83-3.10: F=[0 to 100] T=[0 to 500])</wrap> |
Line 22: Line 22:
 The **Y** argument sets the gain of the feedback stage. The setting is stored in non-volatile memory on the ''ADEPT'' board. This is one of the settings that is automatically picked during long auto calibration. Please refer the calibration section for its usage. On Tiger [[commands:pg|PG command]] is equivalent.  One does not have an advantage over another; usage is left to user preference.   The **Y** argument sets the gain of the feedback stage. The setting is stored in non-volatile memory on the ''ADEPT'' board. This is one of the settings that is automatically picked during long auto calibration. Please refer the calibration section for its usage. On Tiger [[commands:pg|PG command]] is equivalent.  One does not have an advantage over another; usage is left to user preference.  
  
-<wrap lo>Pre MS2000 v9.2f & Tigerv2.83:</wrap> a formula was used to convert ''25-5101'' to 8-bit ''255''. Due to rounding issues and such, we removed the formula so now user can enter the setting directly and have more control. +<wrap lo>Pre MS2000 v9.2f & Tiger v2.83:</wrap> For the Gain (Y) setting, a formula was used to convert the numerical range ''[25 to 5101]'' to 8-bit ''[255 to 1]'' and back again. Due to rounding issues and such, we removed the formula so now user can enter the setting directly as [0 to 255] and have more control. 
  
 The **Z** argument sets the board in various modes. On Tiger controller [[commands:pm|PM command]] is equivalent in firmware v2.8+.  One does not have an advantage over another; usage is left to user preference.   The **Z** argument sets the board in various modes. On Tiger controller [[commands:pm|PM command]] is equivalent in firmware v2.8+.  One does not have an advantage over another; usage is left to user preference.  
Line 36: Line 36:
 The **F** argument (requires Tiger v3.11+ and MS2000 v9.2f) sets the value of the timer for Auto Sleep feature.  Units of are in minutes. To maximize piezo actuators’ lifetime they should to be turned off when not in use. Every time the piezo is moved (e.g. commanded move, TTL-triggered move, or with a manual input device like the wheel) the auto sleep timer is reset to 0.  When the timer reaches the value set by the **F** argument the sleep state is entered.  In the sleep state piezos are moved to the sleep position and the code returned by the [[commands:rdstat|RS+ command]] (equivalent to the right status character on MS-2000 LCD screens) changes to **E**.  However, the position returned by the [[commands:where|WHERE command]] is not changed during sleep.  Further, any move will proceed from the pre-sleep position.  To disable the auto sleep feature, set the **F** argument to 0.  On most firmware builds the default value is 0, i.e. disabled. However on SPIM builds the default value is 5 minutes. To exit sleep without affecting anything else, send the [[commands:movrel|R <axis> command]] to execute a relative move of distance 0.  Setting the **F** argument clears the timer but does not exit the sleep state. The **F** argument (requires Tiger v3.11+ and MS2000 v9.2f) sets the value of the timer for Auto Sleep feature.  Units of are in minutes. To maximize piezo actuators’ lifetime they should to be turned off when not in use. Every time the piezo is moved (e.g. commanded move, TTL-triggered move, or with a manual input device like the wheel) the auto sleep timer is reset to 0.  When the timer reaches the value set by the **F** argument the sleep state is entered.  In the sleep state piezos are moved to the sleep position and the code returned by the [[commands:rdstat|RS+ command]] (equivalent to the right status character on MS-2000 LCD screens) changes to **E**.  However, the position returned by the [[commands:where|WHERE command]] is not changed during sleep.  Further, any move will proceed from the pre-sleep position.  To disable the auto sleep feature, set the **F** argument to 0.  On most firmware builds the default value is 0, i.e. disabled. However on SPIM builds the default value is 5 minutes. To exit sleep without affecting anything else, send the [[commands:movrel|R <axis> command]] to execute a relative move of distance 0.  Setting the **F** argument clears the timer but does not exit the sleep state.
  
---> Additional Tiger-only Functions#+--> Additional Tiger-only Functions ^
  
 The **R** argument only applies when the piezo maintain code is set to 1.  (In firmware between v2.83 and v3.10 it was the **F** argument instead.)  It sets the maximum time to move towards the overshoot position, expressed in milliseconds.  Refer to the documentation under [[commands:maintain|MA]]. The **R** argument only applies when the piezo maintain code is set to 1.  (In firmware between v2.83 and v3.10 it was the **F** argument instead.)  It sets the maximum time to move towards the overshoot position, expressed in milliseconds.  Refer to the documentation under [[commands:maintain|MA]].
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
commands/pz.1680428712.txt.gz · Last modified: by brandon