EasyManua.ls Logo

Mitsubishi MELSEC-Q/L - Emod, Emodp; Floating-Point Data to BCD

Mitsubishi MELSEC-Q/L
850 pages
Print Icon
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...
496
EMOD, EMODP
[Operation]
:32-bit floating decimal point real number data or head number of the devices where the floating decimal point real number data is stored (real number)
:Decimal fraction digits data (BIN 16 bits)
:Head number of the devices where the data after break down into BCD will be stored (BIN 16 bits)
*1: Available only in multiple Universal model QCPU and LCPU
Function
(1) Dissociate the 32-bit floating decimal point data designated by into BCD type floating point format based on the
decimal fraction digits specified by , and stores the result into the area starting from the device designated by .
specifies the decimal fraction digits of the 32-bit floating decimal point real number data of .
In the example above, a decimal fraction digit is designated as shown below:
7.11.20 EMOD , EMODP Floating-point data to BCD
7.11.20
EMOD, EMODP
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
Other
Bit Word Bit Word K, H E
––
*1
–– ––
–– ––
–– –– –– –– –– ––
D0 50
H
(P)52
H
(R)
4F
H
(O)47
H
(G)
52
H
(R)41
H
(A)
4D
H
(M)41
H
(A)
42
H
(B)43
H
(C)
00
H
44
H
(D)
D1
D2
D3
D4
D5
Fourth character
to be deleted
D0 character string D0 character string
D0 character string
P R O G R A M A B C D
D0 50
H
(P)52
H
(R)
4F
H
(O)47
H
(G)
52
H
(R)41
H
(A)
4D
H
(M)41
H
(A)
42
H
(B)43
H
(C)
00
H
44
H
(D)
D1
D2
D3
D4
D5
D0 50
H
(P)52
H
(R)
4F
H
(O)
00
H
44
H
(D)D1
D2
P R O D
Seven characters to be deleted
P R O G R A M A B C D
Process
High
performance
Redundant
Universal
LCPU
Basic
Command
Command
EMOD
EMODP
S1
S2
D
S1
S2
D
EMOD
EMODP
S1
S2
D
S1
D2
D
S1
S2
D
32-bit floating-point real number
+1
Number of digits in decimal fraction
Sign
7 BCD digits
Sign (exponent part)
BCD exponent
+4
+3
+2
+1
+1
3
0
4270
H
0325H
1
3
+4
+3
+2
+1
3
.
2
5
42
7
32-bit floating-point real number
When positive : 0
When negative : 1
When positive : 0
When negative : 1
(0 to 38)
BCD type floating
point format
3254270
H
S1
S2
S1
S2
D
D
D
D
D
S1 S
1
D
D
D
D
D
S2
S1
3.25427
=3
S2
+1
4
1
3542770
H
1
4
+4
+3
+2
+1
3
1
1543210
H
1
1
1
.
54321E
+
2
0
.
03
5
42
7
6
8
S1
S2
D
D
D
D
D
+4
+3
+2
+1
D
D
D
D
D
S2
S
1
+1
S1S1

Table of Contents

Related product manuals