Delta DVP-ES2 — 3.8 Detailed Instruction Explanation

3. Instruction Set 315 Operands: S 1 : Trigger input point S 2 : High-speed counter number S 3 : Setting for the numbers for work station and objects S 4 : Reference value for comparison and the observational error D : First corresponding device for the comparison result in the stack area Explanation 1. Use S 1 for setting the trigger input points; for ES2 series, use built-in inputs X4 and X6 for immediate trigger input points and other inputs from X0 to X17 for general trigger input points. Executing the instruction enables the external interrupts for the inputs.

Therefore it is suggested that you not use the inputs with interrupt tasks; otherwise, when the instruction is executed, the interrupts are disabled and resumed only after the instruction completes. The general type inputs are affected by the scan time though they are suitable for the environments where the inputs are not as stable. 2. S 2 works with 32-bit counters (C200–C255) and is limited to accumulated count. When the inputs are the high-speed trigger input type, it is suggested that you implement the hardware high-speed counter such as C251 or C253 and use the DCNT instruction to enable the counter.

When you need high-speed output, you can use the DMOV instruction to copy the output current position; for example copying the current output position D1030 to C200. 3. S 3 occupies seven consecutive 16-bit devices. S 3 +0 is n (the work station number) and S 3 +1 is m (the maximum object number). S 3 +2 is the result of the object being filtered. S 3 +3 (Low word) 3-529 Mnemonic Operands Function Controllers ES2/EX2 SS2 SE SA2/SX2 XCMP S , S S S D 1 2, 3, 4, Setting up to compare the inputs 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 XCMP:

11 steps S 1 * S 2 * S 3 * S 4 * D * PULSE 16-bit 32-bit ES2/ EX2 SS2 SA2/ SE SX2 ES2/ EX2 SS2 SA2/ ES2/ SA2/ SX2 SS2 SX2 SE EX2 SE