DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming 316 Operands: S 1 : High-speed counter number S 2 : Setting for the number for work stations and objects S 3 : First corresponding device for the comparison result in the stack area D : First corresponding device for the output work station Explanation 1. S 1 is for the setting of the high-speed counter. Use the same settings for the high-speed counter as for the high-speed counter for the XCMP (API 315) instruction. 2. S 2 occupies two consecutive 16-bit devices. S 2 +0 is n (the work station number) and S 2 +1 is m (the maximum number of objects). The range for n and m is between 1–32.
When the value is out of range, the value used is the maximum (32) or the minimum (1). The settings for the operands should be the same as for the XCMP instruction. 3. S 3 is first corresponding device for the comparison result in the stack area. S 3 occupies 2xn consecutive 16-bit devices and 2xmxn consecutive 32-bit devices (or 4xmxn consecutive 16-bit devices). For information on the functions of each device and the corresponding number for D , refer to the XCMP instruction (API 315). It is suggested that you use the same variable as you use for the XCMP instruction. 4. There is no limit on the number of times you can execute the instruction but only one execution can be done at a time.
5. It is suggested that you use with the XCMP instruction (API 315), and use the same first corresponding device for the comparison result in the stack area ( S 3 ). 3-534 Mnemonic Operands Function Controllers ES2/EX2 SS2 SE SA2/SX2 YOUT S , S S D 1 2, 3, Comparing the outputs of multiple work stations Controllers ES2/EX2 SS2 SE SA2/SX2 Type OP Bit Devices Word devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F YOUT: 9 steps S 1 * * S 2 * S 3 * D * * PULSE 16-bit 32-bit ES2/ EX2 SS2 SA2/ SE SX2 ES2/ EX2 SS2 SA2/ ES2/ SA2/ SX2 SS2 SX2 SE EX2 SE