Mitsubishi Electric M800VW Series Programming Manual page 354

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.10 Character String Processing Instructions
[When using decimal format]
Decimal point format
S2
Total number of digits
S2+1
Number of digits in
S2+2
decimal fraction
S1+1
S1
32-bit floating-point real number
For example, if the total number of digits is 8, and the number of digits in decimal fraction is 3, and "-1.23456" is designated,
the following will be stored in the area starting from (D).
S2
0
S2+1
8
S2+2
3
S1+1
S1
-1.23456
32-bit floating-point real number
 The total number of digits that can be designated by (S2+1) is as follows:
- When the number of digits in decimal fraction is "0": Number of digits (max.: 24) ≥ 2
- When the number of digits in decimal fraction is other than "0": Number of digits (max.: 24) ≥ (number of digits in deci-
mal fraction + 3)
 The number of digits in decimal fraction that can be designated by (S2+2) is from 0 to 7 digits. However, the number of dig-
its in decimal fraction must be less than or equal to the total number of digits minus 3.
.
Sign
-
1
2 3 5
.
Sign
333
b15
b8b7
ASCII code for the (total
ASCII code for the sign
number of digits -1)th
D
digit
ASCII code for the (total
ASCII code for the (total
number of digits -3)th
number of digits -2)th
D+1
digit
ASCII code for the (total
ASCII code for decimal
number of digits -5)th
point (.) (2EH)
D+2
digit
(fraction)
ASCII code for the (total
ASCII code for the (total
number of digits -7)th
number of digits -6)th
D+3
digit
(fraction)
D+4
00H
Automatically stored at the end of
character string
b15
b8b7
(space)
D
20H
D+1
31H (1)
32H (2)
D+2
D+3
35H (5)
D+4
Automatically stored at the end of
character string
b0
digit
digit
(fraction)
b0
2H (-)
(space)
20H
2EH (.)
33H (3)
00H
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents