677
FX3G/FX3U/FX3UC 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
FNC160-FNC169
Real Time Clock
Control
22
FNC170-FNC179
External Device
23
FNC180
Alternate
Instructions
24
FNC181-FNC189
Others
25
FNC190-FNC199
Block Data
Operation
26
FNC200-FNC209
Character String
Control
27
FNC210-FNC219
Data
Operation 3
28
FNC220-FNC249
Data
Comparison
29
FNC250-FNC269
Data Table
Operation
30
FNC270-FNC274
Ex-Device
Inverter Comms
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 the table position "n" of the data to be deleted exceeds the amount of data stored (error code:
K6706)
• When the value "n" exceeds the device range of the data table (error code: K6706)
• When the FNC210 instruction is executed under the condition "n ≤ 0" (error code: K6706)
• When the amount of data stored 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 entry is deleted from the data table stored in D100 to D105, and
the deleted data is stored in D0.
When the amount of data stored is "0", however, the 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
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
Amount of
data stored
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
Amount of
data stored
X010
FNC210
FDELP
D0 D100 K2
END
FNC234
AND<
K0 D100
FNC237
AND<=
D100 K7