EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2-563
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Time and Time of Day Instructions
2
DIVTIME
If the value of In2 is 0, positive infinity, negative infinity, or nonnumeric data, the value of Out is as
shown below.
If In2 is a real number, there may be error of up to several nanoseconds.
If In2 is a real number, the division result is rounded to the nearest nanosecond. The following table
shows how values are rounded.
An error occurs in the following case. ENO will be FALSE, and Out will not change.
In2 is an integer with a value of 0.
Precautions for Correct Use
Value of In2 Value of Out
0 T#-106751d23h47m16.854775808s
+
T#0s
−∞
T#0s
Nonnumeric data Nonnumeric data
Value below
nanoseconds
Description Example
Less than 0.5 The fractional part is truncated. 1.49 1
0.5 If the ones digit is an even number, the value is trun-
cated. If it is an odd number, the value is rounded up.
1.50 2
2.50 2
Greater than 0.5 The fractional part is rounded up. 1.51 2

Table of Contents

Related product manuals