633
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
27.1 FNC210 – FDEL / Deleting Data from Tables
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
Related instruction
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is
stored in D8067.
• When "n"th position from
is larger than the number of data added by "1" (error code: K6706)
• When the value "n" exceeds the device range of the data table
(error code: K6706)
• When FNC210 instruction is executed in the condition "n <= 0" (error code: K6706)
• When the number of stored data specified in
is "0" (error code: K6706)
• When the data table range exceeds the corresponding device range (error code: K6706)
Program example
In the program shown below, the 2nd data is deleted from the data table stored in D100 to D105, and the
deleted data is stored in D0.
When the number of stored data is "0", however, FDEL (FNC210) instruction is not executed. (The device
range used in the data table is D100 to D107).
Instruction
Description
FINS(FNC211)
Inserts data into an arbitrary position in a data table.
D
D
D
D100
Data table
4444
3210
5
-123
1234
5432
0
Data
table
range
Device range used in
data table
Data table
4444
-1
Deleted data
Data table
range
Number of
stored data
D101
D102
D103
D104
D105
D106
D107
0
D100
3210
1234
4
-123
5432
0
0
D101
D102
D103
D104
D105
D106
D107
0
D0
X010:ON
Number of
stored data
X010
FNC210
FDELP
D0
D100
K2
END
FNC234
AND<
K0
D100
FNC237
AND<=
D100
K7
Содержание FX3U Series
Страница 1: ...PROGRAMMING MANUAL Basic Applied Instructions Edition FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS ...
Страница 2: ......
Страница 889: ......