6 Application Instructions API 00-49 Operands: S : Source device D : Device for storing check result n : Bits specified for check Explanations: 1. If S is used in device F, only 16-bit instruction is applicable. 2. Range of n : 0 ~ 15 (16-bit instruction); 0 ~ 31 (32-bit instruction) 3. See the specifications of each model for their range of use. 4. When the n th bit of S is “1”, D = On; when the n th bit of S is “0”, D = Off. Program Example: 2. When X0 goes Off, M0 will remains in its previous status. 1. When X0 = On, assume the 15 th bit of D0 is “1”, and M0 = On. Assume the 15 th bit of D0 is “0”, and M0 = Off.
X0 b0 M0=Off b15 0 D0 b0 M0=On b15 0 D0 DVP-PLC Application Manual 6-68 API Mnemonic Operands Function 44 D BON P Check Specified Bit Status Type OP Bit Devices Word Devices Program Steps X Y M S K H Kn X KnY KnM KnS T C D E F BON, BONP: 7 steps DBON, DBONP: 13 steps S * * * * * * * * * * * D * * * n * * * * * * * PULSE 16-bit 32-bit EH3 V SV2 ES EH3 EH3 ES EX SS SA SX SC EH S EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV SV2 SV2 BON D0 M0 K15 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 1 0 0 1 0 0 1 0 0 0 0 0 0 1 0