Move Bit - Movb(82) - Omron SYSMAC C200HS Operation Manual

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Data Movement
Example
00001
Stack pointer
Stack area
Flags
5-16-8 MOVE BIT – MOVB(82)
Limitations
166
In the following example, the content of C (HR 00) is 8010, and COLL(81) is used
to copy the most recent entries from a 10-word stack (IR 001 to IR 010) to LR 20.
COLL(81)
001
HR 00
LR 20
Before
execution
Stack pointer
IR 001
decremented
0 0 0 2
IR 002
1 2 3 4
IR 003
A B C D
IR 010
Output
LR 20
A B C D
ER:
The content of C is not BCD or 6655<C<8000.
When C≤6655, DBs and DBs+C are not in the same data area.
When C≥8000, the beginning and end of the stack are not in the same
data area or the value of the stack pointer exceeds the length of the
stack.
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 transferred data is zero; otherwise OFF.
Ladder Symbols
MOVB(82)
@MOVB(82)
S
Bi
D
The rightmost two digits and the leftmost two digits of Bi must each be between
00 and 15.
Address
Instruction
00000
LD
00001
COLL(81)
HR
LR
After one
execution
Stack pointer
IR 001
decremented
0 0 0 1
IR 002
1 2 3 4
IR 003
IR 010
Output
LR 20
1 2 3 4
IR, SR, AR, DM, HR, LR, #
S
IR, SR, AR, DM, HR, TC, LR, #
Bi
D
Section 5-16
Operands
00001
001
00
20
After two
executions
IR 001
0 0 0 0
IR 002
IR 003
IR 010
Operand Data Areas
S: Source word
Bi: Bit designator (BCD)
D: Destination word
IR, SR, AR, DM, HR, LR

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents