Omron CP1E-NA@@D@-@ Computer Hardware User Manual


 
2-109
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Data Movement Instructions
2
MOV/MOVL/MVN
Function
Precautions
MOV(021) has an immediate refreshing variation (!MOV(021)). A CPU Unit Built-in input bits can be
specified for S and external output bits can be specified for D. Input bits used for S will refreshed just
before, and output bits used for D will be refreshed just after execution.
When CPU Unit Built-in input is specified for S, the value of S will be in-refreshed when the instruction
is executed and transferred to D. When external output is specified for D, the value of S will be trans-
ferred to D and immediately out-refreshed when the instruction is executed. It is also possible to in-
refresh S and out-refresh D at the same time.
Sample program
When CIO 0.00 is ON in the following example, the content of CIO 100 is copied to D100.
MOV
Transfers S to D. If S is a constant, the value
can be used for a data setting.
MOVL
MOVL(498) transfers S+1 and S to D+1 and
D. If S+1 and S are constants, the value can
be used for a data setting.
MVN
MVN(022) inverts the bits in S and transfers
the result to D. The content of S is left
unchanged.
S+1
D+1
S
D
S
D
S
D
1 0
0 1
Bit status
inverted.
MOV
100
D100
0.00
100CH D100