Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:dc10elgear [2017/03/28 14:58] – created qem103 | en:software:qview:qview_6:qcl_library:dc10elgear [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== DC10ElGear ====== | ||
+ | |||
+ | **D = **// | ||
+ | |||
+ | **C = **// | ||
+ | |||
+ | Lo scopo della DC10ElGear funzione is to __calculate the areas of electronic cam for managing a slave of a Gearing__.\\ | ||
+ | The gearing is a system that links a Slave axis an axis Master by a ratio of timing adjustable.\\ | ||
+ | Below is a chart showing the progress of the Slave respect to Master. The zero point on the graph represents the time when given the command to STARTCAM the Slave. The ratio set in the sample chart is 1:2 (aslParam[1] = 500)\\ | ||
+ | N.B.: The stretch marked as " | ||
+ | |||
+ | {{.: | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **DC10ElGear (aslParam, codeG, codeM, codeQm, codeQs, codeQma, codeQsa, | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | OUT | ARRSYS | ||
+ | | OUT | ARRSYS | ||
+ | | OUT | ARRSYS | ||
+ | | OUT | ARRSYS | ||
+ | | OUT | ARRSYS | ||
+ | | OUT | ARRSYS | ||
+ | | OUT | SYSTEM | ||
+ | |||
+ | ==== Error ==== | ||
+ | |||
+ | After calling the function, the error variable takes certain values, the meaning of these values is summarized below:\\ | ||
+ | 0: calculation executed without errors\\ | ||
+ | 1: Sync ratio equal to 0\\ | ||
+ | 2: Slave max speed less than or equal to 0\\ | ||
+ | 3: Master speed less than or equal to 0\\ | ||
+ | 4: " | ||
+ | 5: Calculated Slave speed greater than the maximum Slave speed | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | In our example, we want to calculate the cam shaft when the gfCalcElGear flag goes to 1. Writing on the cam is done by the DW20WrCam function. | ||
+ | |||
+ | <code QCL> | ||
+ | MAIN: | ||
+ | IF gfCalcElGear | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | IF NOT Error | ||
+ | SettIniz = 1 | ||
+ | NumSet = 4 | ||
+ | |||
+ | | ||
+ | ENDIF | ||
+ | ENDIF | ||
+ | </ | ||
+ | |||
+ | === Operation notes === | ||
+ | |||
+ | *The sync relationship (aslParam[1]) can also be set to negative, in that case the Slave follows the relationship of timing set but going in the back direction. | ||
+ | *The acceleration time set is used to decide the ramp by which the Slave, at the time of the command lock cam (STARTCAM), must engage in synchronism with the Master. If the time is set to zero the Slave makes a step to reach immediately the Master speed | ||
+ | *The sectors number used is always 4 | ||
+ | *If you want to change "on the fly" the sync relationship, | ||