Mitsubishi Electronics QCPU Welding System User Manual


  Open as PDF
of 1204
 
7-214
VAL(P),DVAL(P)
DVAL
(1) Converts the character string stored in the area starting from the device designated by to
BIN 32-bit data, and stores the digits numbers and BIN data in and .
For conversions from character strings to BIN, all data from the device number designated
by to the device number where "00
H
" is stored will be processed as character strings.
(2) The total number of characters in the character string indicated by is from 2 to 13.
(3) From 0 to 10 characters in the character string indicated by can be the decimal fraction
part.
However, this number must not exceed the total number of digits minus 3.
(4) The range of the numerical character string that can be converted to BIN value is from
2147483648 to 2147483647, excluding the decimal point.
Numerical value character strings, excluding the sign and the decimal point, can be
designated only within the range from "30
H
" to "39
H
".
(5) The sign "20
H
" will be stored if the numerical value is positive, and the sign "2D
H
" will be
stored if it is negative.
(6) "2E
H
" is set for the decimal point.
(7) The total number of digits stored at D1 amounts to all characters expressing numerical
values (including signs and decimal points).
The characters following the decimal point stored at +1 include the number of characters
from "2E
H
" (.) onward.
The BIN data stored at is the character string ignoring the decimal point that has been
converted to BIN data.
S
D1 D2
S
Indicates the end of character string
ASCII code for the sign
ASCII code for the 1st character
ASCII code for the 2nd character
ASCII code for the 3rd character
ASCII code for the 4th character
00
H
ASCII code for the 5th character
ASCII code for the 6th character
ASCII code for the 7th character
+4
+3
+2
+1
+5
+6
ASCII code for the 8th character
ASCII code for the 9th character
ASCII code for the 10th character
ASCII code for the 11th character
ASCII code for the 12th character
.
Sign
1st
char-
acter
2nd
char-
acter
12th
char-
acter
Integer value ignoring decimal point
+1
B
IN 32 bits
2D
H
( )31
H
(1)
32
H
(2)33
H
(3)
b8
b7
b0
34
H
(4)35
H
(5)
2E
H
(.)36
H
(6)
37
H
(7)38
H
(8)
.
+1
00
H
10
3
1234
5
678
+1
+1
Total number of digits
Number of digits
in decimal fraction
12
3
4
5678
S
D1
D2
S
S
S
S
S
S
D2
D1
D1
D1
+4
+3
+2
+1
+5
S
S
S
S
S
S
b15
D2
D2
b8b7 b0b15
S
S
D1
D2