Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 457

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

• The converted character string data are stored in the device areas specified by (d) and later as shown below.
• 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.
(s2)
0
(s2)+1
8
(s2)+2
2
(s1)+1
(s1)
-
1
. 2 3
4 5 6
(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.
(s2)
0
(s2)+1
8
(s2)+2
2
(s1)+1
(s1)
-
1
. 2 3
4 5 6
(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.
(s2)
0
(s2)+1
8
(s2)+2
2
(s1)+1
(s1)
-
1
. 2 3
4 5 6
(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.
■Exponent format
• When 1 is specified in (s2), the exponent format is applied.
(s2)
(1)
(2)
(s2)+1
(s2)+2
(3)
(5)
(s1)+1
(s1)
(4)
(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)
-
1
. 2 3
(2)
(1)
-
1
. 2 3
(2)
(3)
(1)
-
1
. 2 3
(2)
(3)
(d)
(d)+1
E
.
(d)+2
(6)
(d)+3
(7)
(d)+4
(d)+5
(d)+6
4 5 6
(3)
b15
ASCII code in "(Value specifying number
of all digits - 1)"th digit
ASCII code (2EH) for decimal point (.)
ASCII code in "(Value specifying number
of all digits - 5)"th digit (decimal part)
ASCII code in "(Value specifying number
of all digits - 7)"th digit
ASCII code for sign (exponent)
ASCII code in "(Value specifying number
of all digits - 11)"th digit (exponent)
8.8 Character String Operation Instruction
b8 b7
ASCII code for sign (integral part)
ASCII code in "(Value specifying number
of all digits - 2)"th digit
ASCII code in "(Value specifying number
of all digits - 4)"th digit (decimal part)
ASCII code in "(Value specifying number
of all digits - 6)"th digit
45H (E)
ASCII code in "(Value specifying number
of all digits - 10)"th digit (exponent)
0000H
(8)
8 APPLICATION INSTRUCTION
8
b0
455

Hide quick links:

Advertisement

loading