Omron C200HG Computer Hardware User Manual


 
185
5-16-7 DATA COLLECT COLL(81)
SBs: Source base word
IR, SR, AR, DM, HR, TC, LR
C: Offset data (BCD)
IR, SR, AR, DM, HR, TC, LR, #
Ladder Symbols
Operand Data Areas
D: Destination word
IR, SR, AR, DM, HR, TC, LR
COLL(81)
SBs
C
D
@COLL(81)
SBs
C
D
Limitations C must be a BCD. If C6655, SBs must be in the same data area as SBs+C. If the
leftmost digit of C is 8 or 9, DBs must be in the same data area as SBs+N (N=the
3 rightmost digits of C).
Description Depending on the value of C, COLL(81) will operate as a data collection instruc-
tion, FIFO stack instruction, or LIFO stack instruction. If C is between 0000 and
6655, COLL(81) will operate as a data collection instruction and copy the con-
tent of SBs+C to D.
If the leftmost digit of C is 9 , COLL(81) will operate as a FIFO stack instruction. If
the leftmost digit of C is 8, COLL(81) will operate as a LIFO stack instruction.
Both stack operations use a stack beginning at SBs with a length specified in the
rightmost 3 digits of C.
Precautions Stack operation will be unreliable if the specified stack length is different from the
length specified in the last execution of DIST(80) or COLL(81).
When the execution condition is OFF, COLL(81) is not executed. When the
execution condition is ON, COLL(81) copies the content of SBs + C to D, i.e., C is
added to SBs to determine the source word.
2
D
3452
SBs + C
345
When the execution condition is OFF, COLL(81) is not executed. When the
execution condition is ON, COLL(81) copies the data from the oldest word re-
corded in the stack to D. The stack pointer, SBs, is then decremented by 1.
Specifies the stack length (000 to 999).
A value of 9 indicates FIFO stack operation.
Digits of C: 3210
COLL(81) can be used together with DIST(80). Refer to 5-16-6 SINGLE WORD
DISTRIBUTE DIST(80) for details.
Note FIFO stands for First-In-First-Out.
Data Collection Operation
(C=0000 to 6655)
FIFO Stack Operation
(C=9000 to 9999)
Data Movement Section 5-16