Deletion Of Data From Data Tables, Insertion Of Data In Data Tables - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

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.
Data table
D
3
5432
D
+1
1234
D
+2
123
D
+3
0
D
+4
0
D
+5
0
S
4444
7 APPLICATION INSTRUCTIONS
504
7.7 Data Table Operation Instructions
Redundant Universal
LCPU
R, ZR
Word
Number of stored
data blocks
D
D
D
D
D
If n=2, data is inserted to
Command
Command
J\
Bit
Word
Data table
D
3
5432
D
+1
3333
D
+2
1234
D
+3
D
0
Stores 0.
+4
0
D
+5
0
S
4444
Data table
D
4
5432
+1
4444
+2
Data table range
1234
+3
123
+4
0
+5
0
D
+2.
indicates an instruction symbol of FDEL/FINS.
S
D
S
D
P
U\G
Zn
n
n
Constant
Others
K, H

Advertisement

Table of Contents
loading

Table of Contents