7 - 5
7 OPERATION CONTROL PROGRAMS
3) Data ranges are shown below.
Decimal representation Hexadecimal representation
Data range
K-1.79E+308 to K-2.23E-308,
K0.0,
K2.23E-308 to K1.79E+308
H0000000000000000,
H0010000000000000 to H7FE1CCF385EBC89F,
H8000000000000000,
H8010000000000000 to HFFE1CCF385EBC89F
4) 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 intended
operation.
Example) 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
(d) 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
SET M0
Bit data
(e) 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 Increments of 32 points
Program example
DIN #0, M0
DOUT M0, D0
DIN #0L, M0
DOUT M0, DOL
Used devices
(Specified device No.) to
(specified device No.+15)
M0 to M15 in the above program
example
(Specified device No.) to
(specified device No.+31)
M0 to M31 in the above program
example