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 #472 background imageLoading...
Page #472 background image
470
VAL, VALP, DVAL, DVALP
(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 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.
(8) In cases where the character string designated by contains "20
H
" (space) or "30
H
" (0) between the sign and the first
numerical value other than "0", these "20
H
" and "30
H
" are ignored in the conversion into a BIN value.
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.
D1
D1
D2
S
8
2
Total number of digits
Number of digits
in decimal fraction
BIN data
12
Ignored
3
.4
5
12
3
4
5
7
4
Total number of digits
Number of digits
in decimal fraction
BIN data
0
.
Ignored
00
12
12
Sign
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
D
2
D
2
b8 b7 b0b15
S
S
D1
D2

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