DVP-ES3 Series Programming Manual Symbol 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 _6 D : First corresponding device for the output work station Explanation 1. The instruction cannot be used in the ST programming language, interrupt tasks or function block which is called only once. 2. 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 instruction. 3. 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–64. 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. 4. 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 0709).
It is suggested that you use the same variable as you use for the XCMP instruction. 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-222 API Instruction code Operand Function 0710 YOUT S1,S2,S3,D Comparing the outputs of multiple work stations Device X Y M S T C HC D FR SM SR E K 16# “$” F S1 S2 S3 D BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1 S2 S3 D Pulse instruction 16-Bit instruction 32-Bit instruction - ES3 -