Mitsubishi Electronics FX3G ユーザーズマニュアル

ページ / 964
643
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.2 FNC211 – FINS / Inserting Data to Tables
21
FNC160
-F
NC1
69
R
eal
 T
ime C
lock
 
C
ontrol
22
FNC17
0-F
NC
179
E
xternal D
evice
23
FNC
180
Alternate 
Instructions
24
FN
C181-
FNC18
9
O
thers
25
FNC190
-F
NC1
99
Bl
oc
k D
ata
 
Op
er
ation
26
FNC20
0-F
NC209
C
har
ac
te
r S
trin
Con
tro
l
27
FNC2
10-
FNC21
9
Dat
Operati
on 3
28
FNC220
-F
NC2
49
Da
ta 
C
omp
ari
son
29
FNC25
0-F
N
C
269
D
ata T
abl
Operation
30
FNC2
70-
FNC276
Ex
-Dev
ice
27.2
FNC211 – FINS / Inserting Data to Tables
Outline
This instruction inserts a data value into an arbitrary position in a data table.
1. Instruction format
2. Set data
3. Applicable devices
Explanation of function and operation
1. 16-bit operation (FINS and FINSP)
16-bit data 
 is inserted in the "n"th position in a data table (stored in 
 and later).  
"n"th data and later in the data table are shifted backward one by one, and the number of stored data is added 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 data to be inserted
16-bit binary
Head device number in data table
n
Data insertion position 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
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
FDEL (FNC210)
Deletes an arbitrary data entry from a data table.
Mnemonic
Operation Condition
16-bit Instruction
 7 steps
FINS
FINSP
Mnemonic
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
32-bit Instruction

P
FNC 211
FINS
  S
  D
  S
  D
   
S
   
D
Command
input
FNC211
FINSP
n
Data table
D
1234
-123
3
5432
0
0
...
0
...
Data table
range
Device range used in
data table
Data table
D
4444
1234
4
5432
-123
0
...
4444
...
+1
S
Data table
range
When "n" is "2"
0
Number of
stored data
+0
+2
+3
+4
+1
+5
+0
+2
+3
+4
+1
+5
   
D
   
D