Command Interface

5.2.13Set_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 savedpermanently 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

2

2

Byte

0

1

Meaning

Command number: 0C H

Operating mode

protected mode: 00H

configuration mode: 01H

Structure of the Job Data in the Receive Buffer

Bank

2

2

Byte

0

1

Meaning

Echo of the command number: 0C H

Command status

SIMATIC NET CP 243-2 AS-i Master

5-25

C79000-G8976-C142/02

Page 93
Image 93
Siemens CP 243-2 installation instructions SetOperationMode, Purpose of the Command