Siemens CP 243-2 Command Sequence, AS-i master User program Reaction to command

Models: CP 243-2

1 150
Download 150 pages 32.28 Kb
Page 71
Image 71

Command Interface

Command Sequence

The diagram below shows the following:

SHow to execute commands in the user program

SHow the CP 243-2 reacts to a command

AS-i master

CP 243-2

(user program)

(reaction to command)

Set command parameter in the analog output area

Initial status

ASI_COM bit = 0

ASI_RESP bit = 0

Start command

Set ASI_COM bit = 1

Wait for response

ASI_RESP bit = ?

Response data valid

ASI_RESP bit = 1 detected

Evaluate response data

After evaluation, set

ASI_COM = 0

Ready to send command detected

ASI_RESP bit = 0 detected

Initial status

ASI_COM bit = 0

ASI_RESP bit = 0

Receives command

Executes command

Signals command executed

Sets ASI_RESP = 1

Detects that response data were evaluated

Ready for new command

Sets ASI_RESP = 0

Figure 5-1

SIMATIC NET CP 243-2 AS-i Master

5-3

C79000-G8976-C142/02

Page 71
Image 71
Siemens CP 243-2 installation instructions Command Sequence, AS-i master User program Reaction to command