454
8 APPLICATION INSTRUCTION
8.8 Character String Operation Instruction
■
Decimal point format
• When 0 is specified in (s2), the decimal point format is applied.
• When the number of decimal part digits is 0, the number of digits that can be specified by (s2)+1 is "the number of digits (24
at a maximum)
2". For other than 0, the number of digits that can be specified by (s2)+1 is "the number of digits (24 at a
maximum)
(the number of decimal point 3)".
• The number of digits in the decimal part that can be specified by (s2)+2 is 0 to 7. Note that the number of digits in the
decimal part must be smaller than the total number of digits minus 3.
• For example, when the total number of digits is "8", the number of digits of the decimal part is "3", and "-1.23456" is
specified, data is stored in (d) and later as shown below:
(1): Decimal point format
(2): Total number of digits
(3): Number of digits of decimal part
(4): Sign
(5): Single-precision real number
(6): "0000H" is automatically stored at the end of the character string.
(1): Total number of digits
(2): Number of digits of decimal part
(3): Sign
(4): Single-precision real number
(5): "0000H" is automatically stored at the end of the character string.
(s2)+1
(s2)+2
b15
b8 b7
b0
0000H
(d)+4
(d)+3
(d)+2
(d)+1
(d)
(s2)
.
(s1)+1
(s1)
(6)
ASCII code for sign
(4)
(5)
(1)
(2)
(3)
ASCII code in "(Value specifying number
of all digits - 1)"th digit
ASCII code in "(Value specifying number
of all digits - 3)"th digit
ASCII code in "(Value specifying number
of all digits - 2)"th digit
ASCII code in "(Value specifying number
of all digits - 5)"th digit (decimal part)
ASCII code (2EH) for decimal point (.)
ASCII code in "(Value specifying number
of all digits - 7)"th digit (decimal part)
ASCII code in "(Value specifying number
of all digits - 6)"th digit (decimal part)
1
-
. 2 3
1
-
. 2 3
4 5 6
5
(s1)+1
(s1)
(s2)+1
(s2)+2
(s2)
0
8
3
b15
b8 b7
b0
(d)+4
(d)+3
(d)+2
(d)+1
(d)
0000H
2DH(-)
31H(1)
32H(2)
35H(5)
2EH(. )
33H(3)
(1)
(2)
(5)
(3)
(4)
20H (SP)
20H (SP)
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: ......