Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:dw22wrcam [2017/03/24 15:53] – created qem103 | en:software:qview:qview_6:qcl_library:dw22wrcam [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== DW22WrCam ====== | ||
+ | |||
+ | **D = **// | ||
+ | |||
+ | **W = **//Writing functions// | ||
+ | |||
+ | *** = **// | ||
+ | |||
+ | The DW22WrCam 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 end time they serve to identify the field where you want to start writing and the area where you want to stop. Function writes 40 sectors cam. | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **DW22WrCam (cmCamma, aslParam, CodeG, CodeM, CodeQm, CodeQs, CodeQma, CodeQsa, Error)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | CAMMING2\\ 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 any errors the error variable takes certain values, the meaning of these values is described below:\\ | ||
+ | 0 - No error\\ | ||
+ | 1 - Indices of the start and/or end writing drivers | ||
+ | |||
+ | === 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 | ||
+ | DW22WrCam (cmCamma, aslParam, CodeG, CodeM, CodeQm, CodeQs, CodeQma, CodeQsa, Error) | ||
+ | IF sbErrore | ||
+ | JUMP FINE | ||
+ | ENDIF | ||
+ | ENDIF | ||
+ | </ | ||