173
4
4 Instructions 4.5.2 Data Transfer
◆
Function
The BMOV instruction requires contact driving and has three operands. It copies the values of n variables
from head address S to n units from head address D.
The value of n ranges from 1 to 512.
When the special variable M8024 is set to 1, the batch transfer direction is inverted. That is, the values of
the n variables from head address D are copied to the n units from head address S.
M8000
ǒBMOV D0 D10 K4Ǔ
S D n
D0 䊻 D10
D1 䊻 D11
D2 䊻 D12
D3 䊻 D13
Operations completed:
When bit elements are used as the operands, S and D must have the same number of bits.
◆
Application
Operations completed:
M8000
ǒBMOV K1M0 K1Y0 K3Ǔ
S D n
M0 䊻 Y0
M1 䊻 Y1
M2 䊻 Y2
M3 䊻 Y3
M4 䊻 Y4
M5 䊻 Y5
M6 䊻 Y6
M7 䊻 Y7
M8 䊻 Y10
M9 䊻 Y11
M10 䊻 Y12
M11 䊻 Y13
n=3
FMOV: One-to-multiple data transfer
◆
Overview
When driving conditions are met, the FMOV instruction transfers the data in S to n registers from head
address D.
FMOV S D n
One-to-multiple
data transfer
Applicable model:
H3U
S Data source
Data to be transferred to n registers, or address
of the word element that stores the data
16-bit instruction
(7 steps)
FMOV:
Continuous
execution
FMOVP: Pulse
execution
32-bit instruction
(13 steps)
DFMOV:
Continuous
execution
DFMOVP: Pulse
execution
D
Transfer destination
head address
Head address of word elements that store the
data arriving at a destination
n Target number
Number of word elements that store the data
arriving at a destination
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
n X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.