Deletion of data from data tables, insertion of data in data tables
FDEL(P), FINS(P)
High
Basic
Process
performance
FDEL, FINS
FDELP, FINSP
(S): Head number of the devices where data to be inserted is stored (BIN 16 bits), head number of the devices where the data to be deleted will be stored (BIN
16 bits)
(D): Head number of the table (BIN 16 bits)
n:
Location on the table where data is inserted/deleted (BIN 16 bits)
Setting
Internal device
data
Bit
(S)
(D)
n
Processing details
■FDEL
• Deletes the nth block of data from the data table designated by (D), and stores it at the device designated by (S). After the
execution of the FDEL instruction, the data in the table following the deleted block is compressed forward by one block.
Data table
D
4
5432
D
+1
3333
D
+2
4444
D
+3
1234
D
+4
0
D
+5
0
If n=3, data
at
D
+3 is deleted.
■FINS
• Inserts the 16-bit data designated by (S) at the nth block of the data table designated by (D). After the execution of the FINS
instruction, the data in the table following the inserted block is all dropped one position.