Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

2 Instruction Descriptions
Example 5: Exponent: TRUE
The first decimal place is rounded off because DecPlace is USINT#0. The decimal point is also not
given.
12
-
1 e + 0 3
Example 6: Exponent: FALSE
Here, no exponent is given and the integer part is only four digits. The first decimal place is rounded off.
8
-
1 2 3 5
Example 7: Exponent: FALSE
Here, the number of digits in the integer part of In (four digits) is larger than the value of MinLen
(USINT#2). The four digits of the integer part are given.
5
- 1 2 3 5
The following examples show the relationships between the values of the input variables and the value
of Out when In is REAL#123456.7.
Example 8: Exponent: FALSE
Here, the number of digits in the integer part of In (six digits) is larger than the value of MinLen
(USINT#4). The six digits of the integer part are given. The value of In is positive, so the highest digit is
placed in the sign column.
6
1 2 3 4 5 7
If the value of In is positive infinity, the value of Out is 'Inf'. If the value of In is negative infinity, the value
of Out is '−Inf'. If the value of In is nonnumeric data, the value of Out is "−nan".
If the value of In is infinity, or nonnumeric data, the value of Out is as shown below.
Value of In
+∞
−∞
Nonnumeric data
2-262
Sign: TRUE
MinLen: USINT#12
DecPlace: USINT#0
Sign: TRUE
MinLen: USINT#8
DecPlace: USINT#0
Sign: TRUE
MinLen: USINT#2
DecPlace: USINT#0
Sign: TRUE
MinLen: USINT#4
DecPlace: USINT#0
Value of Out
'inf'
'−inf'
'nan' or '−nan'

NJ-series Instructions Reference Manual (W502)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents