EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 675

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.21 Data Operation 3
673
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
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]
[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
IF(( IF(AND<=(X010,K0,D0)THEN AND<(TRUE,D0,K7)))THEN FINSP(TRUE,D100,K3,D0);
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"

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals