Access to the Data of the AS-i Slaves

3.2Access to the Analog Data of the AS-i Slaves (Slaves complying with Profile 7.3 or 7.4)

3.2.1Addressing the Analog AS-i Slaves in the User Program

Requirements

Before you can access the I/O data of the AS-i slaves, the following requirements must be met:

SDeactivate the filtering of the analog inputs for the CP 243±2 in the system data block of the S7±200 CPU.

SSet the ªPLC_RUNº bit (bit 7) in the digital control byte to '1' at the beginning of the cyclic program.

SAccess to the I/O data of the slaves is then only allowed when the ªCP_Readyº bit (bit 1) in the digital status byte is set to '1'.

The following explanations do not apply to analog slaves complying with profile 7.1 or 7.2. Analog value transfer for these slaves is not supported by the CP 243-2.

Access to the Analog Values

The CP 243-2 assigns four words in the input area and four words in the output area for each AS-i slave. The PLC can write these values (analog outputs) or read these values (analog inputs).

Assignment of the AS-i Analog Data

Bank

32

32

32

32

32

32

32

32

32

32

32

32

32

32

32

32

Byte no.

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

Meaning

Slave 1, channel 1, high byte

Slave 1, channel 1, low byte

Slave 1, channel 2, high byte

Slave 1, channel 2, low byte

Slave 1, channel 3, high byte

Slave 1, channel 3, low byte

Slave 1, channel 4, high byte

Slave 1, channel 4, low byte

Slave 2, channel 1, high byte

Slave 2, channel 1, low byte

Slave 2, channel 2, high byte

Slave 2, channel 2, low byte

Slave 2, channel 3, high byte

Slave 2, channel 3, low byte

Slave 2, channel 4, high byte

Slave 2, channel 4, low byte

3-8

SIMATIC NET CP 243-2 AS-i Master

C79000-G8976-C142/02

Page 56
Image 56
Siemens CP 243-2 Access to the Analog Values, Assignment of the AS-i Analog Data, Bank Byte no Meaning