EasyManua.ls Logo

Vigor VS Series - Page 290

Vigor VS Series
484 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
284
D
n
S
B T O W P
FNC
142
1
2
M
3
n
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
S
D
If = 0, the instruction will not execute.
n
BTOWP D10 D20 K5
X0
S
D
n
S : the head ID of source devices to be combined
D : the head ID of storage devices for the combined result
n : the number of bytes to be combined
This instruction takes all the lower bytes of the devices that started from the to get bytes of data, then
restructures and stores the data to continuous 16-bit words that started from .
S
D
n
00H
12H
70H
FFH
36H
21H
43H
65H
87H
A9H
D10
D11
D12
b15 b0b8
b7
Contents of every upper byte
will be ignored
X0=OFF ON
D13
D14
43H
21H
65H
b15 b0b8
b7
87H
00H A9H
S
5
n
D20
D21
D22
D
If = 6, the execute result is shown below.
n
00H
12H
70H
FFH
18H
21H
43H
65H
87H
CBH
D10
D11
D12
b15 b0b8
b7
X0=OFF ON
D13
D15
43H
21H
65H
b15 b0b8
b7
87H
CBH A9H
S
6
n
D20
D21
D22
D
36H A9H
D14
Operand
Devices
Combine Byte to Word
n
0
S occupies n components
D occupies (n/2) components
When X0 = “OFF” “ON”, the instruction takes 5 bytes of data from those lower bytes within D10~D14, to merge
and store the data into 16-bit word components D20~D22. Since it is no data for the upper byte of D22, this byte
will be filled in 00H.
Source data Executive result
Fill in 00H
Source data Executive result
Contents of every upper byte
will be ignored

Table of Contents