EasyManua.ls Logo

Vigor VS Series - Page 267

Vigor VS Series
484 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
261
Convert Character String to
BIN Floating Point
D E V A L P
S
D
1
2
M
3
FNC
117
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
S
D
2DH( ) 20H( ) 30H( 0) 31H( 1) 32H(2) 33H(3) 34H( 4) 35H(5) 36H(6) 37H(7)
00H
S
2EH(•)
123.4561
2
30
7
6
4
5
=(D101, D100)
D
The positive or negative sign:
the 20H or 2BH represents positive;
the 2DH represents negative.
The ineffective bytes
(space 20H and zero
30H) will be ignored
Only 6 digits will be taken, discards
the rest (the 7 is useless)
S : the head ID of the character string to be converted
D : the storage device for the BIN floating point result
DEVAL D0 D100
X0
D
This instruction will use the following ASCII conversion table:
S
This instruction uses a string started from the to perform the BIN floating point number conversion, then stores
the result into the device . The format of the source string can either use the decimal notation or the exponential
notation.
S
D
By the decimal notation:
2BH
(+)
S
1.23456E+2
1
2
30
7
6
4
5
=(D101, D100)
D
By the exponential notation:
E
0
2
20H
( )
D1
Lower
8 bits
D1
Upper
8 bits
D2
Lower
8 bits
D3
Lower
8 bits
D4
Lower
8 bits
D5
Lower
8 bits
D6
Lower
8 bits
D7
Lower
8 bits
30H
(0)
31H
(1)
2EH
(•)
D2
Upper
8 bits
D3
Upper
8 bits
D4
Upper
8 bits
D5
Upper
8 bits
D6
Upper
8 bits
D7
Upper
8 bits
32H
(2)
33H
(3)
34H
(4)
35H
(5)
36H
(6)
37H
(7)
45H
(E)
2BH
(+)
30H
(0)
32H
(2)
00H
Ignore
The conversion could not process the string that exceeds 24 characters.
This instruction will affect the special devices below:
Effect
Relay ID No.
M9020
M9021
M9022
Zero Flag
Borrow Flag
Carry Flag
The number is equal to 0
-128
The absolute value is small then 2
128
The absolute value is more then or equal to 2
M9020=ON
- 126
=2 M9021=ON
D
128
=2 M9022=ON
D
Indication
Description
Cause
This instruction is a 32-bit instruction. Therefore, be sure to input DEVAL or DEVALP in the program.
0
1
2
3
4
5
6
7
SPACE
+
E
8
9
30H 31H 32H 33H 34H 35H 36H 37H 20H
2DH 2EH 2BH
45H
38H 39H
Operand
Devices
Sign & Number
ASCII Cord
D0
Lower
8 bits
D0
Upper
8 bits
D1
Lower
8 bits
D1
Upper
8 bits
D2
Lower
8 bits
D2
Upper
8 bits
D3
Lower
8 bits
D3
Upper
8 bits
D4
Lower
8 bits
D4
Upper
8 bits
D5
Lower
8 bits
D5
Upper
8 bits
End of
string
The positive or negative sign:
the 20H or 2BH represents
positive; the 2DH represents
negative.
The ineffective bytes
(space 20H and zero
30H) will be ignored
Only 6 digits will be taken,
discards the rest (the 7 is
useless)
End of
string
D0
Lower
8 bits
D0
Upper
8 bits

Table of Contents