Example - Ladder Diagram
DDEC
The DDEC instruction decreases the assigned DWORD data register, D, by 1 until the execution condition is OFF.
Ladder Diagram Example
When the contact, M0.5, is powered ON, the value of the WORD data register, D30, decrements by 1 every scan.
This is the result after deenergizing the coil, M0.5.
Memory Monitor
![]()
DDECP
The DDECP one-shot instruction decreases the assigned DWORD data register, D, by 1.
Every time this instruction executes, it energizes the output only once.
Ladder Diagram Example
When the contact, M0.5, is powered ON, the value of the WORD data register, D30, decrements by 1 every scan.
Memory Monitor
![]()