Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 87

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
2) The string data obtained by conversion is output to a device specified in
a) The number of digits is fixed respectively for the integer part, decimal part and exponent part as
follows:
Integer part: 1, decimal part: 5, exponent part: 2
"2EH (.)" is automatically stored in the 3rd byte, and "45H (E)" is automatically stored in the 9th byte.
-12.3456
Float (single precision)
data
b) In "Sign data (integer part)", "20H (space)" is stored when the input value is positive, and "2DH (-)" is
stored when the input value is negative.
c) The 6th and later digits of the decimal part are rounded.
-12.345678
Float (single precision)
data
d) "30H (0)" is stored in the decimal part when the number of significant figures is small.
-12.34
Float (single precision)
data
e) In "Sign data (exponent part)", "2BH (+)" is stored when the input value is positive, and "2DH (-)" is
stored when the input value is negative.
f) "30H (0)" is stored in the tens place of the exponent part when the exponent part consists of 1 digit.
-12.3456
Float (single precision)
data
3) "00H" is automatically stored at the end (7th word) of the character string.
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) When handling character 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.
Total number of digits (12 digits)
Integer part
Decimal part
(1 digit)
(5 digits)
-
1 . 2 3 4 5 6
E
"2EH (.)" is stored.
Total number of digits (12 digits)
7
- 1 . 2 3 4 5
6
7 8
Number of digits
of decimal part (5)
Total number of digits (12 digits)
- 1 . 2 3 4 0 0
E
+ 0 1
"30H (0)" is stored.
Number of digits of decimal part (5)
Total number of digits (12 digits)
Number of digits of exponent part (2)
- 1 . 2 3 4 5 6
E
+ 0 1
5 Applied Functions
5.1 Type Conversion Functions
as follows:
d
Exponent part
(2 digits)
+ 0 1
"45H (E)" is stored.
E
+ 0 1
These digits are rounded.
"30H (0)" is stored.
1
2
3
4
5
6
A
85

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents