DECP instructions on Mitsubishi PLC : Decrement memory with Pulse
Decrements the memory data specified by the operand by 1.
On every execution of the instruction the device specified as the (D), has its current value decremented (decreased) by a value of 1. In 16 bit operation, when -32,768 is reached the next incrementation will write a value of +32,767 to the (D).
Examples of the use of DECP instructions on Mitsubishi PLC :
1. If X000=OFF then Value in D0=30.
2. If X000=ON then Value in D0=29.
3. If X000=OFF then Value in D0=29.
4. If X000=ON then Value in D0=28.
5. If X000=OFF then Value in D0=28.