DEC instructions on Keyence PLC : Decrement memory
Decrements the memory data specified by the operand by 1.
Examples of the use of DEC instructions :
1. If 0000=OFF then Value in DM0000=30.
2. If 0000=ON then Value in DM0000=29.
3. If 0000=OFF then Value in DM0000=29.
4. If 0000=ON then Value in DM0000=28.
5. If 0000=OFF then Value in DM0000=28.