Mitsubishi Electronics QCPU Welding System User Manual


  Open as PDF
of 1204
 
7-86
WTOB(P),BTOW(P)
(2) Setting the number of bytes with n automatically determines the range of the 16-bit data
designated by and the range of the devices to store the byte data designated by .
(3) No processing will be conducted when the number of bytes designated by n is "0".
(4) The "00
H" code will automatically be stored at the upper 8 bits of the byte storage device
designated by .
(5) Even though the range of the device with the data to be devided ( to +( -1)) is the
same as the range of the device with the devided data ( to +(n-1)), the instruction
operates correctly.
BTOW
(1) Links the lower 8 bits of the 16-bit data in n words stored in the area starting from the device
designated by in 1-word units and stores it into the area starting from the device
designated by . The upper 8 bits of n-word data stored in the area starting from the device
designated by will be ignored. Further, if n is an odd number, 0 is stored at the upper 8
bits of the device where the nth byte data is stored.
For example, if n 5, the lower 8 bits of data from to ( +4) are linked and stored at
to ( +2).
(2) Setting the number of bytes with n automatically determines the range of the byte data
designated by and the range of the devices to store the linked data designated by .
(3) No processing will be conducted when the number of bytes designated by n is "0".
S
D
D
31H
32H
33H34H
35H36H
D13
D14
31
H
00H
32H00H
33H00H
34H00H
36H00H
35H00H
D12
D13
D14
D16
D12
D15
D11
b8 b0
Stores 00H.
b8 b0
b15 b7
b15
b7
S S
n
2
D D
S
D
S
b15 b8b7 b0
b15 b8 b7 b0
S
S
S Data of the 1st byte
n bytes
Data of the (n-1) byte
Upper bytes are ignored.
S
S
D
D
n
2
+( -1)
D
*1: Figures after the decimal point are rounded up.
*1
+1
+2
+3
+(n-1)
Data of the 2nd byte
Data of the 3rd byte
Data of the 4th byte
Data of the nth byte
Data of the 1st byte
Data of the 3rd byte
Data of the 2nd byte
Data of the 4th byte
Data of the nth byte
S S
D
D
If n = 5
b15 b8b7 b0
b15 b8 b7 b0
S
S
S
S
D
D
12
H
34
H
56
H
78
H
12
H
34
H
56
H
78
H
00
H
00
H
00
H
00
H
FE
H
00
H
FE
H
00
H
00H is set.
S
D
+1
+1
+2
+2
+3
+4
S
D