Omron SYSMAC CP Series Instruction & Reference Manual page 148

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions
Function
MOVB(082) copies the specified bit (n) from S
to the specified bit (m) in D.
Hint
The same word can be specified for both S and D to copy a bit within a word.
Precautions
The other bits in the destination word are left unchanged.
Sample program
When CIO 0.00 is ON in the following example, the 5
bit of the destination word (W100) in accordance with the control word's value of 0C05.
0.00
MOVB
S
W0
C
D200
D
W100
2-112
S
D
th
15
C:D200
15
14
8
7
S:W0
15
14
12
8
7
D:W100
C
m
n
m
bit of the source word (W0) is copied to the 12
8
7
0C
05
5
1
0
1
0
CP1E CPU Unit Instructions Reference Manual(W483)
n
th
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents