Delta DVP-ES3 — 6.8.2 Explanation of Miscellaneous Instructions

Chapter 6 Applied Instructions 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. Example: three work stations and up to four objects 6_ Work station 1 Object detection Work station 2 Work station 3 Object Encoder output point Y0 as the first output point for the work station. Step 1:

use the input point X4 as the object detection interrupt, HC202 as the high-speed counter for the encoder and Step 2: edit the register to set up the reference values, and the observational error when entering and leaving. 6-223 Device D D500 D502 D504 Reference value for comparison (32-bit) K2000 K3000 K4000 Device D D506 D508 D510 Observational error when entering (32-bit) K100 K120 K130