![Omron CJ1G-CPUxx Скачать руководство пользователя страница 652](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491652.webp)
631
Table Data Processing Instructions
Section 3-17
Description
FIFO(633) reads the oldest word of data from the stack (TB+4) and outputs
that data to D. Next, the stack pointer (TB+3 and TB+2) is decremented by
one, all of the remaining data in the stack is shifted downward by one word,
and the data read from TB+4 is deleted. The data at the end of the stack (the
address that was indicated by the stack pointer) is left unchanged.
Use FIFO(633) in combination with PUSH(632). After PUSH(632) has been
used to write data into a stack, FIFO(633) can be used to read data from the
stack on a first-in first-out basis.
FIFO(633) reads the beginning data from the stack and deletes this data to
move the next one forward.
Flags
Precautions
The stack must be defined in advance with SSET(630).
Data Registers
---
DR0 to DR15
Index Registers
---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
TB
D
m–1
m–1
PC memory
Oldest
data
First-in first-out
Stack
pointer
Stack
pointer
TB
TB+1
TB+2
TB+3
TB
TB+1
TB+2
TB+3
TB+4
TB+4
address
PC memory
address
Name
Label
Operation
Error Flag
ER
ON if the contents of the stack pointer (TB+3 and TB+2) is
less than or equal to the PLC memory address of first
word in the data region of the stack (TB+4).
(This is a stack underflow error.)
OFF in all other cases.
Содержание CJ1G-CPUxx
Страница 3: ...iv N o t i c e ...
Страница 5: ...vi ...
Страница 21: ...xxii Conformance to EC Directives 6 ...
Страница 35: ......
Страница 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1143: ...Authorized Distributor Cat No W340 E1 08 Note Specifications subject to change without notice Printed in Japan ...