7-195
HABIN(P),DHABIN(P)
1
2
3
4
6
6
7
8
7.11 Character string processing instructions
7.11.5 Conversion from hexadecimal ASCII to BIN 16-bit and 32-bit data (HABIN(P),DHABIN(P))
7.11.5
Conversion from hexadecimal ASCII to BIN 16-bit and 32-bit data
(HABIN(P),DHABIN(P))
HABIN(P) ,DHABIN(P)
Function
HABIN
(1) Converts hexadecimal ASCII data stored in the area starting from the device number
designated by into BIN 16-bit data, and stores it in the device number designated by .
For example, if the ASCII code of 5A8D
H
is designated for the area starting from , the
operation result would be stored at in the following manner:
(2) The ASCII data designated by to +1 can be in the range of from 0000
H
to FFFF
H
.
(3) The ASCII codes can be in the range of "30
H
" to "39
H
" and from "41
H
" to "46
H
".
: ASCII data to be converted to BIN value or head number of the devices where the ASCII data is stored
(character string)
: Head number of the devices where the conversion result will be stored (BIN 16/32 bits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
$
Other
Bit Word Bit Word
–– –– ––
–– ––
Process
High
performance
Redundant
Universal
Basic
Command
Command
P
D
S
D
S
HABIN,DHABIN
HABINP,DHABINP
indicates an instruction symbol of HABIN/DHABIN.
S
D
S
D
S
D
b15 b0
BIN 16 bits
+1
ASCII code for the 4th digitASCII code for the 3rd digit
ASCII code for the 2nd digit
ASCII code for the 1st digit
b15 b8b7 b0
S
S
D
S
D
b15 b0
+1
35
H
(5)41
H
(A)
38
H
(8)44
H
(D)
b15 b7 b0
5A8DH
D
S
S
b8
S S