Mitsubishi Electric MELSEC-Q/L Programming Manual page 505

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents