Mitsubishi Electric MELSEC FX3U Programming Manual page 681

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
FDEL(FNC210)
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" for data insertion exceeds the amount of stored data plus 1(error code: K6706)
• When the value "n" exceeds the device range of the data table
• When FNC211 instruction is executed under the condition "n ≤ 0" (error code: K6706)
• When the data table range exceeds the corresponding device range (error code: K6706)
Program example
In the program shown below, data stored in D100 is inserted into the 3rd position of the data table stored in
D0 to D4.
When the amount of data stored exceeds "7", however, the FINS (FNC211) instruction is not executed. (The
device range used in the data table is D0 to D7).
X010
FNC237
AND<=
Device range used in
data table
Deletes an arbitrary data entry from a data table.
FNC234
K0
D0
AND<
Data table
Amount of
D0
4
data stored
D1
1234
Data
D2
4444
table
D3
-123
range
D4
5000
D5
0
D6
0
D7
0
D100
-3210
27 Data Operation 3 – FNC210 to FNC219
27.2 FNC211 – FINS / Inserting Data to Tables
Description
(error code: K6706)
D
FNC211
D0
K7
FINSP
X010:ON
Data table
+1
D0
5
D1
1234
D2
4444
D3
-3210
D4
-123
D5
5000
D6
0
D7
0
When "n" is "3"
D100
D0
K3
END
Amount of
data stored
Data table
range
679
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