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
F
unct
i
on
(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)
4
7
H
(G)
52
H
(R)
4
1
H
(A)
4
D
H
(M)
4
1
H
(A)
4
2
H
(B)
4
3
H
(C)
00
H
44
H
(D)
D1
D2
D3
D
4
D5
F
ourth
character
to
be
de
l
eted
D0
character
str
i
ng
D0
character
str
i
ng
D0
character
str
i
ng
P
R
O
G
R
A
M
A
B
C
D
D0
50
H
(P)
52
H
(R)
4F
H
(O)
4
7
H
(G)
52
H
(R)
4
1
H
(A)
4
D
H
(M)
4
1
H
(A)
4
2
H
(B)
4
3
H
(C)
00
H
44
H
(D)
D1
D2
D3
D
4
D5
D0
50
H
(P)
52
H
(R)
4F
H
(O)
00
H
44
H
(D)
D1
D2
P
R
O
D
Se
v
en
characters
to
be
de
l
eted
P
R
O
G
R
A
M
A
B
C
D
Process
High
performance
Redundant Universal
LCPU
Bas
i
c
Command
Command
E
MOD
E
MODP
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
0325
H
1
3
+4
+3
+2
+1
3 . 2 5 4 2 7
32-bit floating-point real number
When positi
v
e : 0
When negati
v
e : 1
When positi
v
e : 0
When negati
v
e : 1
(0 to 38)
BCD type floating
point format
3254270
H
S1
S2
S1
S2
D
D
D
D
D
S1
S1
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 . 5 4 3 2 1E + 2
0 . 03542768
S1
S2
D
D
D
D
D
+4
+3
+2
+1
D
D
D
D
D
S2
S1
+1
S1
S1