8 APPLICATION INSTRUCTION
8.8 Character String Operation Instruction
455
8
• The converted character string data are stored in the device areas specified by (d) and later as shown below.
■
Exponent format
• When 1 is specified in (s2), the exponent format is applied.
• As sign data, "20H" (space) is stored if the single-precision real number is positive, and "2DH" (-) is stored if the data is negative.
• If the decimal part of the single-precision real number data cannot be accommodated in the number of digits of the decimal part, lower digits of the
decimal part are rounded off.
(1): Total number of digits
(2): Number of digits of decimal part
(3): These digits are rounded off.
• If the number of digits in the decimal part is set to other than 0, "2EH" (.) is automatically stored at the position before the specified number of digits. If
the number of digits in the decimal part is 0, "2EH" (.) is not stored.
(1): Total number of digits
(2): Number of digits of decimal part
(3): Added automatically
• When the total number of digits subtracted by the digits for sign, decimal point, and decimal part is larger than the integer part of the single-precision
real number data, "20H (space)" is stored between the sign and the integer part.
(1): Total number of digits
(2): Number of digits of decimal part
(3): "20H (SP)" is stored.
• The value "00H" is automatically stored at the end of the converted character string.
(1): Exponent format
(2): Total number of digits
(3): Number of digits of decimal part
(4): Single-precision real number
(5): Sign (integer part)
(6): Sign (exponent part)
(7): Added automatically
(8): "0000H" is automatically stored at the end of the character string.
1
-
. 2 3
1
-
. 2 3
4 5 6
4 5 6
(s1)+1
(s1)
(s2)+1
(s2)+2
(s2)
0
8
2
(3)
(2)
(1)
1
-
. 2 3
1
-
. 2 3
4 5 6
(s1)+1
(s1)
(s2)+1
(s2)+2
(s2)
0
8
2
(2)
(1)
(3)
1
-
. 2 3
1
-
. 2 3
4 5 6
(s1)+1
(s1)
(s2)+1
(s2)+2
(s2)
0
8
2
(2)
(1)
(3)
(s2)+1
(s2)+2
b15
b8 b7
b0
0000H
(d)+4
(d)+3
(d)+6
(d)+5
(d)+2
(d)+1
(d)
(s2)
(s1)+1
(s1)
.
E
45H (E)
(1)
(2)
(3)
(8)
(4)
(5)
(6)
(7)
ASCII code in "(Value specifying number
of all digits - 1)"th digit
ASCII code in "(Value specifying number
of all digits - 5)"th digit (decimal part)
ASCII code in "(Value specifying number
of all digits - 4)"th digit (decimal part)
ASCII code in "(Value specifying number
of all digits - 7)"th digit
ASCII code in "(Value specifying number
of all digits - 6)"th digit
ASCII code in "(Value specifying number
of all digits - 11)"th digit (exponent)
ASCII code in "(Value specifying number
of all digits - 10)"th digit (exponent)
ASCII code (2EH) for decimal point (.)
ASCII code in "(Value specifying number
of all digits - 2)"th digit
ASCII code for sign (exponent)
ASCII code for sign (integral part)
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......