Move Bit - Movb - Omron C200H Operation Manual

Hide thumbs Also See for C200H:
Table of Contents

Advertisement

Data Movement
Limitations
Description
Flags
5-14-10 MOVE BIT – MOVB(82)
Limitations
Description
1
MSB
Destination bit (00 to 15)
Flags
Of must be a BCD. SBs must be in the same data area as SBs+Of.
When the execution condition is OFF, COLL(81) is not executed. When the
execution condition is ON, COLL(81) copies the content of SBs + Of to D,
i.e., Of is added to SBs to determine the source word.
SBs + Of
3 4 5
2
ER:
Of is not BCD, or when added to the SBs, or when added to the SBs,
the resulting address lies outside the data area of the SBs.
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
EQ:
ON when the content of S is zero; otherwise OFF.
Ladder Symbols
MOVB(82)
S
Bi
D
The rightmost two digits and the leftmost two digits of Bi must each be be-
tween 00 and 15.
When the execution condition is OFF, MOVB(82) is not executed. When the
execution condition is ON, MOVB(82) copies the specified bit of S to the spe-
cified bit in D. The bits in S and D are specified by Bi. The rightmost two dig-
its of Bi designate the source bit; the leftmost two bits designate the destina-
tion bit.
Bi
Bi
2
0
1
LSB
S
Source bit (00 to 15)
D
ER:
C is not BCD, or it is specifying a non-existent bit (i.e., bit specifica-
tion must be between 00 and 15).
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
D
3 4 5
2
@MOVB(82)
S
Bi
D
Bit
15
0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1
1
2
Bit
15
0 1 0 1 0 1 0 0 0 1 1 1 0 0 0 1
Bit
15
0 1 0 0 0 1 0 0 0 1 1 1 0 0 0 1
Section 5-14
Operand Data Areas
S: Source word
IR, SR, AR, DM, HR, LR, #
Bi: Bit designator (BCD)
IR, AR, DM, HR, TC, LR, #
D: Destination word
IR, AR, DM, HR, LR
Bit
00
0
1
Bit
00
Bit
00
139

Advertisement

Table of Contents
loading

Table of Contents