644
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
27.2 FNC211 – FINS / Inserting Data to 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" 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 (error code: K6706)
• 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).
D
Data table
4444
-123
4
1234
5000
0
0
Data
table
range
Device range used in
data table
Data table
+1
Data table
range
Amount of
data stored
0
4444
-3210
5
1234
-123
5000
0
0
X010:ON
X010
FNC211
FINSP
D100 D0 K3
END
FNC237
AND<=
K0 D0
FNC234
AND<
D0 K7
D0
D1
D2
D3
D4
D5
D6
D7
-3210
D100
Amount of
data stored
D0
D1
D2
D3
D4
D5
D6
D7
When "n" is "3"