Skip to main content

Example - Ladder Diagram

BXCH​


The BXCH instruction exchanges n number of WORD data registers starting at S with n number of WORD data registers starting at D.

Ladder Diagram Example​


When the contact, M0.0, is powered ON (1), the instruction exchanges the values of 3 data registers starting at D20 with 3 data registers starting at D25.


Memory Monitor​

BXCHP​


The BXCHP one-shot exchanges n number of WORD data registers starting at S with n number of WORD data registers starting at D.
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 values of 4 data registers starting at D30 with 4 data registers starting at D35.


Memory Monitor​