2 access to the as-i analog data, Data access with step 7 micro, Example – Siemens CP 243-2 User Manual
Page 63
Access to the Data of the AS-i Slaves
3-15
SIMATIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
3.2.2
Access to the AS-i Analog Data
Data Access with STEP 7 Micro
You access the analog data of the AS-i slaves using the analog commands of the
“STEP 7 Micro/WIN32” programming language.
Example
The following example shown in STL is valid for a CPU 222 with a CP 243-2
plugged in directly beside it. The program reads the analog input value of slave 3
(channel 2) cyclically and sends it to the analog output slave 16 (channel 1).
OB1 (STL)
NETWORK 1
LD SM0.1
//If: bit “First Scan”:
SI Q1.7, 1
//PLC_RUN = 1
LD I1.1
//If: CP 243-2_READY
CALL 4
//Then : process AS-i analog values
SBR 4 (STL)
NETWORK 1
LD SM0.0
//Always 1
RI Q1.0,6
//Select bank 33
SI Q1.5,1
//Select bank 33
SI Q1.0,1
//Select bank 33
MOVW AIW10, VW50
//Read slave 4, channel 2
RI Q1.0,1
//Select bank 40
SI Q1.3,1
//Select bank 40
MOVW VW50, AOW0
//Write slave 17, channel 1
RI Q1.0,6
//Important: deselect the analog bank
- C2-010 (51 pages)
- Simatic M7-400 (638 pages)
- S323 (381 pages)
- CL-010-I (104 pages)
- SIMODRIVE 611-D (1154 pages)
- CL-110 (111 pages)
- SPC3 (68 pages)
- ADSL 50 (73 pages)
- S5-135U/155U (560 pages)
- eWON4002 (38 pages)
- SpeedStream 5450 (83 pages)
- 4200 Series (85 pages)
- SL4 (104 pages)
- Simens Gigaset WLAN dsl/cable SE551 (148 pages)
- ADVANCE NETWORK COMMUNICATIONS BOARD/DATANET 2000592-001 (72 pages)
- CL-110-I (129 pages)
- 5890 (102 pages)
- SIMATIC TIWAY 1 (208 pages)
- SS1024 (48 pages)
- SE505 (135 pages)
- GIGASET 54 (56 pages)
- SLI-5310-I IAD (128 pages)
- ProLINE-RoadRunner (58 pages)
- CP 1515 (299 pages)
- Gigaset 3070 (83 pages)
- Terminal TC35 (39 pages)
- SIMATIC PC Adapter TS Adapter (28 pages)
- 108 (143 pages)
- SX763 (156 pages)
- 500 NIM (138 pages)
- Commissioning PC Stations C79000-G8976-C156-07 (300 pages)
- E-110 (90 pages)
- TC65 (90 pages)
- MC35 (228 pages)
- TC35 (39 pages)
- Gigaset SX541 WLAN dsl (187 pages)
- 2614 (44 pages)
- 2602 (32 pages)
- BUSINESS CLASS 5930 (94 pages)
- DTU3005-B (54 pages)
- SpeedStream 2624 (2 pages)
- IEEE802.11 (84 pages)
- SANTIS-ab (28 pages)
- gigaset SE551 (175 pages)
- 300 (56 pages)