Chapter 6 Applied Instructions Symbol S 1 : High-speed counter number S 2 : Setting for the number for work stations S 3 : First corresponding device for the and objects comparison result in the stack area D : First corresponding device for the 6_ output work station Explanation 1. This instruction is only available for AS Series PLCs with firmware version 1.04.00 or higher. 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–32 for PLC with FW V1.04.00 (V1.04.00 included) or previous versions. And the range for n and m is between 1–64 for PLC with FW V1.06.00 (V1.06.00 included) or higher versions. 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. 6-223 API Instruction code Operand Function 0710 YOUT S ,S ,S ,D 1 2 3 Comparing the outputs of multiple work stations Device X Y M S T C HC D FR SM SR E K 16# “$” F S 1 S 2 S 3 D BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S 1 S 2 S 3 D Pulse instruction 16-Bit instruction 32-Bit instruction - AS -