![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_7420301311.webp)
1271
Model Conversion Instructions (Unit Ver. 3.0 or Later)
Section 3-35
LIFO Stack Read Operation (Of = 8000 to 8999 BCD)
If the leftmost digit of Of is 8, COLLC(567) will operate as a LIFO stack
instruction (LIFO stands for Last-In-First-Out). In this case, the rightmost 3
digits of Of specify the size of the stack.
COLLC(567) copies the data most recently recorded in the stack to D. The
source word is Bs + the stack pointer (content of Bs). After the data is copied,
the stack pointer is decremented by 1.
Note Use DISTC(566) to write stack data to the stack area.
FIFO Stack Read Operation (Of = 9000 to 9999 BCD)
If the leftmost digit of Of is 9, COLLC(567) will operate as a FIFO stack
instruction (FIFO stands for First-In-First-Out). In this case, the rightmost 3
digits of Of specify the size of the stack.
COLLC(567) copies the data from the oldest word recorded in the stack to D.
The source word is Bs + 1. After the data is copied, the stack pointer is decre-
mented by 1.
Note Use DISTC(566) to write stack data to the stack area.
Flags
Note In C-series PLCs, the DATA COLLECT (COLL) instruction will cause the Error
Flag to go ON if the content of an indirectly addressed DM word (*DM) is not
BCD, or the DM area boundary is exceeded. COLLC(567) will not cause the
Error Flag to go ON in these cases.
Bs
Bs+1
Stack area
Stack
pointer
Stack
data area
m words
Size of
stack area
8
m
D
Data is copied from
Bs + stack pointer.
D
Of
Bs
Bs+1
Stack area
Stack
pointer
Stack
data area
m words
Size of
stack area
9
m
S1+
Data is copied from
Bs + 1.
Name
Label
Operation
Error Flag
ER
ON if the offset data in Of is not BCD.
ON if LIFO or FIFO Stack Operation is specified, but the
stack pointer data in Bs is not BCD.
ON if LIFO or FIFO Stack Operation is specified and the
stack pointer indicates a word that exceeds the stack data
area.
OFF in all other cases.
Equals Flag
=
ON if the source data is 0000.
OFF in all other cases.
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...