CONTREX CX-1200 User Manual

Page 184

Advertising
background image

5 - 91

Cntr1 Out

32

DO_1

101

Cntr2 Out

33

Cntr2 Out

33

Cntr1 Out

32

32

Cntr1 Out

33

Cntr2 Out

33

Cntr2 Out

32

Cntr1 Out

0

S0

101

DO_1

LOAD

AND NOT
LOAD

AND NOT
OR
OUT

This programming can be greatly simplified with the “XOR” command as follows.

Cntr1 Out

32

DO_1

101

Cntr2 Out

33

Cntr2 Out

33

Cntr1 Out

32

32

Cntr1 Out

33

Cntr2 Out

101

DO_1

LOAD

XOR

OUT

The “AND/OR” programming of the exclusive “OR” function above illustrates more complicated logic than
we have seen thus far. It involves not only the use of normally-closed contacts, but the use of a second
“LOAD” command to start the second branch, or sub-rung. If you understand the stack movement, the
programming should seem quite obvious. Consider the following example:

DI_8

8

DO_1

101

DI_ 9

9

DI_10

10

DI_11

11

8

DI_8

9

DI_9

10

DI_10

11

DI_11

0

S0

101

DO_1

LOAD

OR
LOAD

OR
AND
OUT

Advertising