EasyManua.ls Logo

Mitsubishi MELSEC-Q/L

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
Loading...
455
DABIN, DABINP, DDABIN, DDABINP
1
2
3
4
4
6
7
8
7.11 Character string processing instructions
7.11.4 DABIN, DABINP, DDABIN, DDABINP
: 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
DABIN
(1) Converts decimal ASCII data stored into 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 "-25108
H
" is specified for the area starting from , the conversion result is stored at as
shown below:
(2) The ASCII data designated by from to +2 can be in the range of from -32768 to 32767
(3) The sign "20
H
" will be stored if the BIN data is positive, and the sign "2D
H
" will be stored if it is negative.
(If other than "20
H
" and "2D
H
" is set, it will be processed as positive data.)
(4) ASCII code can be set for each position within the range from "30
H
" to "39
H
".
(5) If the ASCII code set for individual positions is "20
H
" or "00
H
," it will be processed as "30
H
".
DDABIN
(1) Converts decimal ASCII data stored into the area starting from the device number designated by into BIN 32-bit data,
and stores it in the device number designated by .
7.11.4 DABIN, DABINP Conversion from decimal ASCII to BI N 16-bit data
DDABIN, DDABINP Conversion from decimal ASCII to BIN 32-bit data
7.11.4
DABIN, DABINP, DDABIN, DDABINP
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
$
Other
Bit Word Bit Word
–– –– ––
–– ––
Process
High
performance
Redundant
Universal
LCPU
Basic
Command
Command
P
D
S
D
S
DABIN, DDABIN
DABINP, DDABINP
indicates an instruction symbol of DABIN/DDABIN.
S
D
S
D
S
D
b15 b0
BIN 16 bits
+1
Sign data
ASCII code for ten-thousands place
ASCII code for hundreds place
b15 b8
b7
b0
ASCII code for tens placeASCII code for units place
S
D
S
+2
S
ASCII code for thousands place
S
D
b15 b0
+1
2D
H
( )32
H
(2)
35
H
(5)31
H
(1)
b15 b8b7 b0
+2
30
H
(0)38
H
(8)
25108
S
S
S
D
S S
S
D
+1
Sign data
ASCII code for billions place
ASCII code for hundred-millions place
ASCII code for ten-millions place
b15 b8
b7
b0
+2
ASCII code for millions place
ASCII code for hundred-thousands place
ASCII code for ten-thousands place
ASCII code for thousands place
+3
ASCII code for hundreds placeASCII code for tens place
ASCII code for units place
(Ignored)
+4
+5
Upper 16 bits
Lower 16 bits
BIN 32 bits
+1
b31 b16b15 b0
S
DS
S
S
S
S
D

Table of Contents

Related product manuals