189
4
4 Instructions 4.5.3 Table Operation
FINS: Insertion of data to a table
◆
Overview
The FINS instruction inserts data at any position in a table.
FINS S D n
Insertion of data
to a table
Applicable model:
H3U
S Inserted data
Number of the element that stores the data to be
inserted
7-bit instruction (5
steps)
FINS: Continuous
execution
FINSP: Pulse
execution
D
Data table
information
Start number of elements that store a data table
D: Number of stored data entries
D+1: Start position of a data table
n
Position of
insertion
Position in a table at which data is inserted
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
n X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
◆
Function
The data stored in [S] is inserted at the nth data entry position in a table from head address [D+1]. The
original nth data entry and subsequent ones move backward, and [D] (which indicates the number of stored
data entries) is incremented by 1.
N = 2
Table range
Data tableData table
Number of saved
data entries
D data entrids
from head
address [D+1]
of the table
Range of elements
used by the
data table
5
D+1
D
……………………
5432
1234
-123
0
0
….
0
D+2
4
D+1
D
……………………
5432
4444
1234
-123
0
4444
D+2
S
An error is returned in the following conditions. The error ag M8067 is set to ON to identify this error and
the error code is stored in D8067.