Example - Ladder Diagram
DXCH
The DXCH instruction exchanges the value in the DWORD data register, D1, with the value in the DWORD data register, D2.
Ladder Diagram Example
When the contact, M0.0, is powered ON (1), the instruction exchanges the value of the DWORD data register, D10, with the data register, D13.
Memory Monitor
![]()
![]()
DXCHP
The DXCHP one-shot instruction exchanges the value in the DWORD data register, D1, with the value in the DWORD data register, D2.
Every time this instruction executes, it energizes the output only once.
Ladder Diagram Example
![]()
When the contact, M0.1, is powered ON (1), the instruction exchanges the value of the DWORD data register, D16, with the data register, D19.
![]()
Memory Monitor
![]()
![]()