Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:dc10chgear [2017/03/28 15:14] – created qem103 | en:software:qview:qview_6:qcl_library:dc10chgear [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== DC10ChGear ====== | ||
+ | |||
+ | **D = **// | ||
+ | |||
+ | **C = **// | ||
+ | |||
+ | The DC10ChGear function __allows you to change "on the fly" the synchronism of a gearing ratio Master-Slave, | ||
+ | The gearing is a system that links a Slave axis an Master axis by a ratio of timing adjustable.\\ | ||
+ | Below is a chart showing the progress of the Slave with respect to Master. The point described as " | ||
+ | |||
+ | {{.: | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **DC10ChGear (cmSlave, aslParam, | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | CAMMING2 / CAMMING3 | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | OUT | GLOBAL | ||
+ | | OUT | SYSTEM | ||
+ | |||
+ | ==== Error ==== | ||
+ | |||
+ | Once the error variable function assumes certain values, the meaning of these values is summarized below:\\ | ||
+ | 0: calculation executed without errors\\ | ||
+ | 1: Sync ratio equal to 0\\ | ||
+ | 2: Master speed less than or equal to 0\\ | ||
+ | 3: Slave max speed less than or equal to 0\\ | ||
+ | 4: " | ||
+ | 5: Calculated Slave speed greater than the maximum Slave speed | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | <code QCL> | ||
+ | MAIN: | ||
+ | IF gfChGear | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | 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 change takes place without any ramp as shown in the chart above | ||
+ | *The number of sectors used is 8 | ||
+ | *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. | ||