AH500 Motion Control Module Manual S 1 : Source device 1; S 2 : Source device 2 The instructions are used to compare the value in S 1 with that in S 2 . Take the instruction OR= for instance. If the comparison result is that the value in S 1 is equal to that in S 2 , the condition of the instruction is met. If the comparison result is that the value in S 1 is not equal to that in S 2 , the condition of the instruction is not met. Explanation The instruction OR ※ is connected to a contact in parallel. If a 32-bit counter is used, the 32-bit insturciton DOR ※ must be used.
If a 32-bit counter and the 16-bit instruction OR ※ are used, ,a program error will occur, and the ERROR LED indicator on the motion control module will blink. (C200~C255 are 32-bit counters.) When X0.1 is ON, or when the present value in C10 is equal to K200, Example Y0.0 is ON. When X0.2 and M30 are ON, or when the value in (D101, D100) is greater than or equal to K100,000, M60 is ON.
X0.1 Y0.0 X0.2 M30 M60 5-114 API Instruction code Operand Function 240~246 D OR※ S , S 1 2 Comparing values Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z S 1 S 2 Pulse instruction 16-bit instruction (5 steps) 32-bit instruction (7 steps) – 16-bit instruction 32-bit API No. ON OFF instruction 240 OR= DOR= S =S 1 2 S ≠S 1 2 241 OR> DOR> S >S 1 2 S ≦S 1 2 242 OR< DOR< S <S 1 2 S ≧S 1 2 244 OR<> DOR<> S ≠S 1 2 S =S 1 2 245 OR<= DOR<= S ≦S 1 2 S >S 1 2 246 OR>= DOR>= S ≧S 1 2 S <S 1 2 OR= K200 C10 DOR> = D100 K100000