5 Applied Functions
5.1 Type Conversion Functions
114
FXCPU Structured Programming Manual
(Application Functions)
b) In the case of exponent format
3) With regard to string data, six digits excluding the sign, decimal point and exponent part are valid, and the
7th and later digits are discarded during conversion.
a) In the case of decimal format
b) In the case of exponent format
4) String data in the decimal format is handled as positive value during conversion when the sign is set to
"2BH (+)" or when the sign is omitted. It is handled as negative value during conversion when the sign is
set to "2DH (-)".
5) String data in the exponent format is handled as positive value during conversion when the sign of the
exponent part is set to "2BH (+)" or when the sign is omitted. It is handled as negative value during
conversion when the sign is set to "2DH (-)".
6) When "20H (space)" or "30H (0)" exists between the sign and the first number except "0" in string data,
"20H (space)" or "30H (0)" is ignored during conversion.
a) In the case of decimal format
b) In the case of exponent format
7) When "30H (0)" exists between "E" and a number in character string data (in the exponent format), "30H
(0)" is ignored during conversion.
8) When "20H (space)" is contained in character string, "20H (space)" is ignored during conversion.
9) Up to 24 characters can be input as string data.
Each of "20H (space)" and "30H (0)" contained in string is counted as 1 character respectively.
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) When handling string data and 32-bit data in structured programs, you cannot specify 16-bit devices
directly, different from simple projects. Use labels when handling string data and 32-bit data.
You can specify 32-bit counters directly, however, because they are 32-bit devices.
Use global labels when specifying labels.
31H (1)
High-order byte
33H (3) 2EH (3)
35H (5)30H (0)
34H (4)
2DH (-)
30H (0)
33H (3)
45H (E)
31H (1)
-1.35034E-10
2DH (-)
Low-order byte
String
Float (single precision)
data
0000H
-1.35034E-10
1st word
2nd word
3rd word
4th word
5th word
6th word
7th word
-1.3503412023
-1.35034
Float (single precision) data
Discarded
-1.3503412E-10
-1.35034E-10
Float (single precision) data
Discarded
1.3- 0 5034
-1.35034
Float (single precision) data
Ignored
- 01.35034E-10
-1.35034E-10
Float (single precision) data
Ignored
-1.35034E-02
-1.35034E-2
Float (single precision) data
Ignored