Access To The As-I User Data - Siemens SIMATIC NET CP 243-2 Manual

As-interface master
Table of Contents

Advertisement

3.1.2

Access to the AS-i User Data

Data Access with STEP 7 Micro
To access the binary data of the slaves, you use the analog transfer commands of
the STEP 7 Micro/WIN32 programming language.
Example
If you want to access individual bits of the slave data, you can use the method
shown in the following sample program.
The example created with STEP 7 Micro/WIN32 is valid for a CPU 222 with a
CP 243-2 plugged in directly beside it:
OB1 (STL)
NETWORK 1
LD
SM0.1
SI
Q1.7, 1
LD
I1.1
CALL 1
SBR 1 (STL)
NETWORK 1
LD
SM0.0
RI
Q1.0,6
BMW AIW0, VW100, 8
SI
Q1.0,5
BMW AIW0, VW116, 8
//Below, several examples of access to AS-i bits
LD
V100.0
A
V115.1
A
V116.0
=
V203.2
LD
SM0.0
RI
Q1.0,6
BMW VW900, AOW0, 8
SI
Q1.0,5
BMW AIW0, AOW0, 8
SIMATIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02
Access to the Data of the AS-i Slaves
//If: bit "First Scan":
//PLC_RUN = 1
//If: CP 243-2_READY
//Then: AS-i I/O processing (standard or A slaves)
//Always 1
//Select bank 0
//Transfer standard slaves
//Select bank 31
//Transfer B slaves
//If bit 1 of slave 1
//And bit 2 of slave 31
//And bit 1 of slave 1B
//The bit 3 of slave 7 = 1
//Always 1
//Select bank 0
//Transfer standard slaves
//Select bank 31
//Transfer B slaves
3-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents