Mitsubishi MELSEC-Q/L Programming Manual page 424

Table of Contents

Advertisement

FPOP, FPOPP
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into
SD0.
Error
code
4100
The FPOP instruction was executed when the value of
The data table range exceeded the range of the corresponding device
4101
at the execution of the FPOP instruction.
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
R5
3000
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
422
Error details
was 0.
D
[List Mode]
Step
Data table
R0
4
R1
-123
R2
1400
R3
1234
R4
5432
R5
0
R6
0
R7
0
D0
3000
[List Mode]
Step
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.
Q00J/
Q00/
QnH
QnPH QnPRH
Q01
Instruction
Device
Stores 0.
Instruction
Device
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
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents