![background image](http://html.mh-extra.com/html/omron/ns10-tv-series/ns10-tv-series_programming-manual_744520124.webp)
Section 2 NS Series Functions
2-8 Common Functional Object Functions
2-75
NS Series Programming Manual
Storage Type
Details
BCD2
(unsigned, 2 words)
Stores as 4-byte BCD at the write destination address.
(0 to 99,999,999
in decimal)
The data format is described below.
The set address and the a 1 are used (2 words) and displayed as one nu-
meral.
b31
A 1
Address
1 0 0 0 0 1 1 1 0 1 1 0 0 1 0 1
0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
b16 b15
b0
Example: 1000 0111 0110 0101 0100 0011 0010 0001
1
st
digit: 2
0
= 1; 2
nd
digit: 2
1
= 2; 3
rd
digit: 2
1
+ 2
0
= 3; 4
th
digit: 2
2
= 4
5
th
digit: 2
2
+ 2
0
= 5; 6
th
digit: 2
2
+ 2
1
= 6; 7
th
digit: 2
2
+ 2
1
+ 2
0
= 7; 8
th
digit: 2
3
= 8
BCD value: 87654321
Values between 0 and 9 can be obtained for each digit. Higher values (A to F) can-
not be expressed in BCD.
The display for numeral display and input will be [########].
BCD 1
(signed (leftmost digit:
F), 1 word)
Stores as 2-byte BCD at the write destination address.
(-999 to 9,999 in decimal)
The data format is described below.
The leftmost digit (bits 12 to 15) is treated as the sign. (Negative when the leftmost
digit is F(1111).)
Sign
b15
b12 b11
b8 b7
b4 b3
b0
1 1 1 1 0 0 1 1 0 0 1 0 0 0 0 1
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
Example: 1111 0011 0010 0001
1
st
digit: 2
0
= 1; 2
nd
digit: 2
1
= 2; 3
rd
digit: 2
1
+ 2
0
= 3; 4
th
digit: 1111, therefore nega-
tive.
BCD value:
−
321
Values between 0 and 9 are possible for each digit. Higher values (A to F) cannot be
expressed in BCD. (F can be stored only in the leftmost digit.)
The display for numeral display and input will be [####].
BCD 1
(signed (leftmost digit:
F), 2 words)
Stores as 4-byte BCD at the write destination address.
(
−
9999999 to 99,999,999 in decimal)
The data format is described below.
The leftmost digit (bits 28 to 31) is treated as the sign. (Negative when the leftmost
digit is F(1111).)
The address set under numeral display and input and the a 1 are used (2
words) and displayed as one numeral.
b31
b16 b15
b0
A 1
Address
1 1 1 1 0 1 1 1 0 1 1 0 0 1 0 1 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
Sign
Example: 1111 0111 0110 0101 0100 0011 0010 0001
1st digit: 2
0
= 1; 2nd digit: 2
1
= 2; 3rd digit: 2
1
+ 2
0
= 3; 4th digit: 2
2
= 4
5th digit: 2
2
+ 2
0
= 5; 6th digit: 2
2
+ 2
1
= 6; 7th digit: 2
2
+ 2
1
+ 2
0
= 7;
8th digit: 1111, therefore negative.
BCD value:
−
7654321
Values between 0 and 9 can be obtained for each digit. Higher values (A to F) can-
not be expressed in BCD. (F can be stored only in the leftmost digit.)
The display for numeral display and input will be [########].
Summary of Contents for NS10-TV Series
Page 2: ......
Page 12: ...Contents vi NS Series Programming Manual ...
Page 48: ...Section 1 Overview 1 5 Procedure before Operation 1 35 NS Series Programming Manual ...
Page 592: ...Section 3 Using PTs 3 12 Function Key Settings NS15 Only 3 35 NS Series Programming Manual ...
Page 606: ...Section 4 Using Functions 4 1 Application 4 13 NS Series Programming Manual ...