Deleting Data From The Data Table - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Deleting data from the data table

FDEL(P)
These instructions remove the (n)th data in the data table specified by (d) and store the data in the device specified by (s).
After these instructions are executed, the data after the (n)+1th data in the data table is moved up by one data point.
Ladder diagram
(s)
(d)
(n)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Head device number for storing the data to be deleted
(d)
Start number of the table
(n)
Position of the data to be deleted in the table
■Applicable devices
Operand
Bit
X, Y, M, L,
U\G T, ST,
SM, F, B, SB
(s)
(d)
(n)
Processing details
• These instructions remove the (n)th data in the data table specified by (d) and store the data in the device specified by (s).
After these instructions are executed, the data after the (n)+1th data in the data table is moved up by one data point.
Data table
(d)
4
(d)+1
5432
(d)+2
3333
(d)+3
4444
1234
(d)+4
0
(d)+5
0
When (n) is 3, (d)+3 is the target.
Precautions
• The device range used in a data table should be controlled by the user.
• The data table has (d) number of stored data starting from ((d)+1).
Structured text
ENO:=FDEL(EN,s,n,d);
ENO:=FDELP(EN,s,n,d);
Word
T, ST, C, D,
U\G
C, LC
W, SD, SW, R
Data table
(d)
3
(d)+1
5432
(d)+2
3333
(d)+3
1234
0
(d)+4
0
(d)+5
0
(s)
4444
Range
Data type
16-bit signed binary
Word
1 to 32767
16-bit unsigned binary
Double word Indirect
specification
Z
LC
LZ
"0" is stored.
7 APPLICATION INSTRUCTION
7.5 Data table operation instruction
Data type (label)
ANY16
ANY16
ANY16
Constant
Others
K, H
E
$
359
7

Advertisement

Table of Contents
loading

Table of Contents