Interface to the User Program in the S7-200 CPU

2.3.4Control Byte (Output Register 8DO)

Meaning for the User Program

The user program controls the data exchange with the CP 243-2 using this register.

Structure of the Control Byte

Bit 7

Bit 6

 

 

PLC_RUN ASI_COM

Bit 5

BS5

Bit 4

BS4

Bit 3

BS3

Bit 2

BS2

Bit 1

BS1

Bit 0

BS0

Description of the Bits

Table 2-2

Bit

BS0..BS5

ASI_COM

PLC_RUN

Value

Meaning

 

 

0 ... 63

Bank select bits for changing the bank in the analog module

dec.

(see Section 2.5).

 

 

0/1

Job bit for the AS-i command interface (see Section 5.1).

 

 

In the STOP mode of the S7-200 CPU, the CP must send defined values to all AS-i slaves (see Chapter 3). Since the AS-i slave data are transferred via the analog area and the S7-200 CPU does not set this area to '0' when it changes from RUN to STOP, the CPU mode must be signaled to the CP 243-2 using the PLC_RUN bit as follows:

0Signal to the CP 243-2 that the S7-200 CPU is in the STOP mode.

The CP 243-2 sends '0' to all AS-i binary slaves. The analog value transfer to analog output slaves is interrupted. The

S7-200 CPU sets the bit automatically to ª0º at a change from RUN to STOP.

1Signals to the CP 243-2 that the S7-200 CPU is in the RUN mode.

The CP 243-2 sends the content of output bank 0 to all AS-i slaves (see Section 2.4). The user program must set this bit to ª1º during startup (first scan).

Do not set the PLC_RUN bit permanently to ª1º with the S7-200 operating system functions such as ªCPU configuration/setting the outputsº or ªforce outputsº.

SIMATIC NET CP 243-2 AS-i Master

2-11

C79000-G8976-C142/02

Page 37
Image 37
Siemens CP 243-2 Control Byte Output Register 8DO, Structure of the Control Byte, Bit, Value Meaning