637
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
27.3 FNC212 – POP / Shift Last Data Read [LIFO Control]
21
FN
C
160-FN
C
169
R
eal
Ti
m
e
C
loc
k
C
ont
ro
l
22
FN
C
170
-F
N
C
17
9
E
xt
e
rnal
D
evi
ce
23
FN
C
180
Su
b
st.
I
n
str
. I
n
fo
24
FN
C
181-FN
C
189
O
ther
s
25
FN
C
190-FN
C
19
9
B
loc
k D
a
ta
O
per
at
io
n
26
FN
C
200-FN
C
209
C
har
act
e
r St
ring
C
ont
ro
l
27
F
N
C2
10
-F
NC
21
9
Da
ta
O
per
at
ion 3
28
FN
C
220-FN
C
24
9
Da
ta
Co
m
p
a
ris
o
n
29
FN
C
250-FN
C
269
Da
ta
T
a
b
le
O
per
at
io
n
30
FN
C
27
0-F
N
C
274
Ex
-D
ev
ic
e
In
ve
rte
r C
o
mm
s
• Subtract “1” from the value of the pointer data
.
Related device
→
For the zero flag use method, refer to Subsection 6.5.2.
Related instructions
Cautions
• When this instruction is programmed in the continuous operation type, the instruction is executed in every
operation cycle. As a result, an expected operation may not be achieved.
Usually, program this instruction in the “pulse operation type”, or let this instruction be executed by a
“pulsed command contact”.
• When the current value of the pointer
is “0”, the zero flag M8020 turns ON and the instruction is not
executed.
Check in advance using a comparison instruction whether the current value of
satisfies “1
≤
≤
n-1”, and then execute this instruction.
• When the current value of the pointer
is “1”, “0” is written to
and the zero flag M8020 turns
ON.
Error
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is
stored in D8067.
• When
is larger than “n-1” (error code: K6706)
• When
is smaller than “0” (error code: K6706)
Device
Name
Description
M8020
Zero flag
Turns ON when the instruction is executed while the pointer
is “0”.
Instruction
Description
SFWR(FNC 38)
Shift write [for FIFO/LIFO control]
SFRD(FNC 39)
Shift read [for FIFO control]
S
Data area
Pointer
S
+n-2
S
+n-1
S
+6
S
+5
S
+3
S
+2
S
+1
S
No change in data area
Pointer
S
+n-2
S
+n-1
S
+6
S
+5
S
+3
S
+2
S
+1
S
D
S
+4
In the case of K4
K4
→
K3
S
+4
S
S
S
S
S
S
S
S
Содержание FX3U Series
Страница 1: ...PROGRAMMING MANUAL Basic Applied Instructions Edition FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS ...
Страница 2: ......
Страница 889: ......