Mitsubishi Electronics FX3UC ユーザーズマニュアル
641
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
Series
Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
27.1 FNC210 – FDEL / Deleting Data from Tables
21
FNC160
-F
NC1
69
69
R
eal
T
T
ime C
lock
C
ontrol
22
FNC17
0-F
NC
179
179
E
xternal D
evice
23
FNC
180
Alternate
Instructions
24
FN
C181-
FNC18
9
O
thers
25
FNC190
-F
NC1
99
99
Bl
oc
k D
ata
ata
Op
er
er
ation
26
FNC20
0-F
NC209
C
har
ac
te
r S
trin
g
Con
tro
tro
l
27
FNC2
10-
FNC21
10-
FNC21
9
Dat
a
a
Operati
on 3
28
FNC220
-F
NC2
49
49
Da
ta
C
omp
ari
ari
son
29
FNC25
0-F
N
C
269
D
ata T
abl
e
e
Operation
30
FNC2
70-
FNC276
FNC276
Ex
-Dev
ice
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 "
subtracted by "
−1".
Caution
The device range used in a data table should be controlled by the user.
The data table has
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
stant
Real
Number
Charac-
ter String
Pointer
X Y M T C S D .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
FDELP
Mnemonic
Operation Condition
Continuous
Operation
Pulse (Single)
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
+3
+4
D
+1
+5
3333
4444
4444
5
5432
1234
5678
5678
...
0
...
Data table
(having
data starting
from +1)
(having
data starting
from +1)
D
D
Device range used in
data table
data table
+0
Data table
+2
+3
+4
+3
+4
D
+1
+5
4444
1234
1234
4
5432
5678
0
...
3333
...
-1
Deleted data
S
"0" is stored.
Data table
range
range
Number of
stored data
stored data
Number of
stored data
stored data
When "n" is "2"
D
D