This is an old revision of the document!
QCL Library
FUNCTIONS FOR OPERATIONS ON DIGITAL INPUTS
IR10EdgeInp | Rising edge and descent detection of an input or a flag |
IR10Edge | Rising edge detection of a digital signal with verification time |
IR10EdgTmInp | Rising edge and descent detection of an input o a flag with time reset capture flags fronts |
VC10ChronVar | Measurement timing of activation of an input or variable |
FUNCTIONS FOR OPERATIONS ON DIGITAL OUTPUTS
OA10BlinkOut | Blink management of an output or a flag |
OA10SetTmOut | Activation management of an output for a settable time |
OT11PidReg | Digital output modulation to check a temperature control process through P.I.D. system |
OT21PidReg | Modulation of two digital outputs for a generic process control through PID + FF adjustment |
OT30PidReg | Generic PID + FF controller |
FUNCTIONS FOR OPERATIONS ON VARIABLES
VC10CollVal | Comparison of a value towards to other two |
VC10Copy | Copy a value from A to B or from B to A |
VC10HistVar | A variable hysteresis towards other two values |
VC10ChronVar | Measuring switching time of a variable or input |
VC10Calendar | Calculating the day of the week (monday-etc) starting from a date |
VC12FndXPnt | Calculating the x-coordinate of a point on a line |
VC12FndYPnt | Calculation of the ordinate of a point on a line |
VT10OnChVar | Report of the variation of a variable |
VT10OnChTVar | Report of the variation of a variable with reset flag time of exchange value |
VC10DivRound | Smoothing a variable to a number of decimal places can be set |
VC10LPFilter | First-order low-pass digital filter (RC filter) for dimension data WORD |
VC21LPFilter | First-order low-pass digital filter (RC filter) for maximum size data +/- 999999 with preload option |
VC10MkTime | Gives the number of elapsed seconds from 00:00 of 1 January 1970 until the introduced date. |
VC20MkTime | Gives the number of elapsed seconds from 00:00 of 1 January 1970 until the introduced date. |
VC11Hdr | Viewing the location of a device with Hdr system OBSOLETE |
VC12Hdr | Viewing the location of a device with Hdr system |
VC11HdrJoint | Viewing the location of Joint a device with Hdr system |
VC10Granularity | Displaying a value with granularity and threshold filter |
VR10WrdtoLng | Conversion: Converts two Word variables in a Long variables |
VR10LngtoWrd | Conversion: Turns a Long variable in two Word variables |
VR10UbyToBin | Conversion: Unsigned Byte → Binary |
VR10SByToBin | Conversion: Signed Byte → Binary |
VR10UwrToBin | Conversion: Unsigned Word → Binary |
VR10SwrToBin | Conversion: Signed Word → Binary |
VR10SLnToBin | Conversion: Signed Long → Binary |
VR10BinToUBy | Conversion: Binary → Unsigned Byte |
VR10BinToSBy | Conversion: Binary → Signed Byte |
VR10BinToUWr | Conversion: Binary → Unsigned Word |
VR10BinToSWr | Conversion: Binary → Signed Word |
VR10BinToSLn | Conversion: Binary → Signed Long |
VR10UbyToAsc | Conversion: Unsigned Byte → Ascii |
VR10SbyToAsc | Conversion: Signed Byte → Ascii |
VR10UwrToAsc | Conversion: Unsigned word → Ascii |
VR10SwrToAsc | Conversion: Signed Word → Ascii |
VR10SlnToAsc | Conversion: Signed Long → Ascii |
VR10AscToUBy | Conversion: Ascii → Unsigned Byte |
VR10AscToSBy | Conversion: Ascii → Signed Byte |
VR10AscToUWr | Conversion: Ascii → Unsigned Word |
VR10AscToSWr | Conversion: Ascii → Signed Word |
VR10AscToSLn | Conversion: Ascii → Signed Long |
VR10ToSingle | Copy a long integer encoded IEEE754 value in a single variable. |
ENCODER CONTROL FUNCTIONS
DT11BreakEnc | Encoder breakage control ANALOG axes |
DT21BreakEnc | Encoder breakage control ON/OFF axes |
GENERAL FUNCTIONS FOR POSITIONERS
DA11Ramp | Generic ramp generator |
DA10AnOopos | Analog output management for ON/OFF axis with ramps |
CIRCULAR BUFFER MANAGEMENT FUNCTIONS
BC10InitBuf | Init of a circular buffer (with internal buffer management variables to the array) |
BC10PushBuf | Inserting of a value (push) in a circular buffer (with internal buffer management variables to the array) |
BC10PopBuf | Extracting of a value (pop) from a circular buffer (with internal buffer management variables to the array) |
BC21InitBuf | Init of a buffer FIFO type (circular) |
BC21PushBuf | Inserting of a value (push) in a buffer FIFO type |
BC21PopBuf | Extracting of a value (pop) from a buffer FIFO type |
BC21Inspect | Acquisition of a value into the buffer |
BC21Elements | Acquisition of the number of elements in the buffer |
FUNCTIONS WITH GENERAL OPERATIONS ON ARRAYS
AC10AvergArr | Calculating the arithmetic mean of the elements of an array |
AC10CtrlArr | Analysis of the elements in an array |
AC10SortUpAr | Sorting in ascending on the elements of an array |
AC10SortDwAr | Sorting in descending order of the elements of an array |
AC10FdMaxArr | Extracting the maximum value in an array |
AC10FdMinArr | Extracting the minimum value in an array |
AC11ResetArr | Full reset of an array |
BC10ArrFifo | Managing a FIFO buffer (first input-first output) |
FUNZIONI PER PROTOCOLLO MODBUS
DW13Modbus | Protocollo Modbus SLAVE : gestione scambio dati con device MODBUS |
DW11SerModMa | Protocollo Modbus MASTER simulato tramite device SERCOM |
DW14SerModSl | Protocollo Modbus SLAVE simulato tramite device SERCOM |
DU10MbRetry | Esecuzione del comando SEND del device MODBUS con verifica e gestione di eventuali ritentativi. |
FUNZIONI PER VECTOR IMAGE (QPAINT)
VI10InitBuffer | Inizializzazione Buffer |
VI10BeginDrawBuffer | Prepara il Buffer per aggiungere le operazioni di disegno e restituisce il codice di errore precedente |
VI10DrawBuffer | Disegna il contenuto del Buffer |
VI10WaitBufferReadyUsingEND | Attende che il buffer sia pronto a nuove operazioni uscendo dal task speciale con END |
VI10WaitBufferReadyUsingWAIT VI11WaitBufferReadyUsingWAIT | Attende che il buffer sia pronto a nuove operazioni uscendo dal task speciale con WAIT |
VI10GetErrorCode | Restituisce il codice di errore attuale |
VI10ClrErrorCode | Cancella il codice di errore attuale |
VI10GetUnusedBufferSize | Recupera la dimensione del Buffer utilizzato |
VI10AddNop | Aggiunge al Buffer il comando NOP (nessuna operazione) |
VI10AddCls | Aggiunge al Buffer il comando CLS (cancella l'area Vector Image) |
VI10SetLayer | Aggiunge al Buffer il comando SET_LAYER (imposta il layer attivo) |
VI10AddPen | Aggiunge al Buffer il comando PEN (imposta il colore disegno) |
VI10AddSet | Aggiunge al Buffer il comando SET (imposta le coordinate attuali) |
VI10AddPoint | Aggiunge al Buffer il comando POINT (disegna un punto) |
VI10AddLine | Aggiunge al Buffer il comando LINE (disegna una linea) |
VI10AddRect | Aggiunge al Buffer il comando RECT (disegna un rettangolo) |
VI10AddCircle | Aggiunge al Buffer il comando CIRCLE (disegna un cerchio) |
VI10AddArc1 | Aggiunge al Buffer il comando ARC1 (disegna un arco di tipo 1) |
VI10AddArc2 | Aggiunge al Buffer il comando ARC2 (disegna un arco di tipo 2) |
VI10AddArc3 | Aggiunge al Buffer il comando ARC3 (disegna un arco di tipo 3) |
VI10AddArcBetweenAngles | Aggiunge al Buffer il comando per il disegno di un arco che va da una angolo A ad un angolo B |
VI10SetBackground | Aggiunge al Buffer il comando background (imposta il colore di background) |
VI10AddMoveArea | Aggiunge al Buffer il comando MOVEAREA (muove il contenuto del vector Image) |
VI10UnsetLayer | Aggiunge al Buffer il comando UNSET_LAYER (disabilita il layer indicato) |
VI10LoadImage | Aggiunge al Buffer il comando LOAD_IMAGE (carica l'immagine associata ad un oggetto Image) |
VI10GetDimension | Aggiunge al Buffer il comando GET_DIMENSION (legge le dimensioni dell'oggetto VectorImage) |
VI10ExtractDimension | Estrae le dimensioni dell'oggetto VectorImage dal Buffer dopo l'esecuzione del comando VI10GetDimension |
FUNZIONI PER GESTIONE TERMOCOPPIE
IR10CJRead | Lettura del giunto freddo |
IR10HJRead | Lettura del giunto caldo |
VC10TCoupleB | Calcolo della temperatura per termocoppia di tipo B |
VC10TCoupleJ | Calcolo della temperatura per termocoppia di tipo J |
VC10TCoupleK | Calcolo della temperatura per termocoppia di tipo K |
VC10TCoupleN | Calcolo della temperatura per termocoppia di tipo N |
VC10TCoupleT | Calcolo della temperatura per termocoppia di tipo T |
IR11PTCRead | Lettura della resistenza PT100 da scheda a 3 punti |
IR20PTCRead | Lettura della resistenza PT100 da scheda a 3 punti con modalità di lettura differenziale. |
VC10PTC100 | Calcolo della temperatura per PT100 |
FUNZIONI PER GESTIONE USCITE PROGRAMMABILI
OP10Init | Uscite programmabili, inizializzazione |
OP10isOutOn | Uscite programmabili, test se stato uscita attivo |
OP10isParOk | Uscite programmabili, verifica correttezza valore |
OP10Manage | Uscite programmabili, elaborazione dati |
OP10ResOut | Uscite programmabili, reset stato uscita |
OP10ResRet | Uscite programmabili, reset ritenuta uscita |
OP10SetOut | Uscite programmabili, set stato uscita |
FUNZIONI PER CALCOLO CHECKSUM
VC10Cr32Init | Calcolo CRC, inizializzazione |
VC10Cr32Beg | Calcolo CRC, Inizio del calcolo |
VC10Cr32Calc | Calcolo CRC, Conclusione del calcolo |
VC10Cr32Udt | Calcolo CRC, Aggiornamento del calcolo |
FUNZIONI PER SYNCROMOVE
FUNZIONI GENERALI PER OPERAZIONI CON CAMMING
DW22WrCam | Scrittura su settori camma (40 settori) (CAMMING2,CAMMING3,CAMMING4) |
DW31WrCam | Scrittura su settori camma (128 settori) (CAMMING3,CAMMING4) |
DC11SpaceCam | Calcoli per ricerca spazio master minimo con spazio slave impostato |
DC10VelCam | Calcoli per costruzione dei settori di accelerazione, velocità costante e decelerazione di una camma elettronica, impostando lo spazio Master e Slave e le rispettive velocità |
FUNZIONI PER ALBERO ELETTRICO
DC10ElGear | Calcoli per gestione Albero Elettrico Master/Slave |
DC10ChGear | Calcoli per cambio rapporto di sincronismo “al volo” in Albero Elettrico Master/Slave (senza rampe) |
DC10ChVelRat | Calcolo per impostare e/o cambiare il rapporto di velocità Slave/Master di un albero elettrico in maniera dinamica con rampe di addolcimento durante il cambio velocità |
FUNZIONI PER TAGLIO AL VOLO
DC21FlyCut | Calcoli per taglio al volo lineare con ottimizzazione della produttività macchina |
DC30FlyCut | Calcoli per taglio al volo lineare con spazio Slave fisso |
DW22WrCam | Scrittura su settori camma (40 settori) (CAMMING2,CAMMING3,CAMMING4) |
DW31WrCam | Scrittura su settori camma (128 settori) (CAMMING3,CAMMING4) |
DW10ChLenght | Scrittura su settori camma per cambio lunghezza taglio al volo lineare (CAM01) |
DW22ChLenght | Scrittura su settori camma per cambio lungh. taglio al volo lineare (CAMMING, CAMMING2, CAMMING3) |
DC10DoubFlyC | Calcolo per prelievo di un pezzo campione durante l'esecuzione di un taglio al volo lineare. |
DC10DinHFlyC | Calcolo per modifica lunghezza al volo del pezzo da tagliare durante l'esecuzione di un taglio al volo lineare (tipicamente taglio difetto su materiale) |
FUNZIONI PER SPANDIFILO (GUIDA-FILO)
DC10Winding | Calcolo per la costruzione della camma per la gestione di uno spandifilo |
FUNZIONI PER TAGLIO AL VOLO CIRCOLARE
DC12RotCut | Gestione di un taglio al volo circolare con cilindro di taglio mono o multilama (da1 a 6 lame) |
DC22RotCut | Gestione di un taglio al volo circolare con cilindro di taglio mono o multilama (da1 a 6 lame) con fermata ad Home dello Slave e Comando taglio manuale dissincronizzato |
FUNZIONI DI SISTEMA
SY10InitializeCriticalSection | Gestione inizializzazione sezione critica |
SY10EnterCriticalSection | Gestione entrata in sezione critica |
SY10LeaveCriticalSection | Gestione uscita da sezione critica |