14 change_as-i_slave_address – Siemens CP 243-2 User Manual

Page 94

Advertising
background image

Command Interface

5-26

SIMATIC NET CP 243-2 AS-i Master

C79000-G8976-C142/02

5.2.14

Change_AS-i_Slave_Address

Purpose of the Command

With this call, the address of an AS-i slave can be modified.

This call is mainly used to add a new AS-i slave with the default address 0 to the
AS-Interface. In this case, the address is changed from the old slave address (0)
to the new slave address.

This change can only be made when the following conditions are fulfilled:

1. A slave with the “old slave address” exists.

2. If the old slave address is not equal to 0, then a slave with address 0 cannot be

connected at the same time.

3. The “AS-i slave address new”

must have a valid value.

4. An AS-i slave with “slave address new” must not exist.

Note

When the slave address is changed, the AS-i slave is not reset, in other words the
output data of the AS-i slave are retained until new data are received at the new
address.

Structure of the Job Data in the Send Buffer

Bank

Byte

Meaning

2

0

Command number: 0D

H

2

1

Slave address old

2

2

Slave address new

Structure of the Job Data in the Receive Buffer

Bank

Byte

Meaning

2

0

Echo of the command number: 0D

H

2

1

Command status

Advertising