Siemens CP 243-2 User Manual

Page of 150
Interface to the User Program in the S7-200 CPU
2-16
SIMATIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
2.5
Access to the Analog Input and Output Words
Principle
Using a bank-select mechanism, the 8 analog input words and the 8 analog output
words can be switched to 64 different analog input areas (banks) and 64 different
analog output areas (banks) on the CP 243-2.
Each of these banks is 8 words long.
Advantage
This bank-select mechanism has the advantage that the analog data area of 8
words available for the expansion module is increased according to the number of
banks.
Access in the User Program
The switchover to the various banks is made using bits BS0–BS5 in the control
byte of the CP 243-2 (see Section 2.3.4).
The bank select bits are binary coded and select banks as shown below:
BS5
BS4
BS3
BS2
BS1
BS0
Bank No.
0
0
0
0
0
0
Bank 0 selected
0
0
0
0
0
1
Bank 1 selected
0
0
0
0
1
0
Bank 2 selected
0
0
0
0
1
1
Bank 3 selected
0
0
0
1
0
0
Bank 4 selected
0
0
0
1
0
1
Bank 5 selected
0
0
0
1
1
0
Bank 6 selected
0
0
0
1
1
1
Bank 7 selected
0
0
1
0
0
0
Bank 8 selected
0
0
1
0
0
1
Bank 9 selected
0
0
1
0
1
0
Bank 10 selected
0
0
1
0
1
1
Bank 11 selected
0
0
1
1
0
0
Bank 12 selected
0
0
1
1
0
1
Bank 13 selected
0
0
1
1
1
0
Bank 14 selected
0
0
1
1
1
1
Bank 15 selected
0
1
0
0
0
0
Bank 16 selected
0
1
0
0
0
1
Bank 17 selected
0
1
0
0
1
0
Bank 18 selected
0
1
0
0
1
1
Bank 19 selected
0
1
0
1
0
0
Bank 20 selected
0
1
0
1
0
1
Bank 21 selected
0
1
0
1
1
0
Bank 22 selected
0
1
0
1
1
1
Bank 23 selected
0
1
1
0
0
0
Bank 24 selected
0
1
1
0
0
1
Bank 25 selected