EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC-Q/L

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #459 background imageLoading...
Page #459 background image
457
HABIN, HABINP, DHABIN, DHABINP
1
2
3
4
4
6
7
8
7.11 Character string processing instructions
7.11.5 HABIN, HABINP, DHABIN, DHABINP
(2) The following program converts the decimal, 10-digit ASCII data and sign set at D20 through D25 to BIN values and
stores the result at D10 and D11.
[Ladder Mode] [List Mode]
[Operation]
: 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)
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
".
7.11.5 HABIN, HABINP Conversion from hexadecimal ASCII to BIN 16-bit data
DHABIN, DHABINP Conversion from hexadecimal ASCII to BIN 32-bit data
7.11.5
HABIN, HABINP, DHABIN, DHABINP
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
$
Other
Bit Word Bit Word
–– –– ––
–– ––
Step Instruction Device
D21
D22
D23
20
H
(space)20
H
(space)
20
H
(space)20
H
(space)
b15 b8
b7
b0
33
H
(3)39
H
(9)
D20
36
H
(6)38
H
(8)
33
H
(3)37
H
(7)
30
H
(0)
D24
D25
D11
BIN value
D10
(Regarded as +0003968370)
396 8370
3968370
Process
High
performance
Redundant
Universal
LCPU
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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-Q/L and is the answer not in the manual?

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals