Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:dw31wrcam [2017/03/24 16:14] – created qem103 | en:software:qview:qview_6:qcl_library:dw31wrcam [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== DW31WrCam ====== | ||
+ | |||
+ | **D = **// | ||
+ | |||
+ | **W = **//Writing functions// | ||
+ | |||
+ | *** = **// | ||
+ | |||
+ | The DW31WrCam function __is used to write the fields to build an electronic cam__. The function you will need to pass as parameters a pointer to start and one of the end which serve to identify the sector where you want to start writing and the area where you want to stop. La funzione scrive 128 settori della camma. | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **DW31WrCam (cmCamma, aslParam, CodeG, CodeM, CodeQm, CodeQs, CodeQma, CodeQsa, Error)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | CAMMING3\\ CAMMING4 | ||
+ | | IN | ARRSYS | ||
+ | | IN | SYSTEM | ||
+ | | IN | SYSTEM | ||
+ | | IN | SYSTEM | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | OUT | SYSTEM | ||
+ | |||
+ | ==== Use mode ==== | ||
+ | |||
+ | The " | ||
+ | If the " | ||
+ | |||
+ | ==== Error ==== | ||
+ | |||
+ | Once invoked the function if there are errors the error variable assumes certain values, the meaning of these values is described below:\\ | ||
+ | 0 - No errors\\ | ||
+ | 1 - Indices of the start and/or end wrong writing | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | <code QCL> | ||
+ | MAIN: | ||
+ | |||
+ | IF gfScrittCam | ||
+ | gfScrittCam = 0 | ||
+ | aslParam[1] = 1 ;He started writing from 1° sector of the cam | ||
+ | aslParam[4] = 10 ;Start reading from 10th element of the array | ||
+ | DW31WrCam (cmCamma, aslParam, CodeG, CodeM, CodeQm, CodeQs, CodeQma, CodeQsa, Error) | ||
+ | IF sbErrore | ||
+ | JUMP FINE | ||
+ | ENDIF | ||
+ | ENDIF | ||
+ | </ | ||