Mitsubishi Electric MELSEC-Q/L Programming Manual page 503

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

Advertisement

Program example
• The following program stores the R1 data from the table R0 to R7 at D0 when X10 is turned ON.
[Ladder Mode]
[Operation]
Data table
R0
5
Number of stored data blocks
R1
123
R2
55
R3
4321
R4
123
R5
234
R6
0
R7
0
• The following program stores the data at D0 in the data table D38 to D43, and, when the table stores 5 data, stores the data
at D39 of the data table in R0, when X1C is turned ON.
[Ladder Mode]
[Operation]
Data table
Number of
stored
D38
4
D38
data tables
D39
1234
D39
D40
55
D40
D41
1000
D41
Data
D42
123
D42
table
D43
0
D43
D44
0
D44
D45
0
D45
D0
4444
Data table
R0
4
R1
55
R2
4321
R3
123
R4
234
R5
0
R6
0
R7
0
D0
123
Data table
Number of
stored
5
D38
data tables
1234
D39
55
D40
1000
D41
123
D42
4444
D43
0
D44
0
D45
Executes the FIFRP
R0
instruction when D38=5.
[List Mode]
Step
Instruction
Number of stored data blocks
Data table
[List Mode]
Step
Instruction
Data table
Number of
stored
4
data tables
55
Executes the FIFWP
1000
instruction when X1C
123
turns ON again.
4444
0
0
0
1234
7 APPLICATION INSTRUCTIONS
7.7 Data Table Operation Instructions
Device
Device
7
501

Advertisement

Table of Contents
loading

Table of Contents