5 Categories and Use of Basic Application Instructions API 224~ 230 Operands: S 1 : Source device 1 S 2 : Source device 2 Explanations: 1. 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. 2. ※ : =, >, , ≦ , ≧ 3. LD ※ ( ※ : =, >, , ≤, ≥) instruction is used for direct connection with left hand bus bar 4. When 32-bit counters (C200 ~ C255) are used in this instruction, make sure to adopt 32-bit instruction (DLD ※ ).
If 16-bit instruction (LD ※ ) is adopted, a “program error” will occur and the ERROR indicator on the panel of DVP-PM 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 and latched. 3. When the content in C200 Y10 X1 M50 M3 DVP-PM Application Manual 5-129 Mnemonic Operands Function Controllers 20PM 10PM D LD※ Contact Type Comparison Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D V Z LD※: 5 steps DLD※: 7 steps S 1 * * * * * * * * * * * D S 2 * * * * * * * * * * * 16 -bit 32 -bit Continuity Discontinuity API No.
instruction 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 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 Y11 DLD> K678493 C200