257
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.6 FNC 15 – BMOV / Block Move
1
Introdu
ction
2
Ov
ervi
ew
3
Instruction
Li
st
4
D
evices
in Det
ail
5
Specifi
ed the
De
vice
&
C
onst
ant
6
Bef
ore
Pr
og
ra
mmi
ng
7
Bas
ic
Instruction
8
FN
C00-FN
C0
9
Program Fl
ow
9
FNC
10-FN
C19
Mov
e & Com
pare
10
FNC
20-FNC
29
Arith. & Lo
gi
c
Operati
on
9.6.1
Function of transfer between file registers and data registers
BMOV (FNC 15) instruction has a special function for file registers (D1000 and later).
→
For details on file registers, refer to Section 4.8.
1. What are file registers
In the parameters, D1000 to D7999 can be set as file registers, and written to and read from the program memory
area.
1) Outline of setting
File registers (D1000 to D7999) do not exist in the initial status. They are valid only when some number of file
registers are secured by parameter setting in a programming tool.
2) Number of file registers
In parameter setting, set 500 file registers as 1 block.
1 to 14 blocks (each of which has 500 file registers) can be set.
1 block occupies 500 steps in the program memory area.
3) Difference between BMOV (FNC 15) instruction and other instructions
The table below shows the difference between BMOV (FNC 15) instruction and other instructions with regard to
file registers (D1000 and later).
When restoring the power, data registers set as file registers are automatically copied from the file register area
[A] to the data register area [B].
2. Cautions on use
1) When updating the contents of a file register with the same number (same-number register update mode), make
sure that the file register number is equivalent between
and
.
2) When using file registers in the same-number register 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 register update mode, an
operation error (M8067) is caused and the instruction is not executed.
4) In the case of indexing (in the same-number register update mode)
When
and
are indexing 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.
Instruction
Contents of transfer
Remarks
BMOV instruction
Can read from and write to the file register area [A]
inside the program memory.
−
Other applied
instructions
Can read from and write to the data register area
[B] inside the program memory in the same way as
general data registers.
Because the data register area [B] is provided inside the
system RAM in PLCs, its contents can be arbitrarily
changed regardless of the memory cassette format
Data register
[B]
Inside system
RAM
Inside built-in memory
or memory cassette
Program
memory
Program/
comment
File register
[A]
D1000
500 points
×
14 blocks
maximum
(7000 points
maximum)
When power
is turned ON
When PLC
mode is
changed from
STOP to
RUN
Data
memory
Data register
Data register
D7999
D1000
D 0
Read
Write
The remaining area can be used as general purpose
data registers.
Devices D1000 and later specified as
operands in applied instructions other
than BMOV (FNC 15) , indirectly
specified values for timers or
counters or devices in RST
instruction are read from and written
to the area [B] in the same way as
general data registers.
S
D
S
D
Содержание FX3G SERIES
Страница 1: ...FX3G FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS PROGRAMMING MANUAL Basic Applied Instructions Edition ...
Страница 2: ......
Страница 947: ......