EasyManuals Logo
Home>Omron>Touch terminals>NS

Omron NS Programming Manual

Omron NS
683 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
Page #120 background imageLoading...
Page #120 background image
Section 2 NS Series Functions 2-8 Common Functional Object Functions
2-73
NS Series Programming Manual
Storage Type Details
REAL (real number) Stores as 4-byte real number at the write destination address.
(Can be set in decimal between approximately ±1.175494351 × 10
-38
and approxi-
mately ±3.402823466 × 10
+38
(7 digits enabled)).
Four-byte real numbers that conform to IEEE754.
Displayed as real number = (−1)
signed
× 1.[mantissa] × 2
index-127
.
The data format is described below.
Bits 0 to 22 (23 bits) are the mantissa, bits 23 to 30 (8 bits) are the exponent, and bit
31 indicates the sign (0: positive; 1:negative).
↑
Sign
Ex
p
onent
Mantissa
b31 b30 b0
Address+1 Address
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
2
-1
2
-2
2
-3
2
-4
2
-5
2
-6
2
-7
2
-8
2
-9
2
-1
0
2
-11
2
-1
2
2
-1
3
2
-1
4
2
-1
5
2
-1
6
2
-1
7
2
-1
8
2
-1
9
2
-2
0
2
-21
2
-2
2
2
-2
3
b23 b22
The set address and the address + 1 are used (2 words) and displayed as one nu-
meral.
Real numbers are divided into 5 types: Normalized numbers, non-normalized num-
bers, zero, infinity, and non-numbers.
Normalized Numbers
If the exponent is 00000001 to 11111111,
and the mantissa is 00000000000000000000000 to 11111111111111111111111,
this is called a normalized number.
Example 1: 0100 0001 0100 1000 0000 0000 0000 0000
If the sign, exponent, and mantissa are separated, the number will appear as shown
below.
b31 b30 b23 b22 b0
01000001010010000000000000000000
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
2
-1
2
-2
2
-3
2
-4
2
-5
2
-6
2
-7
2
-8
2
-9
2
-10
2
-11
2
-12
2
-13
2
-14
2
-15
2
-16
2
-17
2
-18
2
-19
2
-20
2
-21
2
-22
2
-23
Sign: +
Exponent: 2
7
+ 2
1
=128 + 2 = 130
Mantissa: 2
-1
+2
-4
=0.5+0.0625=0.5625
Real number = (1+0.5625) ×2
(130-127)
=1.5625×8=12.5
Example 2: 1100 0000 1110 0000 0000 0000 0000 0000
If the sign, exponent, and mantissa are separated, the number will appear as shown
below.
b31 b30 b23 b22 b
0
11000000111010000000000000000000
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
2
-1
2
-2
2
-3
2
-4
2
-5
2
-6
2
-7
2
-8
2
-9
2
-10
2
-11
2
-12
2
-13
2
-14
2
-15
2
-16
2
-17
2
-18
2
-19
2
-20
2
-21
2
-22
2
-23
Sign: −
Exponent: 2
7
+ 2
0
= 128 + 1 = 129
Mantissa: 2
-1
+ 2
-2
= 0.5 + 0.25 = 0.75
Real number = −(1 + 0.75) × 2
(129-127)
= −1.75 × 4 =−7

Table of Contents

Other manuals for Omron NS

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NS and is the answer not in the manual?

Omron NS Specifications

General IconGeneral
BrandOmron
ModelNS
CategoryTouch terminals
LanguageEnglish

Related product manuals