Example - Ladder Diagram
CML
The CML instruction inverts every bit in the WORD value, S, and saves the inversion in an assigned WORD data register, D.
Ladder Diagram Example
When the contact, M0.0, is powered ON (1), the instruction inverts the bits in the WORD data register, D0, and saves the result in the data register, D2.
Memory Monitor
![]()
CMLP
The CMLP one-shot inverts every bit in the WORD value, S, and saves the inversion in an assigned WORD data register, 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 inverts the bits in the WORD data register, D4, and saves the result in the data register, D6.
Memory Monitor
![]()