641
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
27.1 FNC210 – FDEL / Deleting Data from Tables
21
FNC160-FNC169
Real Time Clock
Control
22
FNC170-FNC179
External Device
23
FNC180
Alternate
Instructions
24
FNC181-FNC189
Others
25
FNC190-FNC199
Block Data
Operation
26
FNC200-FNC209
Character String
Control
27
FNC210-FNC219
Data
Operation 3
28
FNC220-FNC249
Data
Comparison
29
FNC250-FNC269
Data Table
Operation
30
FNC270-FNC276
Ex-Device
27.1 FNC210 – FDEL / Deleting Data from Tables
Outline
This instruction deletes an arbitrary data value from a data table.
1. Instruction format
2. Set data
3. Applicable devices
Explanation of function and operation
1. 16-bit operation (FDEL and FDELP)
The "n"th data value is deleted from a data table (stored in and later), and the deleted value is stored in .
"n+1"th data value and later in the data table are shifted forward one by one, and the number of stored data is
subtracted by "−1".
Caution
The device range used in a data table should be controlled by the user.
The data table has number of stored data starting from ( +1).
→ Refer to the program example.
Related instruction
Operand Type Description Data Type
Device number storing deleted data value
16-bit binary
Head device number in data table
n Position of deleted data in table
Oper-
and
Type
Bit Devices Word Devices Others
System User Digit Specification System User
Special
Unit
Index
Con-
stant
Real
Number
Charac-
ter String
Pointer
XYMTCSD
.b KnX KnY KnM KnS T C D R
U\G
V Z Modify K H E "
"P
n
Instruction Description
FINS (FNC211) Inserts data into an arbitrary position in a data table.
Mnemonic Operation Condition
16-bit Instruction
7 steps
FDEL
FDELP
Mnemonic Operation Condition
Continuous
Operation
Pulse (Single)
Operation
32-bit Instruction
⎯
⎯
P
FNC 210
FDEL
S
D
S
D
D
S
Command
input
FNC210
FDELP
S
D
n
+0
Data table
+2
+3
+4
D
+1
+5
3333
4444
5
5432
1234
5678
...
0
...
Data table
(having
data starting
from +1)
D
D
Device range used in
data table
+0
Data table
+2
+3
+4
D
+1
+5
4444
1234
4
5432
5678
0
...
3333
...
-1
Deleted data
S
"0" is stored.
Data table
range
Number of
stored data
Number of
stored data
When "n" is "2"
D
D