User Tools

Site Tools


commands:pm

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:pm [2022/08/16 18:57] – note about mode3 and correct mode numbers brandoncommands:pm [2026/10/08 13:13] (current) – reworded intro, put piezo (most common) at the top jon
Line 1: Line 1:
 ====== Command:PM ====== ====== Command:PM ======
  
-**This is a Tiger only command** , that has different usage for micro-mirrors and piezos.  +**This is a Tiger only command**, that has different usage for different devices, normally related to setting the method of control.
  
---> Micro-mirror# +--> Piezo ^
- +
-^Shortcut  |PM|  +
-^Format  |PM [axis]=[0 or 1] …| +
-^Units    |Integer code, 0-1| +
-^Type    |Axis-Specific  | +
-^Remembered |Using [addr#]SS Z | +
-^Firmware Required|v2.8+| +
- +
-This command is “recycled” for a different use in MicroMirror axes than for piezo. In the context of a MicroMirror axis this command is used to put the axis in internal or external mode.  +
- +
-**1** is external input mode.  Mirror is positioned based on analog input voltage.  Default mode until v3.10, except for SPIM-enabled systems. +
- +
-**0** is internal input mode.  Mirror can be positioned thru serial command or onboard routines.  Default mode for SPIM-enabled systems and v3.10+. +
- +
-**Example** +
- +
-<asi> $ PM A=1 B=1  +
-:A</asi> +
-Puts the axes in external input mode +
-<asi> $ PM A? B?  +
-A=1 B=1 :A</asi> +
-Queries the mode of axes +
- +
-<-- +
- +
---> Piezo# +
  
 ^Shortcut  |PM|  ^Shortcut  |PM| 
 ^Format  |PM [axis]=[0 to 3,+,-] | ^Format  |PM [axis]=[0 to 3,+,-] |
-^Units    |Integer code, 0 to 3 and + and - sign|+^Units    |Integer code|
 ^Type    |Axis-Specific  | ^Type    |Axis-Specific  |
 ^Remembered |Using [addr#]SS Z | ^Remembered |Using [addr#]SS Z |
Line 39: Line 13:
 ''PM'' command sets the ADEPT card in various modes,   Open Loop, Closed loop, Internal Input and External Input.  In MS-2000 this is set by the [[commands:pz|''PZ Z'' command]]; in TG-1000 either ''PM'' or ''PZ Z'' can be used. ''PM'' command sets the ADEPT card in various modes,   Open Loop, Closed loop, Internal Input and External Input.  In MS-2000 this is set by the [[commands:pz|''PZ Z'' command]]; in TG-1000 either ''PM'' or ''PZ Z'' can be used.
  
-^PM [axis] = ^Mode of Operation ^ +^ PM [axis] =  ^ Mode of Operation                     ^ 
-|0 |TG-1000 input, Closed loop (default) | +| 0            | TG-1000 input, Closed Loop (default)  | 
-|1 |External input, Closed Loop          | +| 1            | External input, Closed Loop           | 
-|2 |TG-1000 input, Open loop             | +| 2            | TG-1000 input, Open Loop              | 
-|3 |External input, open loop            | +| 3            | External input, Open Loop             | 
-|PM [axis]+ |Fast Mode                            | +| PM [axis]+   | Fast Mode                             | 
-|PM [axis]- |Slow Mode                            |+| PM [axis]-   | Slow Mode                             |
  
 In Open Loop mode, a set voltage is applied to the piezo and the feedback from strain gauge is ignored. Useful during system calibration.  In Open Loop mode, a set voltage is applied to the piezo and the feedback from strain gauge is ignored. Useful during system calibration. 
Line 66: Line 40:
 <-- <--
  
 +--> Micro-mirror ^
  
---> Tunable Lens (TGTLC)#+^Shortcut  |PM|  
 +^Format  |PM [axis]=[0 or 1] …| 
 +^Units    |Integer code| 
 +^Type    |Axis-Specific  | 
 +^Remembered |Using [addr#]SS Z | 
 +^Firmware Required|v2.8+| 
 + 
 +This command is “recycled” for a different use in MicroMirror axes than for piezo. In the context of a MicroMirror axis this command is used to put the axis in internal or external mode.  
 + 
 +**1** is external input mode.  Mirror is positioned based on analog input voltage.  Default mode until v3.10, except for SPIM-enabled systems. 
 + 
 +**0** is internal input mode.  Mirror can be positioned thru serial command or onboard routines.  Default mode for SPIM-enabled systems and v3.10+. 
 + 
 +**Example** 
 + 
 +<asi> $ PM A=1 B=1  
 +:A</asi> 
 +Puts the axes in external input mode 
 +<asi> $ PM A? B?  
 +A=1 B=1 :A</asi> 
 +Queries the mode of axes 
 + 
 +<-- 
 + 
 + 
 + 
 +--> Tunable Lens (TGTLC) ^
  
 ^Shortcut  |PM|  ^Shortcut  |PM| 
 ^Format  |PM [axis]=[0 or 3] …| ^Format  |PM [axis]=[0 or 3] …|
-^Units    |Integer code, 0-3|+^Units    |Integer code|
 ^Type    |Axis-Specific  | ^Type    |Axis-Specific  |
 ^Remembered |Using [addr#]SS Z | ^Remembered |Using [addr#]SS Z |
Line 99: Line 100:
  
  
---> TGGALVO / TGDAC4 #+--> TGGALVO ^
  
 ^Shortcut  |PM|  ^Shortcut  |PM| 
 ^Format  |PM [axis]=[0-7] …| ^Format  |PM [axis]=[0-7] …|
-^Units    |Integer code, 0-7|+^Units    |Integer code|
 ^Type    |Axis-Specific  | ^Type    |Axis-Specific  |
 ^Remembered |Using [addr#]SS Z | ^Remembered |Using [addr#]SS Z |
 ^Firmware Required|v3.2+| ^Firmware Required|v3.2+|
  
-For TGGALVO card, the bits 0-2 of the specified code sets the output range (values 0-7 in decimal).  Bits 3-7 are reserved for future use.+For TGGALVO card, the bits 0-2 of the specified code sets the output range (values 0-7 in decimal).  Bits 3-7 are reserved for future use.  **Controller reset or restart (after doing ''[Addr#]SAVESET Z'') is needed for setting to take full effect.**  Note that the internal axis units remain from -4000 to +4000, but that range of internal units is mapped to the output range set using the PM command.
  
-**Note: in case of SIGNAL_DAC or DAC_XY firmware, this operation is performed with [[commands:pr|Command:PR]] command instead.** 
  
-^Code (Decimal) ^ Code (Binary) ^ Output range ^ +<WRAP center round important 60%> 
-|0| 000 | 0V to 2.048V| +in case of **SIGNAL_DAC** or **DAC_XY** firmware, this operation is performed with [[commands:pr|Command:PR]] command instead. 
-|1| 001 | 0V to 4.096V| +</WRAP> 
-|2| 010 | 0V to 10.24V| + 
-|3| 011 | not supported| +^ Code (Decimal)  ^ Code (Binary)  ^ Output range       ^ 
-|4| 100 | -1.024V to 1.024V| +| 0               | 000            | 0V to 2.048V       | 
-|5| 101 | -2.048V to 2.048V| +| 1               | 001            | 0V to 4.096V       | 
-|6| 110 | -5.128V to 5.128V| +| 2               | 010            | 0V to 10.24V       | 
-|7| 111 | -10.24V to 10.24V|+| 3               | 011            | not supported      | 
 +| 4               | 100            | -1.024V to 1.024V  | 
 +| 5               | 101            | -2.048V to 2.048V  | 
 +| 6               | 110            | -5.120V to 5.120V  | 
 +| 7               | 111            | -10.24V to 10.24V  |
  
 **Example** **Example**
Line 132: Line 136:
  
 <-- <--
- 
- 
- 
  
 {{tag>commands tiger piezo micromirror tlens TGTLC temperature}} {{tag>commands tiger piezo micromirror tlens TGTLC temperature}}
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
commands/pm.1660690628.txt.gz · Last modified: by brandon