Mitsubishi — 5.6 Application Instructions

5 Categories and Use of Basic Application Instructions Operands: S : Source of data D : Destination device Explanations: 1. The instruction reverses the bit pattern (0 → 1, 1 → 0) of all the contents in S and sends the contents to D . 2. When CML is used as 16-bit instruction, Z device cannot be adopted; when CML is used as 32-bit instruction, V device cannot be adopted. 3. When specifying the bit device of KnX(Y/M/S), the starting No. should be a multiple of 16 in octal or decimal format. For example, K1X0, K4Y20 (octal); K1M0, K4S16 (decimal). Program example 1:

When X10 = ON, b0 ~ b3 in D1 will be inverted and sent to Y0 ~ Y3 X20 b0 b1 b2 b3 b15 D1 No variation Transfer data Program example 2: The diagram below can be substituted by the instruction on the right. X000 X001 M0 X002 M1 M2 X003 M3 Normally ON contact M1000 X000 M0 X001 M1 X002 M2 X003 M3 DVP-PM Application Manual 5-29 API Mnemonic Operands Function Controllers 20PM 10PM 14 D CML P Compliment Type OP Bit Devices Word devices Program Steps X Y M S K H K nX KnY KnM KnS T C D E F CML, CMLP: 5 steps DCML, DCMLP: 9 steps S * * * * * * * * * * * D * * * * * * * * CML D1 K1Y0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 Symbol bit (0=positive, 1=negative) 0 1 0 1 CML K1X0 K1M0