Mitsubishi Electronics QCPU Welding System User Manual


  Open as PDF
of 1204
 
7-192
DABIN(P),DDABIN(P)
7.11.4
Conversion from decimal ASCII to BIN 16-bit and 32-bit data
(DABIN(P),DDABIN(P))
DABIN(P ),DDABIN(P)
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
".
: 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
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