Mitsubishi Electric MELSEC FX3U Programming Manual page 679

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Related instruction
Instruction
FINS(FNC211)
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
• When the FNC210 instruction is executed under the condition "n ≤ 0" (error code: K6706)
• When the amount of data stored specified in
• 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).
X010
FNC234
AND<
Device range used in
data table
Inserts data into an arbitrary position in a data table.
FNC237
K0
D100
AND<=
Data table
Amount of
D100
5
data stored
D101
-123
D102
4444
Data
table
D103
3210
range
D104
1234
D105
5432
D106
0
D107
0
27 Data Operation 3 – FNC210 to FNC219
27.1 FNC210 – FDEL / Deleting Data from Tables
Description
(error code: K6706)
D
is "0" (error code: K6706)
D
FNC210
D100
K7
FDELP
X010:ON
Data table
-1
D100
D101
-123
D102
3210
D103
1234
D104
5432
D105
D106
D107
D0
4444
D0
D100
K2
END
Amount of
4
data stored
Data table
range
0
0
0
Deleted data
677
21
22
23
24
25
26
27
28
29
30

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents