107
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.8 Data Register and File Register [D]
1
In
troduct
io
n
2
Ov
e
rv
ie
w
3
In
st
ru
ct
ion
Li
st
4
D
evi
ce
s
in
De
ta
il
5
Speci
fied t
h
e
D
evi
ce &
C
onst
a
nt
6
Bef
o
re
Pr
ogr
a
m
m
ing
7
Bas
ic
In
st
ru
cti
o
n
8
FNC0
0
-FNC0
9
P
ro
g
ra
m F
lo
w
9
FNC1
0
-FNC1
9
M
ov
e
&
C
om
par
e
10
FNC
20-
FNC
2
9
Ar
ith.
&
Logi
c
O
per
at
io
n
• When a file register is monitored from peripheral equipment, the data register area [B] inside the data
memory is read.
When "file register device current value change", "file register device forced reset" or "PLC memory all
clear" is executed from peripheral equipment, the file register area [A] inside the program memory is
changed, and then the data is automatically transferred to the data register area [B].
Accordingly, when file register devices are overwritten, the program memory should be "built-in memory
(RAM)" or "memory cassette (flash memory) whose protect switch is set to OFF". (The memory cassette
(flash memory) cannot be overwritten from peripheral equipment if its protect switch is set to ON.)
2. File register
↔
Data register <updating the same number registers by BMOV (FNC 15)
instruction>
When a same file register is specified for both
and
in BOMV (FNC 15) instruction, this instruction
specifies the same-number register update mode and executes the following operation:
Read
•When X002 is set to ON while BMOV instruction direction
reverse flag M8024 is OFF, the contents of a file register
are transferred to the data register area [B] inside the data
memory as shown in the figure on the left.
Write
•When X003 is set to ON while BMOV instruction direction
reverse flag M8024 is ON, the contents of a data register
inside the data memory are written to the file register area
inside the program memory as shown in the figure on the
left.
• When updating the contents of a file register in the same-number update mode, make sure that the file
register numbers at
and
should be equal to each other. And make sure that the number of
transfer points specified by "n" does not exceed the file register area. If the number of transfer points
exceeds the file register area, an operation error occurs and the instruction is not executed.
• When
and
are indexed, the instruction is executed if the actual device number is within the
file register area and if the number of transfer points is within the file register area also.
S
D
Data register
[B]
Inside system
RAM
Inside built-in RAM
memory or
memory cassette
Program
memory
Program/
comment
File register
[A]
D1000
Data
memory
Data register
Data register
D7999
D1100
D 0
Read
D1100
D1499
D1499
Data
register
[B]
Inside system
RAM
Inside built-in RAM
memory or
memory cassette
Program
memory
Program/
comment
File
register
[A]
D1000
Data
memory
Data
register
Data register
D7999
D1100
D 0
Write
D1100
D1499
D1499
500 points
×
14 blocks
maximum
(7000 points
maximum)
500 points
×
14 blocks
maximum
(7000 points
maximum)
X002
OFF
M8024
BMOV
direction
inverse:
OFF
FNC 15
BMOVP
D1100
D1100
K400
S
D
n
Same file register number is specified.
X003
X001
M8024
BMOV
direction
inverse:
ON
FNC 15
BMOVP
D1100
D1100
K400
S
D
n
Same file register number is specified.
M8001
M8024
BMOV
direction
inverse:
OFF
Always OFF
during operation
ON
S
D
S
D