Mitsubishi Electronics FX3G User Manual

Page of 964
642
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.1 FNC210 – FDEL / Deleting Data from Tables
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 FDEL (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 value 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).
   
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