Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:dw10chlenght [2017/03/28 17:49] – created qem103 | en:software:qview:qview_6:qcl_library:dw10chlenght [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== DW10ChLength ====== | ||
+ | |||
+ | **D = **// | ||
+ | |||
+ | **W = **//Writing functions// | ||
+ | |||
+ | The DW10ChLength function is linked with the DC20FlyCut or DC30FlyCut functions and is used in applications of flying cut. It serves to __execute the change of length of workpiece__.\\ | ||
+ | Are required the calculated array from thee DC20FlyCut or DC30FlyCut functions It must be called before this to perform the calculation with the new length.\\ | ||
+ | The function contains the instructions to Wait inside that block the task in which it appears. It is therefore recommended that you place the function in a task that doesn' | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **DW10ChLength (CodeG, CodeM, CodeQm, CodeQs, ChExecut, Error)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | OUT | GLOBAL | ||
+ | | OUT | SYSTEM | ||
+ | |||
+ | ==== Error ==== | ||
+ | |||
+ | After calling the function, if there are any errors the error variable having the following values:\\ | ||
+ | 0 - No errors\\ | ||
+ | 1 - Error writing in the areas of cam | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | **1° Example** | ||
+ | <code QCL> | ||
+ | MAIN: | ||
+ | IF gfCambioLun | ||
+ | | ||
+ | | ||
+ | IF NOT Error | ||
+ | DW20ChLength (cmCamma, CodeG, CodeM, CodeQm, CodeQs, ChExecut, Error) | ||
+ | ENDIF | ||
+ | ENDIF | ||
+ | </ | ||
+ | |||
+ | **2° Example** | ||
+ | <code QCL> | ||
+ | MAIN: | ||
+ | IF gfCambioLun | ||
+ | | ||
+ | | ||
+ | IF NOT Error | ||
+ | | ||
+ | ENDIF | ||
+ | ENDIF | ||
+ | </ | ||
+ | |||
+ | === Note === | ||
+ | |||
+ | *The ' | ||
+ | *The function contains instructions to wait that block the task that hosts,It is recommended that you create a separate task that contains the function or put the function in a task that can be stopped. | ||