Mitsubishi — 5.6 Application Instructions

5 Categories and Use of Basic Application Instructions API 240~ 246 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 API240 (OR =) 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. OR ※ ( ※ : &, |, ^) instruction is used for parallel connection with contacts. 4. When 32-bit counters (C200 ~ C254) are used in this instruction, make sure to adopt 32-bit instruction (DOR ※ ).

If 16-bit instruction (OR ※ ) is adopted, a “program error” will occur and the ERROR indicator on the panel of DVP-PM will flash. Program Example: 1. When X1 = ON and the present value in C10 = K200, Y0 = ON. 2. M60 will be ON either when both X2 and M30 are “ON”, or when the content in 32-bit register D100 (D101) ≥ K100,000. X1 Y0 X2 M30 M60 DVP-PM Application Manual 5-131 Mnemonic Operands Function Controllers 20PM 10PM D OR※ Parallel 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 OR※: 5 steps DOR※: 7 steps S 1 * * * * * * * * * * * D S 2 * * * * * * * * * * * 16-bit 32-bit Continuity Discontinuity API No.

instruction instruction condition condition 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