Converting Word (Signed), Double Word (Signed) Type To Double-Precision Real Type - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Converting word (signed), double word (signed) type to double-
precision real type
INT_TO_LREAL(_E), DINT_TO_LREAL(_E)
High
Basic
Process
performance
Structured ladder/FBD
INT_TO_LREAL_E
EN
ENO
s
The following function(s) can go in the dotted squares.
INT_TO_LREAL, INT_TO_LREAL_E, DINT_TO_LREAL, DINT_TO_LREAL_E
■Argument
Input/output
argument
Input argument
Output argument
Processing details
■Operation processing
• INT_TO_LREAL, INT_TO_LREAL_E
Converts word (signed) type data input to (s) into double-precision real type data, and outputs the operation result from (d).
s
1234
Word (signed) type
• DINT_TO_LREAL, DINT_TO_LREAL_E
Converts double word (signed) type data input to (s) into double-precision real type data, and outputs the operation result from
(d).
s
16543521
Double word (signed) type
5 APPLICATION FUNCTIONS
40
5.1 Type Conversion Functions
LCPU
Redundant
Universal
ST
ENO:=
INT_TO_LREAL_E
d
Name
Description
EN
Executing condition (TRUE: Execution, FALSE:
Stop)
s(_INT, _DINT)
Input
ENO
Execution result (TRUE: Normal, FALSE: Error)
d
Output
Double-precision real type
Double-precision real type
(EN, s, d);
d
1234.0
d
16543521.0
Data type
Bit
Word (signed), double word (signed)
Bit
Double-precision real

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents