Chapter 6 Instruction Details
XBC E-Type Main Unit
6-248
Ver. 1
2) DVAL (Value)
(1) Saves specified string S converted to Binary data in D1, and saves converted data in D2.
(2) ASCII string range is h30 ~ h39. Error Flag will be set for others than sign and decimal point. In DVAL,
convertible range of S is –2147483648 ~ 2147483647.
3) Program Example
P00000
VAL P1000 P1100 P1200
Note
1. Only +, -, . (point), space, number are available for VAL’s character string
2.If there is space before number or point hehind the character string starting with a sign (+, -), it works normally.
3. If there is space after the number, error appears. And if there is a point without the number, it is considered that
there is 0 in front of the point.
4. If you use only point, sign (+, -) and space, error appears.
Example of permission) ___.123, __0.001, __+__1.33, -__.4 ( _: means space)
Example of error) 1.24__, 1_23, +-0, __.__ and .(point), +, - and etc are used solely
Decimal places
b15
b8
b0
b7
It is the end of string
BIN 32-bit
S
S +1
S +2
S +3
S +4
1
st
string ASCII code
ASCII code of Sign
3
rd
string ASCII code
5
th
string ASCII code
7
th
string ASCII code
2
nd
string ASCII code
4
th
string ASCII code
6
th
string ASCII code
9
th
string ASCII code
11
th
string ASCII code
00H
8
th
string ASCII code
10
th
string ASCII code
12
th
string ASCII code
Integer disregarding decimal point
D2+1
D2
D1
S
ign
1
st
tex
t
2
nd
te
xt
12
th
tex
t
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...