10 Application Instructions API 202-313 API 224~ 230 Operands: S 1 : Data source device 1 S 2 : Data source device 2 Explanations: 1. See the specifications of each model for the range of operands. 2. This instruction compares the content in S 1 and S 2 . Take API224 (LD=) for example, if the result is “=”, the continuity of the instruction is enabled. If the result is “≠”, the continuity of the instruction is disabled. 3. LD ※ instruction is used for direct connection with BUS. 4. When 32-bit counters (C200 ~ C255) are used in this instruction for comparison, make sure to adopt 32-bit instruction (DLD ※ ).
If 16-bit instructions (LD ※ ) is adopted, a “program error” will occur and the ERROR indicator on the MPU panel will flash. Program Example: 1. When the content in C10 = K200, Y10 = On. 2. When the content in D200 > K-30 and X1 = On, Y11= On will be retained. 3. When the content in C200 Y10 X1 M50 M3 DVP-PLC Application Manual 10-18 Mnemonic Operands Function D LD※ Load Compare Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F LD※: 5 steps DLD※:
9 steps S 1 * * * * * * * * * * * S 2 * * * * * * * * * * * PULSE 16-bit 32-bit ES EX SS SA SX SC EH SV EH3 SV2 EH3 EH3 ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV SV2 SV2 16 -bit instruction 32 -bit Continuity No-continuity API No. instruction condition condition 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 ≥ 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 LD= K200 C10 LD> D200 K-30 SET Y11 DLD> K678493 C200