![background image](http://html1.mh-extra.com/html/omron/ns/ns_programming-manual_743537118.webp)
Section 2 NS Series Functions
2-8 Common Functional Object Functions
2-71
NS Series Programming Manual
2-8-4 Numeral Display and Storage Type (General Tab)
The following display and storage formats can be specified for functional objects that handle numeric
values.
The display and storage formats for numerals are set on the General Tab Page.
Display Type
Display Type
Details
Decimal
BCD and real number storage formats can be specified.
Word:
−
32,768 to 32,767 (signed)
0 to 65,535 (unsigned)
2-word:
−
2,147,483,648 to 2,147,483,647 (signed)
0 to 4,294,967,295 (unsigned)
Hexadecimal
BCD and real number storage formats cannot be specified.
Word:
0000 to FFFF (unsigned)
2-word:
00000000 to FFFFFFFF (unsigned)
Binary
BCD and real number storage formats cannot be specified.
Word:
0000000000000000 to 1111111111111111 (unsigned)
2-word: 00000000000000000000000000000000
to
11111111111111111111111111111111 (unsigned)
Octal
BCD and real number storage formats cannot be specified.
Word:
000000 to 177777 (unsigned)
2-word:
00000000000 to 37777777777 (unsigned)
Real numbers have floating decimal points. BCD are numerals with each digit of the decimal number
displayed in 4-bit binary code.
When display formats other than decimal are selected, real number and BCD cannot be selected for
the storage type.
Once decimal has been selected as the display type, real number or BCD can be selected for the
storage type. If other display formats are then selected, UINT (1-word unsigned) is automatically set as
the storage format.
Storage Types
Storage Type
Details
INT (signed, 1 word)
Stores as 2-byte integer at the write destination address.
(-32,768 to 32, 767 in decimal)
The data format is described below.
The most significant bit is treated as the sign. (0: Positive, 1: Negative)
1
0 1
0 0
0 0
1 0
0 0
1 0
0 0
1
b15
b0
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
↑
Sign
Example: 1010 0001 0001 0001
−
1
×
2
15
+ 2
13
+
2
8
+ 2
4
+ 2
0
=
−
32768 + 8192 + 256 + 16 + 1 =
−
24303
If there is an overflow, bits 16 and later are ignored.
For example, if 1 is added to 1111111111111111(
−
1), it will become
0000000000000000(0).
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: ......