Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:dc10dinhflyc [2017/03/30 17:55] – created qem103 | en:software:qview:qview_6:qcl_library:dc10dinhflyc [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== DC10DinHFlyC ====== | ||
+ | |||
+ | **D = **//Device (camming3, camming4)// | ||
+ | |||
+ | **C = **// | ||
+ | |||
+ | The DC10DinHFlyC function __execute the calculations needed to change on the fly the running length piece without necessarily having the space to be able to return to the Home position__.\\ | ||
+ | In particular, during a normal fixed-length flying cut, the function performs a piece of length equal to the convey value and then automatically return to the previous piece length (if that was not called for a another cut). | ||
+ | |||
+ | The function you need to pass the values of: Length of workpiece to cut, acceletarion Time, deceleration Time, maximum speed of returning Slave (expressed as a percentage of absolute maximum), Ramps type (trapezoidal or epicicloidal) and the maximum space allowed for carriage stroke. Function writes the sectors directly on CAMMING3 (or 4) devices. | ||
+ | |||
+ | It is important that the function is " | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **DC10DinHFlyC (cmCam, | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | CAMMING3\\ CAMMING4 | ||
+ | | IN | SYSTEM | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | IN | ARRSYS | ||
+ | | OUT | ARRSYS | ||
+ | | OUT | SYSTEM | ||
+ | |||
+ | ==== Warning ==== | ||
+ | |||
+ | 0:no warning\\ | ||
+ | 1:Cutting is not allowed | ||
+ | |||
+ | ==== Error ==== | ||
+ | |||
+ | After calling the function, the error variable can take on certain values, the meaning of these values is summarized below:\\ | ||
+ | 0: calculation execute without errors\\ | ||
+ | 1: Maximum Slave speed = 0\\ | ||
+ | 2: Piece length = 0\\ | ||
+ | 3: Acceleration Time = 0\\ | ||
+ | 4: Deceleration Time = 0\\ | ||
+ | 5: Incorrect resolution | ||
+ | |||
+ | === Note === | ||
+ | |||
+ | *This function should be called each time the application logic. It is necessary, insert it into a task that executes every round logical (that it not containswait events inside). | ||
+ | *The function can only be used if for the construction of flying saw you used the __DC20FlyCut__ or the __DC30FlyCut__ functions. | ||
+ | *To start a different length cut you must set the value 1 to the " | ||
+ | *The time required to perform calculations of the cam it goes 10msec to 20 msec circa, It varies based on the logical Cpu time. | ||
+ | |||
+ | === Example of use === | ||
+ | |||
+ | <code QCL> | ||
+ | ... | ||
+ | |||
+ | IF gfRilDifetto ; | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | ENDIF | ||
+ | |||
+ | DC10DinHFlyC (cmCam, | ||
+ | IF sbWarning | ||
+ | | ||
+ | | ||
+ | ENDIF | ||
+ | |||
+ | ... | ||
+ | </ | ||