beautypg.com

3 store new configuration for all slaves, Store new configuration for all slaves – EUCHNER AS-i 3.0 Command Interface User Manual

Page 80

background image

AS-i 3.0 Command Interface

Command Interface Examples

Subject to reasonable modifications due to technical advances

Id.-No.: 102875 Issue date - 3.12.2007

EUCHNER GmbH + Co. KG

Kohlhammerstraße 16, D-70771 Leinfelden-Echterdingen

Tel. +49/711/7597-0, Fax +49/711/753316

80

Setting the toggle bit:

The flag NA has to be set before the application is started. In case it is not set, the
flags have to be read out until this flag has been set to 1.

The flag NA indicates that the master is in normal operation mode.

Normal operation mode is necessary to run the application safely.

5.3

Store new configuration for all slaves

1. Switch master in configuration mode

2. Write slave configuration to master

3. Write new list of projected slaves (LPS)

4. Write permanent parameter (PP) to master

5. Switch master to protected mode

6. Wait until master is in normal operation Mode (and protected mode)

12-byte management

1. Set master in config mode

Request: GET_FLAGS

Byte 1

47

hex

(GET_FLAGS)

Byte 2

00

hex

(T = 0, master 1, single master)

Byte 3

00

hex

Byte 4

00

hex

Byte 12

00

hex

Response

Byte 1

47

hex

Byte 2

80

hex

(T = 1, result = 0)

Byte 3

-

-

-

-

-

-

-

POK

Byte 4

OR

APF

NA

CA

AAv

AAs

S0

COK

Byte 5

AAe

OL

DX

Byte 6

00

hex

Byte 12

00

hex

Request: SET_OP_MODE

Byte 1

0C

hex

(SET_OP_MODE)

Byte 2

00

hex

(T = 0, master 1, single master)

Byte 3

01

hex

(= config mode)

Byte 4

00

hex

Byte 12

00

hex