Mitsubishi MELSEC-Q/L Programming Manual page 123

Table of Contents

Advertisement

(b) Restrictions
The restrictions when specifying file registers to refresh devices are as follows.
1) On QCPU, Refresh cannot be performed correctly if the use of file register which has the same name as the
program is specified by the PLC parameter.
When the file register which has the same name as the program is used, refresh is performed to the data of the
file register having the same name as the program that is set at the last number in the [Program] tab page of
PLC parameter. To read/write the refresh data, specify the file register to the refresh device after switching the
file register to the corresponding one with the QDRSET instruction.
2) Refresh cannot be performed correctly if the file name of file register or the drive number is changed by the
QDRSET instruction. (QDRSET instructions are not available with LCPU.)
If the file name of file register or the drive number is changed by the QDRSET instruction, link refresh is
performed to the data of the setting file at the time of the END instruction execution. To read/write the refresh
data, specify the file register of the setting file at the time of the END instruction execution.
If the drive number is changed by the QDRSET instruction when "ZR" is specified for the device in the CPU
modules other than the Universal model QCPU, an error (LINK PARA ERROR (3101)) occurs. (Note that an
error does not occur when "R" is specified for the device.)
3) When a block number is switched by the RSET instruction, refresh is performed to the data of the file register
(R) in the switched block number.
When a block number is switched by the RSET instruction, refresh is performed to the data of the file register
(R) in the block number at the time of the END instruction execution. To read/write the refresh data, specify the
file register of the block number at the time of the END instruction execution.
(7) Precautions when file registers in the flash memory are used
This section explains the precautions for use of the flash memory.
(a) The following flash memory can be used.
• Flash card
(b) File registers in the flash memory can be only read in a sequence program.
(Write to the flash memory cannot be performed in a sequence program.)
Sequence program
BMOV
BMOV
When using the flash memory for the file registers, write data in advance.
Using GX Developer or GX Works2, write data to the flash card.
D100 R0
K10
R100 D0
K10
Flash memory
Write
File register
Read
2
3
4
5
6
7
8
121

Advertisement

Table of Contents
loading

Table of Contents