Delta Electronics — 6.8.2 Explanation of Miscellaneous Instructions

AS Series Programming Manual 5. There is no limit on the number of times you can execute the instruction but only one execution can be done at a time. 6. It is suggested that you use with the XCMP instruction, and use the same first corresponding device for the comparison result in the stack area ( S 3 ). 7. D is only for the outputs of Y and M devices; Y and M should be the BOOL data type. It occupies a consecutive number of work stations Xn. When used as the output point of Y or the M device, the instruction refreshes the output states. 8.

The odd numbered head index values (for example 1, 3, 5,…) are the compared counter results for the object when entering (Compared stack areas for the entering -work-station ones). The even numbered head index values (for example 2, 4, 6,…) are the compared counter result of the object when leaving (Compared stack areas for the entering -work-station ones). 9. When the compared counter result for entering and leaving in the stack area are 0, the actions in this area are not executed and the state of the corresponding output work station is OFF. Add 2 to the value of the tail index and the added value in the tail index should not exceed the value of the head index. 10.

When the YOUT instruction is executed, each work station checks the compared value for entering and leaving in the tail index. When the counter value is larger or the same as the compared value for entering, the corresponding output point is ON and adds 1 to the value of the tail index. When the counter value is larger or the same as the compared value for leaving, the corresponding output is OFF and adds 1 to the value of the tail index; but the value of the tail index (after adding 1) does not exceed the value of the head index. _6 Example: three work stations and up to four objects Work station 1 Object detection Work station 2 Work station 3 Object Encoder Step 1:

use the input point X0.4 as the object detection interrupt, HC202 as the high-speed counter for the encoder and output point Y0.0 as the first output point for the work station. 6-224