27 Applied Instructions (Data Operation 3)
27.2 FINS / Inserting Data to Tables
659
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
21
Applied Instructions
(Real Time
Clock Control)
22
Applied Instructions
(External Device)
23
Applied Instructions
(Extension
Function)
24
Applied Instructions
(Others)
25
Applied Instructions
(Block Data
Operation)
26
Applied Instructions
(Character
String Control)
27
Applied Instructions
(Data Operation 3)
28
Applied Instructions
(Data Comparison)
29
Applied Instructions
(Data Table
Operation)
30
Applied Instructions
(External Device
Communication)
Program examples
In the program example shown below, data stored in D100 is inserted into the third position of the data table
stored in D0 to D4 when X010 is set to ON.
When the amount of data stored exceeds "7", however, the FINS instruction is not executed.
(The device range used in the data table is D0 to D7.)
[Structured ladder/FBD]
[ST]
X010
AND<
EN
s1
s2
ENO
D0
K7
AND<=
EN
s1
s2
ENO
K0
D0
FINSP
EN
s
n
ENO
d
D100
K3
D0
The AND compare instruction (AND<= , AND< ) is not available in ST.
Data table
4444
-123
4
1234
5000
0
0
Data table
range
Device range
used in data table
Data table
+1
Data table range
Number of stored data
0
4444
-3210
5
1234
-123
5000
0
0
X010:ON
D0
D1
D2
D3
D4
D5
D6
D7
-3210
D100
Number of
stored data
D0
D1
D2
D3
D4
D5
D6
D7
When "n" is "3"