Omron NS Programming Manual page 119

Ns-series programmable terminals
Hide thumbs Also See for NS:
Table of Contents

Advertisement

Section 2 NS Series Functions
NS Series Programming Manual
Storage Type
UINT (unsigned, 1
word)
DINT (signed, 2 words)
UDINT (unsigned,
2 words)
Stores as 2-byte integer at the write destination address.
(0 to 65,535 in decimal)
The data format is described below.
b15
1 0 1 0 0 0 0 1 0 0 0 1 0 0 0 1
15
14
13
12
11
10
9
8
7
6
5
2
2
2
2
2
2
2
2
2
2
2
2
Example: 1010 0001 0001 0001
15
13
8
4
0
2
+ 2
+ 2
+ 2
+ 2
= 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).
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)
Address+1
b31
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
31
30
29
28
27
26
25
24
23
22
21
20
19
18
2
2
2
2
2
2
2
2
2
2
2
2
2
2
Sign
The set address and the address + 1 are used (2 words) and displayed as one nu-
meral.
Example: 1010 0001 0001 0001 1010 0001 0001 0001
−1 × 2
31
29
24
20
+ 2
+ 2
+ 2
+ 2
−2147483648 + 536870912 + 16777216 + 1048576 + 65536 + 32768 + 8192 + 256
+ 16 + 1 = −1592680175
Stores as 4-byte integer at the write destination address. (0 to 4,294,967,295 in
decimal)
The data format is described below.
Address+1
b31
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
31
30
29
28
27
26
25
24
23
22
21
20
19
18
2
2
2
2
2
2
2
2
2
2
2
2
2
2
The set address and the address + 1 are used (2 words) and displayed as one nu-
meral.
Example: 1010 0001 0001 0001 1010 0001 0001 0001
31
29
24
20
16
2
+ 2
+ 2
+ 2
+ 2
+ 2
+ 1048576 + 65536 + 32768 + 8192 + 256 + 16 + 1 = 2702287121
2-72
2-8 Common Functional Object Functions
Details
b0
4
3
2
1
0
2
2
2
2
Address
b16 b15
17
16
15
14
13
12
11
10
9
8
7
6
5
4
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
16
15
13
8
4
0
+ 2
+ 2
+ 2
+ 2
+ 2
=
Address
b16 b15
17
16
15
14
13
12
11
10
9
8
7
6
5
4
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
15
13
8
4
0
+ 2
+ 2
+ 2
+ 2
= 2147483648+536870912 + 16777216
b0
3
2
1
0
2
2
2
b0
3
2
1
0
2
2
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents