EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 569

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 APPLICATION INSTRUCTIONS
7.11 Character String Processing Instructions
567
7
Program example
The following program converts the 32-bit floating point type real number data which had been stored at R0 and R1 in
accordance with the conversion designation that is being stored at R10 to R12, and stores the result following D0 when X0
goes ON.
The following program converts the 32-bit floating decimal point type real number data which had been stored at D0 and D1
in accordance with the conversion designation that is being stored at R10 to R12, and stores the result following D10 when
X1C goes ON.
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
Instruction Device
Step
7
3
R12
Number of digits
in decimal fraction
0
R11
R1
. 033
Total number of digits
Total number of digits
Number of digits
in decimal fraction
Conversion format
R10
.
03
2
7
4
570
R0
Space
0
Automatically stored
b8 b7 b0
D1
D2
20H (space)
2E
H (.)
33
H (3)
00
H
20H (space)
30
H (0)
30
H (0)
33
H (3)
D0
b15
Instruction Device
Step
.
Automatically stored
Space
b15 b8 b7 b0
00H
D11
D12
D13
D14
D15
D16
3274 6 E 0- 2
20H (space)
2E
H (.)
37
H (7)
36
H (6)
2D
H (-)
32
H (2)
12
4R12
1 (exponent format)
R11
D1
Total number of digits
Number of digits
in decimal fraction
Conversion format
R10
.
032
7
4
57
0
D0
8
Number of digits
in decimal fraction
20H (space)
33
H (3)
32
H (2)
34
H (4)
45
H (E)
30
H (0)
D10
Total number of digits

Table of Contents

Related product manuals