Signed 64-Bit Floating-Point Value Conversion: Float - Mitsubishi Electric R16MTCPU Programming Manual

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

Signed 64-bit floating-point value conversion: FLOAT

Format
FLOAT(S)
Setting data
■Usable Data
: Usable
Setting
Usable Data
data
Bit
Word device
device
16-bit
integer
type
(S)
■Description, data type of result
Setting data
Description
(S)
Data which will be converted into signed 64-bit floating-point value
Processing details
• The data specified with (S) is converted into a signed 64-bit floating-point value.
• If (S) is a 64-bit floating-point type, its value is returned unchanged, with no conversion processing performed.
Operation error
An operation error will occur if:
• (S) is an indirectly specified device and its device No. is outside the range.
Program example
■Program which converts the data of D0L into a signed 64-bit floating-point value and
substitutes the result to #0F
#0F = FLOAT(D0L)
#3
#2
#0F
K-1.0
Number of basic steps
4
Constant
32-bit
64-bit
16-bit
integer
floating
integer
type (L)
point
type
type (F)
(K/H)
#1
#0
Usable steps
F/FS
Calculation
expression
32-bit
64-bit
integer
floating
type
point
(K/H, L)
type (K)
D1
D0
D0L
K-1L
(HFFFFFFFF)
4 OPERATION CONTROL PROGRAMS
G
Bit
Comparison
conditional
conditional
expression
expression
Data type of result
64-bit floating-point type
173
4.9 Type Conversions
4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents