Siemens SIMATIC S5-90U System Manual page 165

Table of Contents

Advertisement

S5-90U/S5-95U
You can work with binary-coded decimals to program timers and counters in the decimal system.
BCD tetrads are defined in the range of 0 to 9.
Example:
12-bit timer or counter value in BCD and decimal formats
Word No.
Byte No.
Bit No.
BCD No.
Meaning
Decimal format
Binary
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
EWA 4NEB 812 6115-02b
n
(high byte)
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
0
0
0
0
1
15
14
13
12
11
2
2
2
2
2
0
Figure 7-10. BCD and Decimal Formats
Table 7-4. Comparison of Number Formats
Decimal
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
n
n+1 (low byte)
0
0
1
0
0
1
10
9
8
7
6
5
2
2
2
2
2
2
9
3
BCD
0000 0000
0000 0001
0000 0010
0000 0011
0000 0100
0000 0101
0000 0110
0000 0111
0000 1000
0000 1001
0001 0000
0001 0001
0001 0010
0001 0011
0001 0100
0001 0101
Introduction to STEP 5
1
0
0
0
1
4
3
2
1
0
2
2
2
2
2
1
Hexadecimal
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
7-19

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s5-95u

Table of Contents