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:software:qview:qview_6:qcl_library:dc10doubflyc [2017/03/30 17:14] – [Errore] qem103en:software:qview:qview_6:qcl_library:dc10doubflyc [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== DC10DoubleFlyC ======
 +
 +**D = **//Device(camming2,camming3, camming4)//
 +
 +**C = **//Calculation functions//
 +
 +The DC10DoubleFlyC function executes the calculations and dynamically updates the cam sectors, for execute a __//second cut during the flying cut (pickup cut sample piece)//__. The parameters to pass to the function are: the length of the "sample" piece and the space of the carriage (slave) after the first cut, within which you want to conclude the second cut.\\
 +The function can only be used after you have used the DC1xFlyCut or DC2xFlyCut function for the construction of the cam provider manage the flying cut.\\
 +If the cut is not physically possible with the set parameters, the function returns the "Error" parameter the type of error occurred.
 +
 +===== IMPLEMENTATION =====
 +
 +**DC10DoubFlyC(Cam, Param, SpazioSMin, Error)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  IN  |  CAMMING2 CAMMING3 CAMMING4  |  Cam  |    |Device name used|
 +|  IN  |  ARRSYS  |  Param[1]  |  L  |Workpiece sample length (UM)|
 +|  IN  |  ARRSYS  |  Param[2]  |  L  |Slave Space (of carriage) after the 1° cut to execute the 2° cut (UM)|
 +|  OUT  |  SYSTEM  |  SpazioSMin  |  L  |Minimum space required to execute the 2° cut (UM)|
 +|  OUT  |  SYSTEM  |  Error  |  B  |Cam error's variable|
 +
 +{{.:dc10doubflyc:dc10doubflyc.png?nolink650|}}
 +
 +==== Error ====
 +
 +After calling the function, if there are any errors the error variable assumes certain values, the meaning of these values is summarized below:\\
 +0: No errors\\
 +1: "Maxvel" parameter of thee device equal to 0\\
 +2: "Workpiece length sample" parameter equal to 0\\
 +3: "Slave Space 2° cut" parameter equalo to 0\\
 +4: Incorrect device resolution\\
 +5: Space needed to cut higher than set (minimum space needed reported on "SpazioSMin")
 +
 +=== Example of use ===
 +
 +An example of using the function is as follows:
 +<code QCL>
 +...
 +
 +Param[1] = 2000 ;Workpiece sample length (UM)
 +Param[2] = 10000 ;Space for 2° cut (UM)
 +
 +DC10DoubFlyC(Cam, Param, SpazioSMin, Error)
 +
 +...
 +</code>
 +
 +=== Operation notes ===
 +
 +  This function should only be used if the cam was created with the dc1xFlyCut or dc2xFlyCut functions.
 +  *The second cut is made in a manner similar to the first, referring to all the settling time or extra-speed set on the first.
 +  *The function locks the task in which it is submitted until you have completed the second cut, You should therefore not be included in a task to be executed at every logical turn. You may want to create a new specific task.