Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 1311

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Model Conversion Instructions (Unit Ver. 3.0 or Later)
Flags
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.
Data is copied from
Bs + stack pointer.
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.
Data is copied from
Bs + 1.
Note Use DISTC(566) to write stack data to the stack area.
Name
Error Flag
Equals Flag
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.
Stack area
Bs
Bs+1
Stack area
Bs
Bs+1
S1+
Label
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.
=
ON if the source data is 0000.
OFF in all other cases.
Section 3-35
m
8
Stack
pointer
Size of
m words
stack area
Stack
data area
D
Stack
9
m
Of
pointer
Size of
Stack
m words
stack area
data area
D
Operation
1271

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents