Delta Electronics — 6.8.2 Explanation of Miscellaneous Instructions

AS Series Programming Manual 8. D is the first corresponding device for the comparison result in the stack area. D occupies 2xn consecutive 16-bit devices and 2xmxn consecutive 32-bit devices (or 4xmxn consecutive 16-bit devices). If the required space exceeds the range of device D, the instruction is not executed. The following table lists the functions for each device and the corresponding number for D . D tends to occupy more space in the stack area. If the required space exceeds the range of device D , the PLC only executes what is valid in the storage and does not show a no warning. It is suggested that you declare an array of _6 2xn+4xmxn words for D . 9.

There is no limit on the number of times you can execute the instruction but only one execution can be done at a time. 10. It is suggested to use this instruction with the YOUT instruction (API 0710), and use the same first corresponding device for the comparison result in the stack area ( D ). 11. For PLC with FW V1.04.00 (V1.04.00 included) or previous versions: The following timing diagram shows executing the high-speed counter and filter (reading from right to left). 3 1 1 2 4 5 1 1 4 5 1 ① PLC reads the current counter value and stores the value in a register. ② Drop the shifting counter value: when the signal is unstable (the number of filters is not sufficient).

6-220 Function Work station 1 Work station 2 ‧‧‧ Work station n Value of the head index (16-bit) D+0 D+1 ‧‧‧ D+(n-1) Value of the tail index (16-bit) D+n D+(n+1) ‧‧‧ D+(2xn-1) Compared stack area 1 for the entering -work-station ones (32-bit) D+2xn D+2xn+2 ‧‧‧ D+2xn+2(n-1) Compared stack area 1 for the leaving-work-station ones (32-bit) D+4xn D+4xn+2 ‧‧‧ D+4xn+2(n-1) : : : : : Compared stack area m for the entering -work-station ones (32-bit) D+4xmxn-2xn ‧‧‧ D+4xmxn-2 Compared stack area m for the leaving-work-station ones (32-bit) D+4xmxn ‧‧‧ D+4xmxn+2 (n-1)