27 Applied Instructions (Data Operation 3)
27.1 FDEL / Deleting Data from Tables
656
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Program examples
In the program example shown below, the second data is deleted from the data table stored in D100 to D105,
and the deleted data is stored in D0 when X010 is set to ON.
When the amount of data stored is "0", however, the FDEL instruction is not executed.
(The device range used in the data table is D100 to D107.)
[Structured ladder/FBD]
[ST]
The AND compare instruction (ANDD< , ANDD<=) is not available in ST.
X010
AND<=
EN
s1
s2
ENO
K7
AND<
EN
s1
s2
ENO
K0
D100
FDELP
EN
s
n
ENO
d
D0
K2
D100
D100
D100
Data table
4444
3210
5
-123
1234
5432
0
Data table
range
Device range used
in data table
Data table
4444
-1
Deleted data
Data table range
Number of
stored data
0
D100
3210
1234
4
-123
5432
0
0
0
D0
X010:ON
Number of
stored data
D101
D102
D103
D104
D105
D106
D107
D101
D102
D103
D104
D105
D106
D107