Mitsubishi — 5.6 Descriptions of the Applied Instructions

AH500 Motion Control Module Manual Explanation  S 1 : Source device 1; S 2 : Source device 2  The instruction is used to compare the value in S 1 with that in S 2 . Take the instruction LD= 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.  The instruction LD ※ can be connected to a busbar directly.  If a 32-bit counter is used, the 32-bit insturciton DLD ※ must be used.

If a 32-bit counter and the 16-bit instruction LD ※ 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.) Example  When the value in C10 is equal to K200, Y1.0 is ON.  When the value in D200 is greater than K-30, and X0.1 is ON, Y1.1 is set to ON.  When the value in C200 is less than K678,493, or when M3 is ON, M50 is ON.

Y1.0 X0.1 M50 M3 5-112 API Instruction code Operand Function 224~230 D LD※ 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 32-bit API No. ON OFF instruction instruction 224 LD= DLD= S =S 1 2 S ≠S 1 2 225 LD> DLD> S >S 1 2 S ≦S 1 2 226 LD< DLD< S <S 1 2 S ≧S 1 2 228 LD<> DLD<> S ≠S 1 2 S =S 1 2 229 LD<= DLD<= S ≦S 1 2 S >S 1 2 230 LD>= DLD>= S ≧S 1 2 S <S 1 2 LD= K200 C10 LD> D200 K-30 SET Y1.1 DLD> K67849 3 C200