QCL Libraries

Rules of using a function

FUNCTIONS FOR OPERATIONS ON DIGITAL INPUTS

IR10EdgeInpRising edge and descent detection of an input or a flag
IR10EdgeRising edge detection of a digital signal with verification time
IR10EdgTmInpRising edge and descent detection of an input o a flag with time reset capture flags fronts
VC10ChronVarMeasurement timing of activation of an input or variable

FUNCTIONS FOR OPERATIONS ON DIGITAL OUTPUTS

OA10BlinkOutBlink management of an output or a flag
OA10SetTmOutActivation management of an output for a settable time
OT11PidRegDigital output modulation to check a temperature control process through P.I.D. system
OT21PidRegModulation of two digital outputs for a generic process control through PID + FF adjustment
OT30PidRegGeneric 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

DT11BreakEncEncoder breakage control ANALOG axes
DT21BreakEncEncoder breakage control ON/OFF axes

GENERAL FUNCTIONS FOR POSITIONERS

DA11RampGeneric ramp generator
DA10AnOoposAnalog output management for ON/OFF axis with ramps

CIRCULAR BUFFER MANAGEMENT FUNCTIONS

BC10InitBufInit of a circular buffer (with internal buffer management variables to the array)
BC10PushBufInserting of a value (push) in a circular buffer (with internal buffer management variables to the array)
BC10PopBufExtracting of a value (pop) from a circular buffer (with internal buffer management variables to the array)
BC21InitBufInit of a buffer FIFO type (circular)
BC21PushBufInserting of a value (push) in a buffer FIFO type
BC21PopBufExtracting of a value (pop) from a buffer FIFO type
BC21InspectAcquisition of a value into the buffer
BC21ElementsAcquisition 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)

FUNCTIONS FOR MODBUS PROTOCOL

DW13ModbusModbus SLAVE protocol: managing data exchange with MODBUS devices
DW11SerModMaModbus MASTER simulated protocol through SERCOM device
DW14SerModSlModbus SLAVE simulated protocol through SERCOM device
DU10MbRetryImplementation of the SEND command of MODBUS devices with check and manage any programmed attempts

FUNCTIONS FOR VECTOR IMAGE (QPAINT)

VI10InitBufferBuffer Initialize
VI10BeginDrawBufferPrepares the Buffer to add the drawing operations and returns the previous error code
VI10DrawBufferDraws the contents of the Buffer
VI10WaitBufferReadyUsingENDWaits for the buffer is ready for new operations coming out of the special task with END
VI10WaitBufferReadyUsingWAIT
VI11WaitBufferReadyUsingWAIT
Waits for the buffer is ready for new operations coming out of the special task with WAIT
VI10GetErrorCodeReturns the current error code
VI10ClrErrorCodeClears the current error code
VI10GetUnusedBufferSizeRetrieves the Buffer size used
VI10AddNopAdds to the NOP command at the Buffer (no operation)
VI10AddClsAdds to the CLS command at the Buffer (clear the Vector Image area)
VI10SetLayerAdds to the SET_LAYER command at the Buffer (sets the active layer)
VI10AddPenAdds to the PEN command at the Buffer (sets the color drawing)
VI10AddSetAdds to the SET command at the Buffer (sets the current coordinates)
VI10AddPointAdds to the POINT command at the Buffer (draws a point)
VI10AddLineAdds to the LINE command at the Buffer (draws a line)
VI10AddRectAdds to the RECT command at the Buffer (draw a rectangle)
VI10AddCircleAdds to the CIRCLE command at the Buffer (draw a circle)
VI10AddArc1Adds to the ARC1 command at the Buffer (draws an arc of type 1)
VI10AddArc2Adds to the ARC2 command at the Buffer (draws an arc of type 2)
VI10AddArc3Adds to the ARC3 command at the Buffer (draws an arc of type 3)
VI10AddArcBetweenAnglesAdded at the buffer the command for the draw of an arc from one corner A to corner B
VI10SetBackgroundAdds to the background command at the Buffer (sets the background color)
VI10AddMoveAreaAdds to the MOVEAREA command at the Buffer (move the contents of the Vector Image)
VI10UnsetLayerAdds to the UNSET_LAYER command at the Buffer (disable the layer indicated)
VI10LoadImageAdds to the LOAD_IMAGE command at the Buffer (load the image attached to an Image object)
VI10GetDimensionAdds to the GET_DIMENSION command at the Buffer (reads the VectorImage object size)
VI10ExtractDimensionExtracts the dimensions of the VectorImage from the Buffer after the execution of the command VI10GetDimension

FUNCTIONS FOR MANAGING THERMOCOUPLES

IR10CJReadCold-junction reading
IR10HJReadWarm-junction reading
VC10TCoupleBTemperature calculation for thermocouple type B
VC10TCoupleJTemperature calculation for thermocouple type J
VC10TCoupleKTemperature calculation for thermocouple type K
VC10TCoupleNTemperature calculation for thermocouple type N
VC10TCoupleTTemperature calculation for thermocouple type T
IR11PTCReadReading the PT100 resistance from the 3 points board
IR20PTCReadReading the PT100 resistance from the 3 points board with the differential reading mode
VC10PTC100Calculation of temperature for PT100

FUNCTIONS FOR MANAGING PROGRAMMABLE OUTPUTS

OP10InitProgrammable outputs, initializing
OP10isOutOnProgrammable outputs, tests whether active output status
OP10isParOkProgrammable outputs, check correct value
OP10ManageProgrammable outputs, data processing
OP10ResOutProgrammable outputs, reset output status
OP10ResRetProgrammable outputs, Reset output restraint
OP10SetOutProgrammable outputs, set output status

FUNCTIONS FOR CALCULATING CHECKSUM

VC10Cr32InitCalculation CRC, initialization
VC10Cr32BegCalculation CRC, Beginning of the calculation
VC10Cr32CalcCalculation CRC, Conclusion of the calculation
VC10Cr32UdtCalculation CRC, Update calculation

FUNCTIONS FOR SYNCROMOVE

GENERAL FUNCTIONS FOR WORKING WITH CAMMING

DW22WrCamWriting to sectors cam (40 sectors) (CAMMING2,CAMMING3,CAMMING4)
DW31WrCamWriting to sectors cam (128 sectors) (CAMMING3,CAMMING4)
DC11SpaceCamCalculations for research space master set with minimum slave space
DC10VelCamCalculations for construction of the sectors of acceleration, constant speed and deceleration of a electronic cam, setting the Master and Slave and their speed

GEARING FUNCTIONS

DC10ElGearCalculations for managing the Master/Slave gearing
DC10ChGearExchange sync ratio calculations “on the fly” in a Master/Slave gearing (without ramps)
DC10ChVelRatCalculation to set and/or change the Slave/Master speed ratio of a gearing dynamically with flights of softening when changing speed

FUNCTIONS FOR FLY CUT

DC21FlyCutCalculations for linear fly cut with machine productivity optimization
DC30FlyCutCalculations for linear fly cut with fixed Slave space
DW22WrCamWriting to sectors cam (40 sectors) (CAMMING2,CAMMING3,CAMMING4)
DW31WrCamWriting to sectors cam (128 sectors) (CAMMING3,CAMMING4)
DW10ChLenghtWriting to sectors cam to change the linear length fly cut (CAM01)
DW22ChLenghtWriting to sectors cam to change the linear length fly cut (CAMMING, CAMMING2, CAMMING3)
DC10DoubFlyCCalculation for taking a sample piece during the fly cut execution
DC10DinHFlyCCalculation for length change on the fly of the workpiece during the linear fly cut execution (typically cut defect on material)

FUNCTIONS FOR WIRE-GUIDES

DC10WindingCalculation for the cam building for the wire-guides management

FUNCTIONS FOR CIRCULAR FLY CUT

DC12RotCutManaging of a circular fly cut with single or multi-blade cutting cylinder (from 1 to 6 blades)
DC22RotCutManaging of a circular fly cut with single or multi-blade cutting cylinder (from 1 to 6 blades) stopping to Home of the Slave and manual cutting no-synchronized command

SYSTEM FUNCTIONS

SY10InitializeCriticalSectionManaging critical section initialization
SY10EnterCriticalSectionEntering critical section management
SY10LeaveCriticalSectionExit critical section management
  • Last modified: 2019/08/29 17:01