Conversion From Decimal Ascii To Bin 16-Bit And 32-Bit Data Dabin(P),Ddabin(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7.11.4
Conversion from decimal ASCII to BIN 16-bit and 32-bit data
(DABIN(P),DDABIN(P))
DABIN(P),DDABIN(P)
DABIN,DDABIN
DABINP,DDABINP
Setting
Data
S
D
Function
DABIN
(1) Converts decimal ASCII data stored into the area starting from the device number
designated by
For example, if the ASCII code " 25108
conversion result is stored at
(2) The ASCII data designated by from
(3) The sign "20
is negative.
(If other than "20
(4) ASCII code can be set for each position within the range from "30
(5) If the ASCII code set for individual positions is "20
Command
Command
: ASCII data to be converted to BIN value or head number of the devices where the ASCII data is stored
S
(character string)
: Head number of the devices where the conversion result will be stored (BIN 16/32 bits)
D
Internal Devices
R, ZR
Bit
Word
––
into BIN 16-bit data, and stores it in the device number designated by
S
b15
b8b7
S
ASCII code for ten-thousands place
Sign data
S
+1
ASCII code for hundreds place
ASCII code for thousands place
S
+2
ASCII code for units place
ASCII code for tens place
D
b15
b8b7
32
(2)
S
H
+1
31
(1)
S
H
S
+2
38
(8)
H
" will be stored if the BIN data is positive, and the sign "2D
H
" and "2D
" is set, it will be processed as positive data.)
H
H
High
Basic
performance
indicates an instruction symbol of DABIN/DDABIN.
J
\
U
\G
Bit
Word
––
b0
b15
D
" is specified for the area starting from
H
as shown below:
b0
2D
( )
b15
H
D
35
(5)
H
30
(0)
H
to
+2 can be in the range of from
S
S
" or "00
H
DABIN(P),DDABIN(P)
Process
Redundant Universal
S
D
P
D
S
Constants
Zn
$
––
b0
BIN 16 bits
, the
S
b0
2
5
1
0
8
32768 to 32767
" will be stored if it
H
" to "39
".
H
H
," it will be processed as "30
H
1
2
LCPU
3
4
6
6
7
Other
––
8
––
.
D
".
H
7-191

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents