Справочник Пользователя для Mitsubishi Electronics QCPU

Скачать
Страница из 1204
7-186
BINHA(P),DBINHA(P)
7.11.2  
Conversion from BIN 16-bit or 32-bit data to hexadecimal 
ASCII (BINHA(P),DBINHA(P))
BINHA(P),DBINHA(P)
Function
BINHA
(1) Converts the individual digit numbers of hexadecimal notation of the BIN 16-bit data 
designated by 
 into ASCII codes, and stores the results into the area starting from the 
device designated by 
.
For example, if 02A6
H
 has been designated by 
, it will be stored as follows:
(2) The BIN data designated by 
 can be in the range from 0
H
 to FFFF
H
.
(3) The operation results stored at 
 are processed as 4-digit hexadecimal values.
For this reason, zeros which are significant digits on the left side of the value are processed 
as "0".  (No zero suppression is conducted.)
(4) The data to be stored at the device designated by 
+2 differs depending on the ON/OFF 
status of SM701 (number of characters to output select signal).
When SM701 is OFF......Stores "0"
When SM701 is ON .......Does not change
: BIN data to be converted to ASCII (BIN 16/32 bits)
: Head number of the devices where the conversion result will be stored (character string)
Setting 
Data
Internal Devices 
R, ZR
J
\
U
\G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
Process
High
performance
Redundant Universal
Basic
Command
Command
P
S
D
S
D
BINHAP, DBINHAP
BINHA, DBINHA
indicates an instruction symbol of BINHA/DBINHA.
S
D
S
D
S
D
+1
ASCII code for the 4th digit
ASCII code for the 3rd digit
ASCII code for the 2nd digit
ASCII code for the 1st digit
b15
b8b7
b0
+2
0
b15
b0
BIN 16-bit data
S
D
D
D
Only when 
SM701 is OFF
S
D
+1
30
H
 (0)
32
H
 (2)
41
H
 (A)
36
H
 (6)
b15
b8 b7
b0
+2
00
H
b15
b0
02A6
H
S
D
D
D
S
D
D