Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 316

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

Function
MVN
MVN(022) inverts the bits in S and transfers
the result to D. The content of S is left
unchanged.
MVNL
MVNL(499) inverts the bits in S+1 and S and
transfers the result to D+1 and D. The
contents of S+1 and S are left unchanged.
Sample program
When CIO 0.00 is ON in the following
example, the status of the bits in CIO 100 is
inverted and the result is copied to D100.
0.00
D100
CS/CJ/NSJ Series Instructions Reference Manual (W474)
100
D100
S
Bit status
inverted.
D
S+1
S
D+1
D
When CIO 0.00 is ON in the following
example, the status of the bits in D101 and
D100 are inverted and the result is copied to
D201 and D200. (The original contents of
D101 and D100 are left unchanged.)
0.00
D100
D200
D100
D101
D200
D201
3. Instructions
1
0
0
1
Bit status
1
0
inverted.
0
1
3
279

Advertisement

Table of Contents
loading

Table of Contents