7 Applied Instructions
7.2 Move and Compare
164
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
2. Cautions on use
1) When updating the contents of a file register with a same number (same-number update mode), make
sure that the file register number is equivalent between and .
2) When using file registers in the same-number update mode, make sure that the number of transfer points
specified by "n" does not exceed the file register area.
3) If the file register area is exceeded while file registers are used in the same-number update mode, an
operation error (M8067) is caused and the instruction is not executed.
4) In the case of indexing (in the same-number update mode)
When and are modified with index, the instruction is executed if the actual device number is
within the file register area and the number of transfer points does not exceed the file register area.
5) Handling of flash memory
When changing the contents of file registers secured inside the flash memory, observe the following
condition:
- Set the protect switch to OFF in the optional memory.
- When writing data using a continuous operation type instruction in a program, data is written to the flash
memory in every operation cycle of the PLC.
To prevent this, as the flash memory has a limit to the number of times of writing operations, be sure to
use a pulse operation type instruction (BMOVP) so that the number of times of writing is reduced.
- It takes 66 to 132 ms to write data of one serial block (500 points) to the flash memory.
Execution of the program is paused during this period. Because the watchdog timer is not refreshed at
this time, it is necessary to take proper countermeasures such as insertion of WDT instruction in a user
program.
6) File register operation
File registers are secured inside the built-in memory or memory cassette.
Different from general data registers, file registers can be read and written directly only by peripheral
equipment or BMOV instruction.
7) If a file register is not specified as the destination in BMOV instruction, the file register is not accessed.
a) Outline of memory operation
b) Program examples
When X000 is set to ON, the data register area [B] is read.
A file register can be specified as . But if a same number with is specified, the same-number
register update mode is selected.
However, even if a file register having different number is specified for and respectively,
data cannot be transferred from the file register area to another file register area. In such a case, read
the contents of a file register specified as in the same-number register update mode to the data
register area [B] once, and then write the data.
Inside built-in RAM
or
optional cassette
D1000
Image
memory
D7999
D599
D 0
D200
D1499
D1100
Data register
[B]
Inside system RAM
Program
memory
Program/
comment
file
register
Data register
Data register
Read
500 points 14 blocks
maximum
(7000 points maximum)
[A]
X000
D1100 D200
BMOVP
EN
s
n
ENO
d
K400
[Structured ladder]
[ ST ]
BMOVP(X000, D1100, K400, D200);