beautypg.com

4 enhanced diagnosis, Enhanced diagnosis – EUCHNER AS-i 3.0 Command Interface User Manual

Page 67

background image

AS-i 3.0 Command Interface

Commands of the Command Interface

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

67

4.7.4

Enhanced diagnosis

Since the "Safety at Work“ monitor diagnosis is longer than the maximum size of
the command interface, it must be read with several adjacent requests.

The byte 5 (‘index’) declares the start index in the array of diagnostic data. If this
start index is 0, the whole diagnosis is fetched from the monitor and stored to an
internal buffer. Otherwise, the AS-i Master will respond out of the internal buffer.
Thus, even though several requests are necessary to read the whole buffer, data
integrity is maintained.

The diagnosis array is set up as follows:

Request

byte

2

7

2

6

2

5

2

4

2

3

2

2

2

1

2

0

1

7E

16

2

T

L

1

1. L=1 long diagnosis for advanced monitor

U

2

2. U=1 unsorted diagnosis (all devices)

circuit

3

02

16

4

slave address

5

index

Response

byte

2

7

2

6

2

5

2

4

2

3

2

2

2

1

2

0

1

7E

16

2

T

result

3

diagnosis byte #index+0

4

diagnosis byte #index+1

n

diagnosis byte #index+n-3

Safety Monitor Diagnosis Array

"basic function range" and "sorted by OSSD"

byte

2

7

2

6

2

5

2

4

2

3

2

2

2

1

2

0

0

00

16

1

state of monitor

2

state of OSSD 1

3

state of OSSD 2

4

number of devices not green, OSSD1

5

number of devices not green, OSSD2

6

device index 32, OSSD 1

7

color of device 32, OSSD 1

8

device index 33, OSSD 1

9

color of device 33, OSSD 1