Section 2 NS Series Functions
2-8 Common Functional Object Functions
2-76
NS Series Programming Manual
Storage Type
Details
BCD 2
(signed (leftmost bit: 1),
1 word)
Stores as 2-byte BCD at the write destination address.
(
−
7999 to 7,999 in decimal)
The data format is described below.
The leftmost bit is treated as the sign. (Leftmost bit 0: Positive, 1: Negative)
↑
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: (
−
1)
×
(2
2
+ 2
1
+ 2
0
) =
−
7
BCD value:
−
7321
Values between 0 and 9 (0 to 7 for leftmost digit) are possible for each digit. Higher
values (A to F) cannot be expressed in BCD.
The display for numeral display and input will be [####].
BCD2
(signed (leftmost bit:1),
2 words)
Stores as 4-byte BCD at the write destination address.
(
−
79999999 to 79,999,999 in decimal)
The data format is described below.
The leftmost bit is treated as the sign. (Most signification bit 0: Positive, 1: Negative)
The set address and the a 1 are used (2 words) and displayed as one nu-
meral.
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
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: (
−
1)
×
(2
2
+ 2
1
+ 2
0
) =
−
7
BCD value:
−
77654321
Values between 0 and 9 (0 to 7 for leftmost digit) are possible for each digit. Higher
values (A to F) cannot be expressed in BCD.
The display for numeral display and input will be [########].
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: ......