7-158
FDEL(P),FINS(P)
FINS
(1) Inserts the 16-bit data designated by at the nth block of the data table designated by .
After the execution of the FINS instruction, the data in the table following the inserted block
is all dropped one position.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The Nth position from is larger than the data storage number at the execution of the
FDEL instruction. (Error code: 4101)
• The Nth position from is larger than the "data storage number + 1" at the execution of
the FINS instruction. (Error code: 4101)
• The value of n in the case of the FDEL, FINS instruction exceeds the device range of the
table . (Error code: 4101)
• The FDEL or FINS instruction was executed when n 0. (Error code: 4100)
• The FDEL instruction was executed when the value of was 0. (Error code: 4100)
• The data table range exceeded the corresponding device range at execution of the FDEL
or FINS instruction. (Error code: 4101)
S
D
D
D
D
D
D
D
S
+1
+2
+3
+4
Data table
Number of stored
data blocks
5432
1234
3
123
0
0
4444
+5
0
+1
+2
+3
+4
Data table
5432
4444
4
1234
123
0
+4
0
D
D
D
D
D
D
If n=2, data is inserted to +2.
D
Data table range
D
D
D
D