Mitsubishi Electric MELSEC-Q Structured Programming Manual page 103

Hide thumbs Also See for MELSEC-Q:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
[Device & Common]
3. Data register → File register <Writing by the BMOV instruction>
When a file register (D1000 or later) is specified as the destination of the BMOV instruction, it is possible to
directly write data to the file register area [A] in the program memory.
FX
PLCs do not support this function.
0N
In FX
/FX
PLCs, the special device M8198 reverses the BMOV instruction execution direction.
U
2C
Built-in memory
or
memory cassette
Program
memory
Program/
comment
D1000
File register
500 points
14 blocks
[A]
(7000 points)
maximum
• By controlling the BMOV instruction execution direction reverse flag M8024 in the BMOV instruction, data
can be transferred in both directions in one program (as shown in the figure below).
X001
X000
M8001
Always OFF
during operation
System RAM
D 0
D200
Data
memory
D599
Data register
D1100
D1100
Data register
Write
[B]
D1499
D1499
Data register
D7999
BMOV instruction
M8024
execution direction inverse flag
BMOVP
EN
ENO
s
d
D1100
D200
K400
n
BMOVP instruction
M8024
execution direction reverse flag: OFF
Write
OFF
X001
EN
s
D200
n
K400
• When X001 is set to ON, data is transferred to the data
register area [B] and file register area [A] as shown in the
left figure.
If the protect switch of the memory cassette is set to ON
and data cannot be written to the file register area [A],
data is written to only the data register area [B].
When a file register is specified in the output variable
in a general instruction, data is transferred only to
the data register area [B].
• A file register can be specified in the input variable
However, if a same number is specified in both the input
variable
and the output variable
number register update function is activated.
→ For the same-number register update function,
Batch transfer of data registers
s
d
M8024(OFF):D1100
D200
Batch transfer of data registers
s
d
and writing to file registers
M8024(ON) :D1100
D200
2 Devices in Detail
2.8 Data Register and File Register [D]
M8024
BMOVP
ENO
d
D1100
, the same-
refer to the previous page.
101
1
2
3
4
.
5
6
7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-lMelsec-fFx3sFx3gFx3gcFx3u ... Show all

Table of Contents