6 Application Instructions API 00-49 API 25 Operands: D : Destination device Explanations: 1. If D is used in device F, only 16-bit instruction is applicable. 2. See the specifications of each model for their range of use. 3. If the instruction is not a pulse execution one, the content in the designated device D will minus “1” in every scan period whenever the instruction is executed. 4. This instruction adopts pulse execution instructions (DECP, DDECP). 5. In 16-bit operation, -32,768 minuses 1 and obtains 32,767. In 32-bit operation, -2,147,483,648 minuses 1 and obtains 2,147,483,647. 6. The operation results will not affect M1020 ~ M1022. Program Example:
When X0 = Off → On, the content in D0 minuses 1 automatically. X0 DVP-PLC Application Manual 6-44 Mnemonic Operands Function D DEC P Decrement Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX K nY KnM KnS T C D E F DEC, DECP: 3 steps DDEC, DDECP: 5 steps D * * * * * * * * PULSE 16-bit 32-bit EH3 SV2 EH3 EH3 ES EX SS SA SX SC E H SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV SV2 SV2 DECP D0