![background image](http://html1.mh-extra.com/html/omron/ns/ns_programming-manual_743537119.webp)
Section 2 NS Series Functions
2-8 Common Functional Object Functions
2-72
NS Series Programming Manual
Storage Type
Details
UINT (unsigned, 1
word)
Stores as 2-byte integer at the write destination address.
(0 to 65,535 in decimal)
The data format is described below.
1 0 1 0 0 0 0 1 0 0 0 1 0 0 0 1
2
15
2
14
2
13
2
12
2
11
2
10
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
b15
b0
Example: 1010 0001 0001 0001
2
15
+ 2
13
+ 2
8
+ 2
4
+ 2
0
= 32768 + 8192 + 256 + 16 + 1 = 41233
If there is an overflow, bits 32 and later are ignored.
For example, if 1 is added to 11111111111111111111111111111111(
−
1), it will
become 00000000000000000000000000000000(0).
DINT (signed, 2 words)
Stores as 4-byte integer at the write destination address. (
−
2,147,483,648 to
2,147,483,647 in decimal)
The data format is described below.
The most significant bit is treated as the sign. (0: Positive, 1: Negative)
b31
b16 b15
b0
1
Address
Sign
1 0 1 0 0 0 0 1 0 0 0 1 0 0 0 1 1 0 1 0 0 0 0 1 0 0 0 1 0 0 0 1
2
31
2
30
2
29
2
28
2
27
2
26
2
25
2
24
2
23
2
22
2
21
2
20
2
19
2
18
2
17
2
16
2
15
2
14
2
13
2
12
2
11
2
10
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
The set address and the a 1 are used (2 words) and displayed as one nu-
meral.
Example: 1010 0001 0001 0001 1010 0001 0001 0001
−
1
×
2
31
+ 2
29
+ 2
24
+ 2
20
+ 2
16
+ 2
15
+ 2
13
+ 2
8
+ 2
4
+ 2
0
=
−
2147 536 16 1 65536 + 32768 + 8192 + 256
+ 16 + 1 =
−
1592680175
UDINT (unsigned,
2 words)
Stores as 4-byte integer at the write destination address. (0 to 4,294,967,295 in
decimal)
The data format is described below.
b31
b16 b15
b0
1
Address
1 0 1 0 0 0 0 1 0 0 0 1 0 0 0 1 1 0 1 0 0 0 0 1 0 0 0 1 0 0 0 1
2
31
2
30
2
29
2
28
2
27
2
26
2
25
2
24
2
23
2
22
2
21
2
20
2
19
2
18
2
17
2
16
2
15
2
14
2
13
2
12
2
11
2
10
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
The set address and the a 1 are used (2 words) and displayed as one nu-
meral.
Example: 1010 0001 0001 0001 1010 0001 0001 0001
2
31
+ 2
29
+ 2
24
+ 2
20
+ 2
16
+ 2
15
+ 2
13
+ 2
8
+ 2
4
+ 2
0
= 214536 16777216
+ 1 65536 + 32768 + 8192 + 256 + 16 + 1 = 2702287121
Summary of Contents for NS -
Page 2: ......
Page 12: ...Contents vi NS Series Programming Manual...
Page 46: ...Section 1 Overview 1 5 Procedure before Operation 1 33 NS Series Programming Manual...
Page 590: ...Section 3 Using PTs 3 12 Function Key Settings NS15 Only 3 35 NS Series Programming Manual...
Page 604: ...Section 4 Using Functions 4 1 Application 4 13 NS Series Programming Manual...
Page 640: ...Section 5 Troubleshooting and Maintenance 5 2 Error Messages 5 35 NS Series Programming Manual...
Page 680: ...Appendices Appendix 6 Additional NS Series Functions A 39 NS Series Programming Manual...
Page 682: ......
Page 683: ......