Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
27 Applied Instructions (Data Operation 3)
27.2 FINS / Inserting Data to Tables
658
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. 16-bit operation (FINS/FINSP)
1) 16-bit data of the device specified by is inserted in "n"th position in a data table (stored in the device
specified by 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".
Cautions
1) The device range used in a data table should be controlled by the user.
The data table has the number of pieces of data, which is stored in , starting from the device after
the device that indicates the number of stored data .
Refer to the program example below.
2) The instruction is provided in the FX
3UC PLC Ver. 2.20 or later.
Related instruction
Error
An operation error is caused in the following cases. The error flag M8067 turns ON, and the error code is
stored in D8067.
1) When the table position "n" from the device specified by exceeds the "amount of data stored plus
one"
(Error code: K6706)
2) When the value "n" exceeds the device range of the data table specified by
(Error code: K6706)
3) When the FDEL instruction is executed under the condition "n 0" (Error code: K6706)
4) When the data table range exceeds the corresponding device range (Error code: K6706)
Instruction Description
FDEL Deletes an arbitrary data from a data table.
FINSP
EN
s
n
ENO
d
Command
input
Data insertion position in table
Device storing inserted data
Head device in data table
Data table
1234
-123
3
5432
0
0
0
Data table range
Device range used
in data table
Data table
4444
1234
4
5432
-123
0
4444
+1
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
s
d