2-217
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Logic Instructions
2
COM/COML
Sample program
When CIO 0.00 is ON in the following example, the status of each bit D100 will be reversed.
When CIO 0.00 is ON in the following example, the status of each bit in D100 and D101 will be
reversed.
D100
1001000100010001
01234567891514 13121110
D100
0
1 1 0 1 1 1 0 1 1 1 0 1 1 1 0
01234567891514 13121110
COM
D100
0.00
COML
D100
0.00
D100
1
0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
01234567891514 13121110
D100
0
1 1 0 1 1 1 0 1 1 1 0 1 1 1 0
01234567891514 13121110
1 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
01234567891514 13121110
0 1 1 0 1 1 1 0 1 1 1 0 1 1 1 0
01234567891514 13121110