Floating Decimal Point To Bcd (Emod(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

EMOD(P)
7.11.20

Floating decimal point to BCD (EMOD(P))

EMOD(P)
EMOD
EMODP
Setting
Data
S1
S2
D
*1:Available only in multiple Universal model QCPU and LCPU
Function
(1) Dissociate the 32-bit floating decimal point data designated by
point format based on the decimal fraction digits specified by
the area starting from the device designated by
specifies the decimal fraction digits of the 32-bit floating decimal point real number data
S2
of
S1
3.25427
S2
=3
7-244
Command
Command
: 32-bit floating decimal point real number data or head number of the devices where the floating decimal point
S1
real number data is stored (real number)
: Decimal fraction digits data (BIN 16 bits)
S2
: Head number of the devices where the data after break down into BCD will be stored (BIN 16 bits)
D
Internal Devices
R, ZR
Bit
Word
––
––
S 1
S 1
+1
32-bit floating-point real number
S2
Number of digits in decimal fraction
S 1
S1
+1
3 . 2 5 4 2 7
32-bit floating-point real number
3
S2
. In the example above, a decimal fraction digit is designated as shown below:
High
Basic
performance
EMOD
EMODP
J
\
U
\G
Bit
Word
––
––
––
.
D
Sign
When positive : 0
D
When negative : 1
D
+1
7 BCD digits
D
+2
When positive : 0
+3
Sign (exponent part)
D
When negative : 1
+4
BCD exponent
D
(0 to 38)
D
0
D
+1
4270
H
D
+2
0325
H
D
+3
1
D
+4
3
Process
Redundant Universal
S2
D
S 1
S2
D
S 1
Constants
Zn
K, H
E
––
*1
––
––
––
––
into BCD type floating
S1
, and stores the result into
S2
BCD type floating
point format
3254270
H
LCPU
Other
––
––
––

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents