Numeral Display And Storage Type (General Tab) - Omron NS10-TV Series Programming Manual

Ns-series programmable terminals
Hide thumbs Also See for NS10-TV Series:
Table of Contents

Advertisement

Section 2 NS Series Functions
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
Decimal
Hexadecimal
Binary
Octal
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
INT (signed, 1 word)
BCD and real number storage formats can be specified.
−32,768 to 32,767 (signed)
Word:
0 to 65,535 (unsigned)
−2,147,483,648 to 2,147,483,647 (signed)
2-word:
0 to 4,294,967,295 (unsigned)
BCD and real number storage formats cannot be specified.
Word:
0000 to FFFF (unsigned)
2-word:
00000000 to FFFFFFFF (unsigned)
BCD and real number storage formats cannot be specified.
Word:
0000000000000000 to 1111111111111111 (unsigned)
2-word:
00000000000000000000000000000000 to
11111111111111111111111111111111 (unsigned)
BCD and real number storage formats cannot be specified.
Word:
000000 to 177777 (unsigned)
2-word:
00000000000 to 37777777777 (unsigned)
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)
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
Sign
Example: 1010 0001 0001 0001
−1 × 2
15
13
8
4
+ 2
+ 2
+ 2
+ 2
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).
2-71
2-8 Common Functional Object Functions
Details
Details
b0
4
3
2
1
0
2
2
2
2
2
= −32768 + 8192 + 256 + 16 + 1 = −24303
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents