Mitsubishi Electronics FX3UC Garage Door Opener User Manual


 
259
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.6 FNC 15 – BMOV / Block Move
1
Introduction
2
Overview
3
Instruction
List
4
Devices
in Detail
5
Specified the
Device &
Constant
6
Before
Programming
7
Basic
Instruction
8
FNC00-FNC09
Program Flow
9
FNC10-FNC19
Move & Compare
10
FNC20-FNC29
Arith. & Logic
Operation
5) Handling of the memory cassette
When changing the contents of file registers secured inside the memory cassette, confirm the following
conditions:
- Set the protect switch of the memory cassette to OFF.
- Do not turn OFF the power while the contents of file registers are changed.
If the power is turned OFF during the change, the data stored in file registers may be filled with unexpected
values, or a parameter error may occur.
6) Execution time for writing data to file registers
-In FX
3U/FX3UC PLCs
It takes 66 to 132 ms to write data in one continuous block (500 points) to the memory cassette (flash memory).
Execution of the program is paused during this period. Because the watchdog timer is not refreshed during this
period, it is necessary to take proper countermeasures such as inserting the WDT instruction into the sequence
program.
It takes longer time to write data to file registers stored in a memory cassette (flash memory) compared to writing
data to file registers stored in the built-in memory.
-In FX
3S/FX3G/FX3GC PLCs
It takes 80 ms to write data in one continuous block (500 points) to file registers.
Note that execution of the program is paused during this period, but the watchdog timer is automatically
refreshed.
The time for writing data is same between file registers stored in the built-in memory and file registers stored in a
memory cassette (EEPROM).
7) Allowable number of times of writing to the memory
Data can be written to the memory cassette up to 10,000 times, and to the memory (EEPROM) built in FX
3S/
FX
3G/FX3GC PLCs up to 20,000 times.
When a continuous operation type instruction is used for data writing in a program, data is written to the memory
in every operation cycle of the PLC. To prevent this, make sure to use a pulse operation type instruction
(BMOVP).
8) 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 only by peripheral equipment or BMOV
(FNC 15) instruction.
9) If a file register is not specified as the destination in BMOV (FNC 15) instruction, the file register is not accessed.
a) Outline of memory operation
b) Program example
When X000 is set to ON, the data register area [B] is read.
A file register can be specified as . But if the 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.
For the same-number register update mode of file registers, refer to Subsection 4.9.4.
Data register
[B]
Inside system
RAM
Inside built-in memory
or memory cassette
Program
memory
Program/
comment
File register
[A]
D1000
Image
memory
Data register
Data register
D7999
D599
D 0
D200
Read
D1499
D1100
500 points ×
14 blocks
maximum
(7000 points
maximum)
X000
FNC 15
BMOVP
D1100 D200 K400
n
S
D
D
S
S
D
S