Mitsubishi — 5.6 Application Instructions

5 Categories and Use of Basic Application Instructions API 44 Operands: S : Source device D : Device for storing check result n : Bit number to be checked Explanation: 1. The instruction checks the status of designated bit (specified by n ) in S and stores the result in D 2. When BON is used as 16-bit instruction, Z device cannot be adopted; when BON 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). 4. Valid range of operand n : n = 0~15 (16-bit), n = 0~31 (32-bit) Program Example: 1.

When X0 = ON, and bit15 of D0 = “1”, M0 will be ON. If the bit15 is “0”, M0 is OFF. 2. When X0 is OFF, M0 will retain its previous status. X0 b0 M0=Off b15 D0 b0 M0=On b15 D0 DVP-PM Operation Instruction 5-64 Mnemonic Operands Function Controllers 20PM 10PM D BON P Check specified bit status Type OP Bit Devices Word devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F BON, BONP: 7 steps DBON, DBONP: 13 steps S * * * * * * * * * * * D * * * n * * * * * * * BON D0 M0 K15 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0