13 set_operation_mode – Siemens CP 243-2 User Manual

Page 93

Advertising
background image

Command Interface

5-25

SIMATIC NET CP 243-2 AS-i Master
C79000-G8976-C142/02

5.2.13

Set_Operation_Mode

Purpose of the Command

With this call, you can select between the configuration mode and the protected
mode.

In the protected mode, only AS-i slaves are activated that are entered in the LPS
and whose expected and actual configurations match, in other words when the I/O
configuration and ID codes of the detected AS-i slaves are identical to the
configured values.

In the configuration mode, all detected AS-i slaves (except for slave address “0”)
are activated. This also applies to AS-i slaves in which there are differences
between the expected and actual configuration.

The “OPERATION MODE” bit is saved permanently in the EEPROM, i.e. it is
retained following a startup/restart.

When changing from the configuration mode to the protected mode, the CP 243-2
is restarted (transition to the offline phase followed by switchover to the online
mode).

Note

If an AS-i slave with the address “0” is connected, the CP 243-2 cannot switch
from the configuration mode to the protected mode.

Structure of the Job Data in the Send Buffer

Bank

Byte

Meaning

2

0

Command number: 0C

H

2

1

Operating mode

protected mode: 00H

configuration mode: 01H

Structure of the Job Data in the Receive Buffer

Bank

Byte

Meaning

2

0

Echo of the command number: 0C

H

2

1

Command status

Advertising