AH Motion Controller – Motion Control Instructions Manual 2. In below diagram, the 1 st Capture occurred out of the mask range (-500~500), so the captured value will change from 0 (initial value) to 1500. 3. When the captured value changes to 1500, 1500 will become the reference center of the mask range, therefore the capture occurred within 1000~2000 will be invalid. When the 2 nd Capture is triggered, the captured value will remain 1500. 4. When the 3 rd Capture is triggered out of the mask range between 1000 and 2000, the captured value will be updated as 4000.
MaskValue =500 Enable 1 st 2 nd 3 rd Trigger CapFlag _3 Position 0 3000 4000 5000 6000 -2000 -1000 CapValue= 1500 CapValue= 1500 CapValue= 4000 DeltaMin, DeltaMax, CapLenBeyondFlag, CapLenBeyondCount 1. DeltaMin/DeltaMax defines the minimum/maximum difference between each Capture. 2. The function of DeltaMin/DeltaMax is to judge if a trigger mark is missed and the Capture is not executed. For example, if the value of DeltaMin is 1000 and DeltaMax is 1300, when the detected distance between 2 Capture exceeds 1000~1300, the system will flag this situation as trigger mark missing. 3.
When a mark missing condition occurs, CapLenBeyondFlag shifts to Ture for one scan cycle and will be reset immediately. At the same time CapLenBeyondCount counts 1. 4. Refer to the below diagram for the explanation of these inputs and outputs: a. InitialValue =0, so the mask range is between -500~500. The 1 st Capture occurs at 900 which is bigger than the mask range, so the captured value is 900. b. The 2 nd Capture occurs at 2500. Because DeltaMax is set to 1300 and DeltaMin is set to 1100 (1100-1300), a trigger mark missing condition is flagged for a scan cycle. c. The 3 rd Capture occurs at 3700.
Because the difference between 3700 and the previous captured value 2500 is 1200, which is within the range of 1100~1300 (DeltaMin/DeltaMax) , also 3700 is out of the mask range 2000~3000, the captured value changes to 3700 in this case, and CapLenBeyondFlag will not change to True. 3-300 500 500 500 500 2