EasyManua.ls Logo

Mitsubishi MELSEC Q Series - Page 711

Mitsubishi MELSEC Q Series
1296 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-337
RSET(P)
1
2
3
4
6
6
7
8
7.14 File register switching instructions
7.14.1 Switching file register numbers (RSET(P))
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.
• The block number designated by does not exist. (Error code: 4100)
• There is no file register for the specified block No. (Error code: 4101)
Program Example
(1) The following program compares R0 of block No. 0 and block No. 1.
[Ladder Mode]
[List Mode]
[Operation]
S
Designates block No. 0
Executes reading R0 of block No.0
Designates block No. 1
Executes reading R0 of block No.1
Compares the read values
Step Instruction Device
Y41 turns ON since D0<D1
756
Block No. 0
R3
R1
R2
R0
R4
R5
-7981
5001
128
-3216
9610
0
Block No. 1
R3
R1
R2
R0
R4
R5
3911
9330
-1762
756
-5
-3781
D0 D1
-3216

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Related product manuals