Mitsubishi MELSEC Q Series Programming Manual page 588

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

Advertisement

VAL(P),DVAL(P)
(8) In cases where the character string designated by
between the sign and the first numerical value other than "0", these "20
ignored in the conversion into a BIN value.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The number of characters in the character string designated by
shown below:
When VAL instruction is in use ........... From 2 to 8 characters
When DVAL instruction is in use ........ From 2 to 13 characters
• The number of characters in the decimal fraction portion of the character string
designated by
When VAL instruction is in use ........... 0 to 5
When DVAL instruction is in use ........ 0 to 10
• The total number of characters in the character string designated by
characters in the decimal fraction part stand in a relationship that is outside the range
indicated below:
Total number of characters minus 3 is equal to or greater than the number of characters in
the decimal fraction part.
• An ASCII code other than "20
• An ASCII code other than from "30
digit for one of the individual numbers.
• There has been more than one decimal point set in the value.
• The value of the BIN value when converted falls outside the following ranges:
When VAL instruction is in use ...........
When DVAL instruction is in use ........
• No "00
device number of the relevant device.
7-214
6 5 4 3 .
2 1
Ignored
0
.
0 0 0 5 4 3 2 1
Sign
Ignored
falls outside the ranges shown below:
S
" or "2D
H
" is set within the range from the device number designated by
H
contains "20
S
Total number of digits
12
Number of digits
2
in decimal fraction
BIN data
6 5 4 3 2 1
Total number of digits
11
Number of digits
8
in decimal fraction
5 4 3 2 1
BIN data
" has been set for the sign.
H
" to "39
" or "2E
" (decimal point) has been set as a
H
H
H
32768 to 32767
2147483648 to 2147483647
" (space) or "30
" (0)
H
H
" and "30
" are
H
H
falls outside the ranges
S1
(Error code: 4100)
(Error code: 4100)
and the number of
S
(Error code: 4100)
(Error code: 4100)
(Error code: 4100)
(Error code: 4100)
(Error code: 4100)
to the last
S
(Error code: 4101)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents