Converting Single-Precision Real Number To Bcd Format Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Converting single-precision real number to BCD format data

EMOD(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions convert single-precision real number data to the BCD floating point format data.
Ladder
(s1)
(s2)
(d)
FBD/LD
EN
ENO
s1
d
s2
■Execution condition
Instruction
EMOD
EMODP
Setting data
■Description, range, data type
Operand
Description
(s1)
Single-precision real number data or the start device where
the single-precision real number data is stored
(s2)
Decimal part digit data
(d)
Start device for storing the BCD format data
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
(s1)
(s2)
(d)
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
ST
ENO:=EMOD(EN,s1,s2,d);
ENO:=EMODP(EN,s1,s2,d);
Range
Data type
-126
128
|(s1)|<2
0, 2
Single-precision real
number
0 to 7
16-bit signed binary
16-bit signed binary
Bit
Bit
Double word Indirect
Z
LT, LST,
LZ
LC
6.6 Data Conversion Instructions
Data type (label)
ANYREAL_32
ANY16
ANY16_ARRAY
(Number of elements: 5)
BOOL
BOOL
Constant
Others
specification
K, H E
$
6 BASIC INSTRUCTIONS
6
465

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents