Mitsubishi Electric R16MTCPU Programming Manual page 121

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

■64-bit floating-point type data
The 64-bit floating-point type data is IEEE-formatted, 64-bit floating-point value data. Word devices are used in increments of
4 points: (specified device No.), (specified device No.+1), (specified device No.+2), (specified device No.+3).
• The internal bit locations are shown below.
(+3)
(+2)
b63
b62
b52
b51
• The represented value is shown below. (The bias value is H3FF.)
[Sign bit field]
(-1)
*(1.0+[decimal field])*2
• Data ranges are shown below.
Data range
• A round-off error may be produced in a 64-bit floating-point type data operation. Especially when using 64-bit floating-point
type data in a comparison operation, note that a round-off error may cause an unintended operation.
Ex.
In the following transition program, the result of the comparison operation may not become true depending on the value of
#200F due to a round-off error.
#100F=SQRT(#200F)
#300F=#100F*#100F
#200F==#300F
■Bit data
The bit data is the data where a contact/coil or similar device is handled in increments of 1 bit. It is used in device set (SET=)
and device reset (RST=).Example 1
Ex.
SET M0
Bit data
■Batch bit data
The batch bit data is the data where bit data is handled in increments of 16/32 points. It is used in device input (DIN) and
device output (DOUT).
As indicated below, whether the bit data is handled in increments of 16 or 32 points is governed by the data type of the word
device used as an input destination/output source.
Increments of 16 points
Program example
DIN #0,M0
DOUT M0,D0
Used devices
(Specified device No.) to (specified device No. + 15)
M0 to M15 in the above program example
(+1)
(Specified device number+0)
b51 to b0 (52 bits)
Decimal field
b62 to b52 (11 bits)
Bias exponent field
b63(1 bits)
Sign bit field
([Bias exponent field]-[bias value])
Decimal representation
K-1.79E+308 to K-2.23E-308,
K0.0,
K2.23E-308 to K1.79E+308
b0
Hexadecimal representation
H0000000000000000,
H0010000000000000 to H7FE1CCF385EBC89F,
H8000000000000000,
H8010000000000000 to HFFE1CCF385EBC89F
Increments of 32 points
DIN #0L,M0
DOUT M0,D0L
(Specified device No.) to (specified device No. + 31)
M0 to M31 in the above program example
4 OPERATION CONTROL PROGRAMS
4.1 Operation Control Programs
4
119

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents