![Omron CVM1D Operation Manual Download Page 378](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532378.webp)
0000
00
(163)
FIFO
D00000
2001
373
D00000 $2006 (Final stack address)
$2000
D00001 $2004 (Stack pointer)
$2001
D00002 ABCD
$2002
D00003 37B4
$2003
D00004 0000
$2004
D00005 0000
$2005
D00006 0000
$2006
2000
37B4
Stack pointer
decremented
D00000 $2006 (Final stack address)
$2000
D00001 $2003 (Stack pointer)
$2001
D00002 ABCD
$2002
D00003 37B4 (Moved to CIO 0200)
$2003
D00004 0000
$2004
D00005 0000
$2005
D00006 0000
$2006
Memory
address
Memory
address
5-31-4 FIRST IN FIRST OUT: FIFO(163)
(163)
FIFO TB1
D
D: Destination word
CIO, G, A, DM, DR, IR
TB1: 1
st
stack address CIO, G, A, DM
Operand Data Areas
Ladder Symbol
Variations
j
FIFO(162)
When the execution condition is OFF, FIFO(163) is not executed. When the ex-
ecution condition is ON, FIFO(163) writes zeros into the last word of the stack
and shifts the contents of each word within the stack down by one address, final-
ly shifting the data from TB1+2 (the first value written to the stack) to the destina-
tion word (D). The memory address in the stack pointer (TB1+1) is then decrem-
ented by one.
TB1 must be the first address of a stack defined using SSET(160).
Do not allow the stack pointer to be decremented to the memory address of the
stack pointer. If the content of the stack pointer is less than or equal to the
memory address of the stack pointer itself, the ER Flag (A50003) will be turned
ON.
Note Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
TB1+1 is less than or equal to the address of the stack pointer.
Content of
*
DM word is not BCD when set for BCD.
When CIO 000000 is ON in the following example, the first value in the stack
(ABCD at D00002) is moved to CIO 2001 and all values remaining in the stack
are moved up on word in the stack.
Address
Instruction
Operands
00000
LD
000000
00001
FIFO(163)
D00000
2001
D00000 $2006 (Final stack address)
$2000
D00001 $2005 (Stack pointer)
$2001
D00002 ABCD
$2002
D00003 37B4
$2003
D00004 8E19
$2004
D00005 0000
$2005
D00006 0000
$2006
CIO 2001
ABCD
D00000 $2006 (Final stack address)
$2000
D00001 $2004 (Stack pointer)
$2001
D00002 37B4
$2002
D00003 8E19
$2003
D00004 8E19
$2004
D00005 0000
$2005
D00006 0000
$2006
Memory
address
Memory
address
Description
Precautions
Example
Stack Instructions
Section 5-31
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...