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