Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:dc11spacecam [2017/03/24 17:18] – created qem103 | en:software:qview:qview_6:qcl_library:dc11spacecam [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== DC11SpaceCam ====== | ||
+ | |||
+ | **D = **// | ||
+ | |||
+ | **C = **// | ||
+ | |||
+ | *** = **// | ||
+ | |||
+ | The purpose of the DC10SpaceCam function is to __calculate the minimum space Master can to run a space slave__ with a device type electronic cam. In addition to the calculation of space and to supply output variable, the function calculates the codes and spaces for programming a cam with an area of acceleration, | ||
+ | The following graph shows how divided space Slave to cover: | ||
+ | |||
+ | {{.: | ||
+ | |||
+ | In the event that the maximum speed cannot be reached because the slave space is insufficient, | ||
+ | |||
+ | {{.: | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **DC10SpaceCam (aslParam, | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | 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 | ||
+ | | OUT | SYSTEM | ||
+ | |||
+ | ==== Error ==== | ||
+ | |||
+ | Once called the function the variable takes certain values, the meaning of these values is summarized below:\\ | ||
+ | 0: calculation execute without errors\\ | ||
+ | 1: Slave max speed less than or equal to 0\\ | ||
+ | 2: Master speed less than or equal to 0\\ | ||
+ | 3: Slave Space equal to 0 | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | <code QCL> | ||
+ | MAIN: | ||
+ | IF gfCalcSpazio | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | IF NOT Error | ||
+ | | ||
+ | | ||
+ | | ||
+ | ENDIF | ||
+ | ENDIF | ||
+ | </ | ||
+ | |||
+ | === Operation notes === | ||
+ | |||
+ | *The constant speed of the Slave is the speed that the Slave has the time to take the space set. This speed can be set to zero or less than zero. | ||
+ | *Space Slave to set can also be negative, in this case, the calculation will be executed in order to turn back the Slave to the space set | ||
+ | *The number of sectors used is always 3 | ||
+ | *In case the space to make the Slave is less than what the Slave would do at a constant speed, the resulting velocity profile is represented in the chart below (the same is true for negative speed). | ||
+ | |||
+ | {{.: | ||
+ | |||
+ | N.B.:In the graph represented the speed could become negative (and then push back the Slave) if the case the Slave space set is less accomplished for the acceleration and deceleration ramps. | ||