Interface to the User Program in the
2.5Access to the Analog Input and Output Words
Principle
Using a
Each of these banks is 8 words long.
Advantage
This
Access in the User Program
The switchover to the various banks is made using bits BS0±BS5 in the control byte of the CP
The bank select bits are binary coded and select banks as shown below:
BS5
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
BS4
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
BS3 | BS2 | BS1 | BS0 |
|
|
|
|
|
|
0 | 0 | 0 | 0 |
|
0 | 0 | 0 | 1 |
|
| ||||
0 | 0 | 1 | 0 |
|
| ||||
0 | 0 | 1 | 1 |
|
| ||||
0 | 1 | 0 | 0 |
|
| ||||
0 | 1 | 0 | 1 |
|
| ||||
0 | 1 | 1 | 0 |
|
| ||||
0 | 1 | 1 | 1 |
|
| ||||
1 | 0 | 0 | 0 |
|
| ||||
1 | 0 | 0 | 1 |
|
| ||||
1 | 0 | 1 | 0 |
|
| ||||
1 | 0 | 1 | 1 |
|
| ||||
1 | 1 | 0 | 0 |
|
| ||||
1 | 1 | 0 | 1 |
|
| ||||
1 | 1 | 1 | 0 |
|
| ||||
1 | 1 | 1 | 1 |
|
| ||||
0 | 0 | 0 | 0 |
|
| ||||
0 | 0 | 0 | 1 |
|
| ||||
0 | 0 | 1 | 0 |
|
| ||||
0 | 0 | 1 | 1 |
|
| ||||
0 | 1 | 0 | 0 |
|
| ||||
0 | 1 | 0 | 1 |
|
| ||||
0 | 1 | 1 | 0 |
|
| ||||
0 | 1 | 1 | 1 |
|
| ||||
1 | 0 | 0 | 0 |
|
| ||||
1 | 0 | 0 | 1 |
|
|
|
|
|
|
Bank No.
Bank 0 selected Bank 1 selected Bank 2 selected Bank 3 selected Bank 4 selected Bank 5 selected Bank 6 selected Bank 7 selected Bank 8 selected Bank 9 selected Bank 10 selected Bank 11 selected Bank 12 selected Bank 13 selected Bank 14 selected Bank 15 selected Bank 16 selected Bank 17 selected Bank 18 selected Bank 19 selected Bank 20 selected Bank 21 selected Bank 22 selected Bank 23 selected Bank 24 selected Bank 25 selected
SIMATIC NET CP | |