
187
Example
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.
Stack pointer
decremented
After one
execution
After two
executions
COLL(81)
001
HR 00
LR 20
00001
Address
Instruction
Operands
00000
LD
00001
00001
COLL(81)
001
HR
00
LR
20
IR 001
Before
execution
1
2
3 4
0
0
0 2
A B C D
1
2
3 4
0
0
0 0
IR 002
IR 003
IR 010
IR 002
IR 010
IR 001
IR 010
Output
A B C D
LR 20
Output
1
2
3 4
LR 20
Stack pointer
decremented
Stack pointer
Stack area
IR 003
IR 001
0
0
0 1
IR 002
IR 003
Flags
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.
5-16-8
MOVE BIT – MOVB(82)
S
: Source word
IR, SR, AR, DM, HR, LR, #
Bi:
Bit designator (BCD)
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
D
: Destination word
IR, SR, AR, DM, HR, LR
MOVB(82)
S
Bi
D
@MOVB(82)
S
Bi
D
Limitations
The rightmost two digits and the leftmost two digits of Bi must each be between
00 and 15.
Data Movement
Section 5-16
Summary of Contents for SYSMAC C200HE
Page 1: ...Cat No W303 E1 09 OPERATION MANUAL Programmable Controllers C200HX C200HG C200HE ...
Page 2: ......
Page 3: ...C200HX C200HG C200HE Programmable Controllers Operation Manual Revised August 2004 ...
Page 6: ...vi ...
Page 10: ......
Page 12: ......
Page 380: ......
Page 410: ......
Page 438: ......
Page 464: ......
Page 474: ......
Page 522: ......
Page 538: ......
Page 552: ...534 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...
Page 554: ......
Page 560: ......
Page 584: ......
Page 585: ......
Page 586: ...W303 E1 09 ...