Omron NS10-TV Series Programming Manual page 124

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
Storage Type
BCD2
(unsigned, 2 words)
BCD 1
(signed (leftmost digit:
F), 1 word)
BCD 1
(signed (leftmost digit:
F), 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 address + 1 are used (2 words) and displayed as one nu-
meral.
Address + 1
b31
1 0 0 0 0 1 1 1 0 1 1 0 0 1 0 1
3
2
1
0
3
2
1
0
3
2
1
0
3
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
Example: 1000 0111 0110 0101 0100 0011 0010 0001
st
0
nd
1
digit: 2
= 1; 2
digit: 2
th
2
0
th
5
digit: 2
+ 2
= 5; 6
digit: 2
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 [########].
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).)
b15
b12 b11
b8 b7
b4 b3
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
Sign
Example: 1111 0011 0010 0001
st
0
nd
1
digit: 2
= 1; 2
digit: 2
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 [####].
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 address + 1 are used (2
words) and displayed as one numeral.
Address + 1
b31
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
3
2
1
0
3
2
1
0
3
2
1
0
3
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
Sign
Example: 1111 0111 0110 0101 0100 0011 0010 0001
0
1st digit: 2
= 1; 2nd digit: 2
2
0
5th digit: 2
+ 2
= 5; 6th digit: 2
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 [########].
2-75
2-8 Common Functional Object Functions
Details
Address
b16 b15
0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1
1
0
3
2
1
0
3
2
1
0
3
2
1
0
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
rd
1
0
= 2; 3
digit: 2
+ 2
= 3; 4
2
1
th
2
+ 2
= 6; 7
digit: 2
+ 2
b0
2
1
2
0
1
rd
1
0
= 2; 3
digit: 2
+ 2
= 3; 4
Address
b16 b15
1
0
3
2
1
0
3
2
1
0
3
2
1
0
2
2
2
2
2
2
2
2
2
2
2
2
2
2
1
1
0
= 2; 3rd digit: 2
+ 2
2
1
+ 2
= 6; 7th digit: 2
b0
3
2
1
0
2
2
2
2
th
2
digit: 2
= 4
1
0
th
3
+ 2
= 7; 8
digit: 2
= 8
th
digit: 1111, therefore nega-
b0
3
2
1
0
2
2
2
2
2
= 3; 4th digit: 2
= 4
2
1
0
+ 2
+ 2
= 7;

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents