Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
| Entrambe le parti precedenti la revisione Revisione precedente Prossima revisione | Revisione precedente | ||
| software:devices:gear [2023/06/09 13:41] – [gearref] qem215 | software:devices:gear [2025/01/17 10:09] (versione attuale) – [Table] qem215 | ||
|---|---|---|---|
| Linea 106: | Linea 106: | ||
| {{template> | {{template> | ||
| |shortdescr=| | |shortdescr=| | ||
| + | |dim=| | ||
| + | |default=| | ||
| + | |accesstype=| | ||
| + | |um=| | ||
| + | |id=| | ||
| + | |range=| | ||
| + | |wrcond= | | ||
| + | |longdescr=}} | ||
| + | |||
| + | ---- | ||
| + | < | ||
| + | |||
| + | ==== qdoIndex ==== | ||
| + | {{template> | ||
| + | |shortdescr=indice per la configurazione | | ||
| + | |dim=| | ||
| + | |default=| | ||
| + | |accesstype=| | ||
| + | |um=| | ||
| + | |id=| | ||
| + | |range=| | ||
| + | |wrcond= | | ||
| + | |longdescr= sempre 1 FIXME}} | ||
| + | |||
| + | ---- | ||
| + | < | ||
| + | |||
| + | ==== qdoSubIndex ==== | ||
| + | {{template> | ||
| + | |shortdescr= sotto indice per la configurazione| | ||
| + | |dim=| | ||
| + | |default=| | ||
| + | |accesstype=| | ||
| + | |um=| | ||
| + | |id=| | ||
| + | |range=| | ||
| + | |wrcond= | | ||
| + | |longdescr= }} | ||
| + | |||
| + | ---- | ||
| + | < | ||
| + | |||
| + | ==== qdoData ==== | ||
| + | {{template> | ||
| + | |shortdescr= valori principali per la configurazione| | ||
| |dim=| | |dim=| | ||
| |default=| | |default=| | ||
| Linea 322: | Linea 367: | ||
| < | < | ||
| + | ==== READQDO ==== | ||
| + | {{template> | ||
| + | |cond= - | | ||
| + | |shortdescr= | | ||
| + | |id= | | ||
| + | |longdescr=}} | ||
| + | ---- | ||
| + | |||
| + | < | ||
| + | |||
| + | ==== WRITEQDO ==== | ||
| + | {{template> | ||
| + | |cond= - | | ||
| + | |shortdescr= Scrive la configurazione nel device| | ||
| + | |id= | | ||
| + | |longdescr=Scrive nel device i valori impostati su qdoIndex, qdoSubIndex e qdoData.}} | ||
| + | ---- | ||
| + | |||
| + | < | ||
| ===== - Errori e Warnings ===== | ===== - Errori e Warnings ===== | ||
| Linea 344: | Linea 408: | ||
| La seguente tabella specifica i valori assunti da // | La seguente tabella specifica i valori assunti da // | ||
| - | ^// | + | ^ // |
| - | |0|Nessun warning.| | + | | 0 | Nessun warning. |
| - | |1|Impostazione dato fuori range.| | + | | 1 | Impostazione dato fuori range. |
| - | |2|Variazione parametro non accettata.| | + | | 2 | Variazione parametro non accettata. |
| - | |3|Comando non accettato: le condizioni di esecuzione non sono rispettate.| | + | | 3 | Comando non accettato: le condizioni di esecuzione non sono rispettate. |
| + | | 8 | Disallineamento massimo superato | ||
| Per mezzo dei parametri // | Per mezzo dei parametri // | ||
| Linea 364: | Linea 429: | ||
| </ | </ | ||
| + | ===== - Configurazione ===== | ||
| + | |||
| + | **Accorgimenti: | ||
| + | - **Dichiarazione device**: <code QCL> | ||
| + | CONST | ||
| + | | ||
| + | | ||
| + | | ||
| + | INTDEVICE | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | - **Sospendere esecuzione Gantry**: <code QCL> | ||
| + | ; Gantry1 = nome device GEAR | ||
| + | Gantry1.qdoIndex = 1 | ||
| + | Gantry1.qdoSubIndex = 10 | ||
| + | Gantry1.qdoData = 0 ; 1: Resume and 0: Suspend | ||
| + | Gantry1.WRITEQDO | ||
| + | </ | ||
| + | - **Settare l'asse master**: <code QCL> | ||
| + | ; Set the master axis | ||
| + | Gantry1.qdoIndex = 1 | ||
| + | Gantry1.qdoSubIndex = 3 | ||
| + | Gantry1.qdoData = AXE_X ; | ||
| + | Gantry1.WRITEQDO | ||
| + | </ | ||
| + | - **Selezionare l'asse che si vuole comandare come slave**: <code QCL> | ||
| + | ; Select the first slave of the gear device. | ||
| + | ; The selected axis is used to assign gearing settings and thresholds | ||
| + | Gantry1.qdoIndex = 1 | ||
| + | Gantry1.qdoSubIndex = 1 ;1 perchè dichiarato come primo slave nella dichiarazione del device GEAR | ||
| + | Gantry1.qdoData = AXE_Y ; | ||
| + | Gantry1.WRITEQDO | ||
| + | ; *** Nel caso in cui si volesse selezionare l'asse Z come slave: | ||
| + | Gantry1.qdoIndex = 1 | ||
| + | Gantry1.qdoSubIndex = 2 ;2 perchè dichiarato come secondo slave nella dichiarazione del device GEAR | ||
| + | Gantry1.qdoData = AXE_Z ; | ||
| + | Gantry1.WRITEQDO | ||
| + | </ | ||
| + | - **Settare l'asse slave**: <code QCL> | ||
| + | ; Inform the gantry that the selected axis should be managed as slave | ||
| + | Gantry1.qdoIndex = 1 | ||
| + | Gantry1.qdoSubIndex = 4 ; GEAR_QDO_SUBINDEX_IS_SLAVE | ||
| + | Gantry1.qdoData = TRUE ; TRUE to set it as slave and FALSE to not handle it. | ||
| + | Gantry1.WRITEQDO | ||
| + | </ | ||
| + | - **Impostare i fattori di conversione**: | ||
| + | ; Set the factors for the selected slave | ||
| + | Gantry1.gearfactor = 1.0 ; | ||
| + | Gantry1.gearref = 1 ; | ||
| + | </ | ||
| + | - **Impostare il valore di massimo disallineamento per mandare in allarme il device**: <code QCL> | ||
| + | ; Set the alignment threshold for the selected slave in the units set to the anpos2 devices (In this case um) | ||
| + | Gantry1.qdoSubIndex = 2 | ||
| + | Gantry1.qdoData = 100 ;[Um] Se la differenza di posizione tra master e slave supera 100 [Um] il device va in allarme | ||
| + | Gantry1.WRITEQDO | ||
| + | </ | ||
| + | - **Abilitare il gantry**: <code QCL> | ||
| + | Gantry1.qdoSubIndex = 10 | ||
| + | Gantry1.qdoData = 1 ; 1: Resume and 0: Suspend | ||
| + | Gantry1.WRITEQDO | ||
| + | Gantry1.RSWRN | ||
| + | Gantry1.GEARON | ||
| + | </ | ||