en:appnote:an001

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
en:appnote:an001 [2017/04/13 17:41] – [Utilizzo di un master simulato] qem103en:appnote:an001 [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 180: Line 180:
 The device thus configured as a simulated master, is operated like a normal device remember that the control loops must be open and therefore don't need to parameterize the PID, just set the feedforward to 100%. The device thus configured as a simulated master, is operated like a normal device remember that the control loops must be open and therefore don't need to parameterize the PID, just set the feedforward to 100%.
  
-=== Esempio di programmazione === +=== Programming example === 
-Si vuole utilizzare il device EANPOs configurato nell'esempio appena descritto e si ipotizza che il master simulato debba continuare il suo movimento all'infinito+ 
 +You want to use the EANPOS device configured in the example just described and there is suppose that the master simulated should continue its movement to infinity
  
 <code QCL> <code QCL>
 ;------------------------------------------------------------ ;------------------------------------------------------------
-Gestione del master simulato+Managing the master simulated
 ;------------------------------------------------------------ ;------------------------------------------------------------
-Master:measure = 1000         ;impostazioni parametri master+Master:measure = 1000         ;master parameters settings
 Master:pulse = 4000 Master:pulse = 4000
 Master:decpt = 0 Master:decpt = 0
Line 195: Line 196:
 Master:maxpos = 999999 Master:maxpos = 999999
 Master:minpos = -999999 Master:minpos = -999999
-INIT Master                   ;inizializzazione master simulato+INIT Master                   ;initialization simulated master
 WAIT Master:st_init WAIT Master:st_init
 LOOPOFF Master LOOPOFF Master
Line 203: Line 204:
  
 MAIN: MAIN:
-IF sf01                       ;flag che da lo start al master+IF sf01                       ;flags that give the start to the master
   IF Master: st_still   IF Master: st_still
     Master:posit = 0     Master:posit = 0
     Master:setvel = 500     Master:setvel = 500
     Master:setpos = 999999     Master:setpos = 999999
-    START Master              ;comando di START+    START Master              ;START command
   ENDIF   ENDIF
-  IF Master:posit GE 500000   ;aggiorno la posizione per non causare +  IF Master:posit GE 500000   ;I update the location so as not to cause 
-                              ;un oveflow+                              ;an overflow
     Master:posit = 0     Master:posit = 0
   ENDIF   ENDIF
 ELSE ELSE
-  IF NOT Master:st_still      ;stop del master simulato+  IF NOT Master:st_still      ;top of the simulated master
     STOP Master     STOP Master
   ENDIF   ENDIF
  • Last modified: 2019/08/29 17:18