EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 505

Mitsubishi Electric MELSEC-Q/L
1084 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 APPLICATION INSTRUCTIONS
7.7 Data Table Operation Instructions
503
7
Program example
The following program stores the data stored last in the data table R0 to R7 at D0 when X10 is turned ON.
The following program stores the data at D0 in the data table D38 to D43 when X1C is turned ON, and when the number of
data stores in the table reaches 5, turns X1D ON, and stores the data stored last in the data table to R0.
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
Step
Instruction
Device
R1
R2
R3
R4
Data table
-123
1400
5
1234
5432
0
3000
R5
0R6
R7
R0
R1
R2
R3
R4
Data table
-123
1400
4
1234
5432
0
R5
0R6
R7
R0
D0
0
3000
Stores 0.
Step
Instruction
Device
Data table
123
1000
0
1234
55
4
0
D42
D41
D43
D39
D40
D38
D44
X1C: ON
0D45
4444D0
Data table
123
1000
4444
1234
55
5
0
D42
D41
D43
D39
D40
D38
D44
0D45
Data table
0
55
4
0
D42
D41
D43
D39
D40
D38
D44
0D45
1234
R0
1000
123
4444
X1D: ON
Since the number of
stored data block is 4, the
FIFWP instruction is
executed when XIC turns ON.
Executes the FPOPP
instruction when D38=5.
Data table
range

Table of Contents

Related product manuals