Wtob, Wtobp Data Dissociation In Byte Units; Btow, Btowp Data Linking In Byte Units - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

WTOB, WTOBP, BTOW, BTOWP
[Operation]
D10
0 0 0 1 0 1 1 0 0 1 1 0 1 1 0 0
D11
0 1 0 1 1 1 1 0 1 0 0 0 1 1 0 1
0 0 1 1 1 0 1 1 0 0 1 0 1 1 0 0
D12
The data in these bits is ignored.
7.5.9
WTOB, WTOBP
Data dissociation in byte units
7.5.9
BTOW, BTOWP
Data linking in byte units
WTOB, WTOBP, BTOW, BTOWP
WTOB, BTOW
WTOBP, BTOWP
: Head number of the devices where data to be dissociated/linked in byte units is stored (BIN 16 bits)
S
: Head number of the devices where the result of dissociated/linking in byte units will be stored (BIN 16 bits)
D
n
: Number of byte data to be dissociated/linked (BIN 16 bits)
Setting
Internal Devices
Data
Bit
––
S
––
D
n
Function
WTOB
(1) Dissociates n-bytes of the 16-bit data stored into the area starting from the device number designated by
them following the device designated by
b15
S
Upper byte
Upper byte
S
+1
n
-1) *1
S
+(
Upper byte
2
*1: Fractions that follow the decimal
point are rounded up.
For example, if n
5, data through the lower 8 bits of
b15
S
12
H
56
S
+1
H
FE
+2
H
S
Ignored when n=5
368
b3
b0
4 bits
b2 b0
3 bits
b5
b0
6 bits
D0
0 0 0 1 0 1 1 0 0 1 0 1 1 1 0 0
Filled with 0s.
Command
Command
R, ZR
Word
Bit
.
D
b8b7
Lower byte
Lower byte
Lower byte
b8b7
b0
39
H
78
H
DC
H
b12
b7
b6
b4
b3
b0
High
Basic
performance
indicates an instruction symbol of WTOB/BTOW.
P
J
\
U
\G
Word
––
––
b0
b15
D
00
D
+1
00
00
D
+2
00
D
+3
D
+(n-2)
00
D
+(n-1)
00
to ( +2) would be stored from (
S
S
b15
D
00
H
00
D
+1
H
00
+2
D
H
00
+3
D
H
00
D
+4
H
Process
LCPU
Redundant Universal
n
S
D
n
S
D
Constants
Zn
K, H
, and stores
S
b8 b7
Data of lower byte
H
Data of upper byte
H
Data of lower byte
H
Data of upper byte
H
Data of lower byte
H
Data of upper byte
H
to
+4).
D
D
b8 b7
b0
39
H
12
H
78
H
56
H
DC
H
Other
––
––
––
b0
n bytes
When n=5
bytes

Advertisement

Table of Contents
loading

Table of Contents