Mitsubishi Electronics FX3G User Manual
647
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
Series
Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
27.3 FNC212 – POP / Shift Last Data Read [FILO Control]
21
FNC160
-F
NC1
69
69
R
eal
T
T
ime C
lock
C
ontrol
22
FNC17
0-F
NC
179
179
E
xternal D
evice
23
FNC
180
Alternate
Instructions
24
FN
C181-
FNC18
9
O
thers
25
FNC190
-F
NC1
99
99
Bl
oc
k D
ata
ata
Op
er
er
ation
26
FNC20
0-F
NC209
C
har
ac
te
r S
trin
g
Con
tro
tro
l
27
FNC2
10-
FNC21
10-
FNC21
9
Dat
a
a
Operati
on 3
28
FNC220
-F
NC2
49
49
Da
ta
C
omp
ari
ari
son
29
FNC25
0-F
N
C
269
D
ata T
abl
e
e
Operation
30
FNC2
70-
FNC276
FNC276
Ex
-Dev
ice
Program example
Among values stored in D20 input first to D101 to D106, the last value input is stored to D10, and “1” is subtracted
from the number of stored data (pointer D100) every time X000 turns ON.
from the number of stored data (pointer D100) every time X000 turns ON.
When the first-in data is as shown in the table below
Pointer
D100
K3
Data
D101
H1234
D102
H5678
D103
HABCD
D104
H0000
D105
H0000
D106
H0000
FNC 38
SFWR
D20
K7
END
D100
FNC212
POP
D100
K7
D10
X000
First-in command
Last-in read command
D20
D106
D105
D104
D103
D102
D101
D100
H0000
H0000
H0000
HABCD
H5678
H1234
K3
First-in command
D100:
K2
K2
→K3
D100:
K1
K1
→K2
D100:
K0
K0
→K1
D106
D105
D104
D103
D102
D101
D100
H0000
H0000
H0000
HABCD
H5678
H1234
K3
→K2
Do not change
D10
HABCD
Last-in read command
X000: OFF
X000: OFF
→ON