172
4
4 Instructions4.5.2 Data Transfer
◆
Example:
10
3
10
2
10
1
10
0
10
3
10
2
10
1
10
0
D8 (binary 16-bit)
D8 (BCD 4-bit)
(Automatic conversion)
D2 (BCD 4-bit)
D2 (binary 16-bit)
(Automatic conversion)
(Bit shift)
When M4 = 0, the calculation is as follows:
D8 (hexadecimal 4-bit)
D2 (hexadecimal 4-bit)
(Bit shift)
When M4 = 1, the calculation is as follows:
(Unchanged)
(Unchanged)
(Unchanged)
(Unchanged)
Assume that D8 = K1234 and D2 = K5678. When M8168 = OFF (BCD mode enabled), the value in D2
changes to K5128 if M2 is set to ON.
When M8168 = ON (BIN mode enabled) with D8 = H04D2 = K1234 and D2 = H162E = K5678, then D2 =
H104E = K4174 if M2 is set to ON.
BMOV: Batch data transfer
◆
Overview
When driving conditions are met, the BMOV instruction transfers the data of n registers from head address
S to the n registers from head address D.
BMOV S D
n
Batch data transfer Applicable model:
H3U
S
Data source
head address
Head address of word elements that store the data to be
transferred in batches
16-bit instruction (7
steps)
BMOV: Continuous
execution
BMOVP: Pulse
execution
D
Transfer
destination
head address
Head address of word elements that store the data
arriving at a destination
n Data length
Number of word elements whose data will be transferred
in batches
◆
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.