Mitsubishi MELSEC Q Series Programming Manual page 529

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

Program Example
(1) 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
3000
R5
R6
0
R7
0
(2) 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
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
Data table
R0
4
R1
-123
R2
1400
R3
1234
R4
5432
0
R5
Stores 0.
R6
0
R7
0
D0
3000
[List Mode]
Step
Instruction
Data table
D38
4
Since the number of
D39
1234
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
FPOP(P)
Device
Device
7-155
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents