566
RSET, RSETP
7.14
File register switching instructions
: Block number data used to change the block number or the number of the device where the block number data is stored (BIN 16 bits)
F
unct
i
on
(1) Changes the file register block number used in the program to the block number stored in the device designated at .
Following the block number change, all file registers used in the sequence program are processed to the file register of
the block number after the change.
When switching block number from block No. 0 to block No. 1
When a file register (R) is refreshed and the block No. of the file register is switched with the RSET instruction, follow
restrictions.
For the restrictions on file registers, refer to Page 119, Section 3.10.
Operat
i
on
E
rror
(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.
RSET, RSETP
Switching file register block numbers
7.14.1
RSET, RSETP
• Universal model QCPU: Models other than Q00UJCPU
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The block number specified in does not exist.
––
––
––
––
4101
There is no file register for the specified block No.
––
––
––
––
Basic
Process
High
performance
Redundant Universal
LCPU
Ver.
RSET
RSETP
Command
Command
RS
ET
RS
ET
P
S
S
S
S
S
Example
Processing executed to file registers
Setting of a
block number
R0
R32767
R32767
R0
R32767
R0
S
Block
Block
Block
Presently
used file
register
File register
used after the
execution of
RSET
instruction
(
)
0
1
n
(
)
S