AS-i/PROFIBUS Gateway User Manual
AS-i/PROFIBUS Gateway User Manual
AS-i/PROFIBUS Gateways
User Manual
AS-i/PROFIBUS Gateway Table of Contents
Table of Contents
2 Safety ................................................................................................... 9
2.1 Intended Use ...................................................................................................... 9
2.2 General Safety Information ............................................................................... 9
Subject to reasonable modifications due to technical advances. Copyright Bihl+Wiedemann, Printed in Germany
2 Bihl+Wiedemann GmbH · D-68199 Mannheim · Tel. +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Table of Contents
Subject to reasonable modifications due to technical advances. Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Tel. +49-621-339960 · Fax +49-621-3392239 · Internet [Link] 3
AS-i/PROFIBUS Gateway Table of Contents
8 PROFIBUS DP .................................................................................... 60
8.1 DP Telegrams ................................................................................................... 60
8.1.1 Diagnosis ........................................................................................................... 60
[Link] Parameters ........................................................................................................ 63
8.1.2 Configuration DP V0 (cyclic data) ...................................................................... 65
[Link] AS-i-V2.1 Mode .................................................................................................. 65
8.1.3 I/O Data ............................................................................................................. 67
[Link] Process data ...................................................................................................... 67
[Link] Analog data ........................................................................................................ 68
[Link] Command Interface ........................................................................................... 69
8.2 DP V1 ................................................................................................................ 69
8.3 Restrictions ...................................................................................................... 70
Subject to reasonable modifications due to technical advances. Copyright Bihl+Wiedemann, Printed in Germany
4 Bihl+Wiedemann GmbH · D-68199 Mannheim · Tel. +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Table of Contents
Subject to reasonable modifications due to technical advances. Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Tel. +49-621-339960 · Fax +49-621-3392239 · Internet [Link] 5
AS-i/PROFIBUS Gateway Table of Contents
Subject to reasonable modifications due to technical advances. Copyright Bihl+Wiedemann, Printed in Germany
6 Bihl+Wiedemann GmbH · D-68199 Mannheim · Tel. +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway
Declaration of Conformity
according to 89/336/EEC and 73/23/EEC
Bihl+Wiedemann GmbH, Mannheim, Germany, hereby declares under its sole re-
sponsibility that the products mentioned below are according to the listed harmo-
nized standards or normative documents and (where neccessary) a competent
body has been released.
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
7
AS-i/PROFIBUS Gateway The Symbols Used
This symbol warns the user of a possible failure. Not following this
warning can lead to total failure of the device or any other connected
equipment.
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
8 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Safety
2 Safety
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
9
AS-i/PROFIBUS Gateway General Information
3 General Information
This operating instruction holds for the following devices of the Bihl+Wiedemann
GmbH:
• AS-i/PROFIBUS gateway in stainless steel housing - 1 master
Article No. BWU1567
• AS-i/PROFIBUS gateway in stainless steel housing - 2 master
Article No. BWU1568
• AS-i/PROFIBUS gateway in stainless steel housing - 2 master
Version 1 power supply for 2 AS-i circuits Article No. BWU1569
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
10 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway General Information
Accessories:
Software "AS-i Control Tools" (Article no. BW1203)
Serial PROFIBUS master (Article no. BW1258)
PROFIBUS DP master simulator (Article no. BW1257)
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
11
AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys of the Gateways in
On the front panel of the device in stainless steel housing are located:
• Terminals to connect the power supply and the AS-i circuit
• A 9 pin SUB-D connector as PROFIBUS interface
• 7 LEDs
• A LC display
• 4 push-buttons to configure the device
4.1 Master
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
12 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys of the Gateways in
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
13
AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys of the Gateways in
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
14 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys of the Gateways in
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
15
AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys of the Gateways in
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
16 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys of the Gateways in
9 5 RxD/TxD-N
8 4 (data line A)
7 3
6 2 RxD/TxD-P
1 (data line B)
PROFIBUS
The AS-i/PROFIBUS gateway sends and receives on pins 3 and 8 of the SUB-D
socket. The PROFIBUS signal “RxD/TxD-N (data line A)1” is located on pin 8, the
signal “RxD/TxD-P (data line B)1” is located on pin 3.
The pins 5 (0 V) and 6 (5 V) supply 5 V DC for the bus termination.
issue date 26.1.2005
1. If you measure the DC voltage between RxD/TxD-P (data line B) and RxD/TxD-N (data line A), RxD/TxD-P (data line B) is the positive pole
when the bus is silent.
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
17
AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys of the Gateways in
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
18 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
5.1.1 Commissioning
[Link] Fullgraphic Display
OK
LCD LCD
1.12A PROFIBUS
QUICK SETUP
SETUP
UNKNOWN SLAVE IO + PARAM. TEST
klassische Anzeige vollgrafische Anzeige
classical display ESC fullgraphical display
Affichage classique Affichage graphique
indicazione classico indicazione grafico
indicación clásico indicación gráfico
siehe Zusatzblatt
see additional page
page supplémentaire
pagina supplementare
página adicional
LCD
LCD PROFIBUS ADDRESS
OLD ADDRESS 3
PROFIBUS
NEW ADDRESS 000
QUICK SETUP
SETUP
2x ↓
OK
LCD
LCD PROFIBUS ADDRESS
OLD ADDRESS 3
PROFIBUS ADDRESS
NEW ADDRESS 000
PROFIBUS STATUS
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
19
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
2x OK ↑ OK
LCD
PROFIBUS ADDRESS
OLD ADDRESS 14
NEW ADDRESS 000
PROFIBUS ADDRESS LCD
OLD ADDRESS 3
NEW ADDRESS 010
2x ESC
LCD
4x ↑ OK
PROFIBUS
QUICK SETUP
SETUP
2x ESC
Das Gerät ist werkseitig auf Adresse 3 eingestellt.
The device is set to address 3 at the factory.
L’appareil est réglé en usine à l’adresse 3.
Il dispositivo viene de la fábrica con l’indirizzo 3.
El aparato viene ajustado de fábrica en la dirección 3.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
20 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
AS-Interface
AS-Interface
PROFIBUS PROFIBUS
config error
Master
1. 1
Master
config error
U AS-Interface U AS-Interface
AS-Interface active AS-i active
prg enable prg enable
prj mode prj mode
AS-Interface AS-Interface
0.5s
AS-Interface LCD
AS-Interface
Slave 1
1. 5
Slave 1
AS-Interface
1. 41 AS-Interface
Slave 5
0.5s
SEARCHING SLAVES
Slave 5
AS-Interface
1.24
AS-Interface
Slave 24
Slave 24
0.5s
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
21
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
LCD LCD
1. 5 STORE AS-INTERFACE
CONFIGURATION
OK
STORE +PRJ MODE
OK ↓ 2x ESC
LCD
PROFIBUS config error
QUICK SETUP
SETUP LCD
IO + PARAM. TEST
OK
1.
CONFIGURATION OK
LCD
LCD
WARNING:
OUTPUTS MAY BE
RESET PROFIBUS ERROR
NO CONNECTION
OK ↓
LCD
STORE AS-I
CONFIGURATION
STORE +RUN
STORE +PRJ MODE
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
22 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
Master 1.1
U AS-Interface
AS-Interface active
prg enable
prj mode MISSING SLAVE
AS-Interface
2.0s
AS-Interface
Slave 1 LCD
AS-Interface
Slave 5
1.24
MISSING SLAVE
AS-Interface
2.0s
Slave 24
PROFIBUS PROFIBUS
config error config error LCD
Master
Master
U AS-Interface U AS-Interface
AS-Interface active AS-Interface active
PROFIBUS ERROR
prg enable prg enable
NO CONNECTION
prj mode prj mode
AS-Interface AS-Interface
AS-Interface AS-Interface
Slave 1 Slave 1 set/↓
AS-Interface AS-Interface
Slave 5 Slave 5
24
AS-Interface
AS-Interface
Slave 24
Slave 24
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
23
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
5.1.3 Addressing
[Link] Programming Slave 0 to Address 4
LCD AS-INTERFACE SLAVE ADDR. LCD
1. 0 OLD ADDRESS 0
NEW ADDRESS 00
UNKNOWN SLAVE
OK 2x ↓ 2x OK 4x ↑
LCD
PROFIBUS AS-INTERFACE SLAVE ADDR. LCD
QUICK SETUP OLD ADDRESS 0
SETUP NEW ADDRESS 04
IO + PARAM. TEST
2x OK
OK
LCD
AS-INTERFACE SLAVE ADDR. LCD
AS-INTERFACE CIRCUIT 1
OLD ADDRESS 0
AS-INTERFACE CIRCUIT 2
OK
3x ESC
OK
LCD
LCD
AS-INTERFACE SLAVE ADDR.
FORCE OFFLINE
1. 4
OPERATION MODE UNKNOWN SLAVE
STORE ACT. CFG.
OK 2x ↓
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
24 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
5.2.1 Commissioning
[Link] Fullgraphic Display
OK
LCD LCD
1.12A PROFIBUS
QUICK SETUP
SETUP
UNKNOWN SLAVE IO + PARAM. TEST
klassische Anzeige vollgrafische Anzeige
classical display ESC fullgraphical display
Affichage classique Affichage graphique
indicazione classico indicazione grafico
indicación clásico indicación gráfico
siehe Zusatzblatt
see additional page
page supplémentaire
pagina supplementare
página adicional
LCD
LCD PROFIBUS ADDRESS
OLD ADDRESS 3
PROFIBUS
NEW ADDRESS 000
QUICK SETUP
SETUP
2x ↓
OK
LCD
LCD PROFIBUS ADDRESS
OLD ADDRESS 3
PROFIBUS ADDRESS
NEW ADDRESS 000
PROFIBUS STATUS
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
25
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
2x OK ↑ OK
LCD
PROFIBUS ADDRESS
OLD ADDRESS 14
NEW ADDRESS 000
PROFIBUS ADDRESS LCD
OLD ADDRESS 3
NEW ADDRESS 010
2x ESC
LCD
4x ↑ OK
PROFIBUS
QUICK SETUP
SETUP
2x ESC
Das Gerät ist werkseitig auf Adresse 3 eingestellt.
The device is set to address 3 at the factory.
L’appareil est réglé en usine à l’adresse 3.
Il dispositivo viene de la fábrica con l’indirizzo 3.
El aparato viene ajustado de fábrica en la dirección 3.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
26 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
AS-Interface
AS-Interface
PROFIBUS PROFIBUS
config error
Master
1. 1
Master
config error
U AS-Interface U AS-Interface
AS-Interface active AS-i active
prg enable prg enable
prj mode prj mode
AS-Interface AS-Interface
0.5s
AS-Interface LCD
AS-Interface
Slave 1
1. 5
Slave 1
AS-Interface
1. 41 AS-Interface
Slave 5
0.5s
SEARCHING SLAVES
Slave 5
AS-Interface
1.24
AS-Interface
Slave 24
Slave 24
0.5s
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
27
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
LCD LCD
1. 5 STORE AS-INTERFACE
CONFIGURATION
OK
STORE +PRJ MODE
OK ↓ 2x ESC
LCD
PROFIBUS config error
QUICK SETUP
SETUP LCD
IO + PARAM. TEST
OK
1.
CONFIGURATION OK
LCD
LCD
WARNING:
OUTPUTS MAY BE
RESET PROFIBUS ERROR
NO CONNECTION
OK ↓
LCD
STORE AS-I
CONFIGURATION
STORE +RUN
STORE +PRJ MODE
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
28 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
Master 1.1
U AS-Interface
AS-Interface active
prg enable
prj mode MISSING SLAVE
AS-Interface
2.0s
AS-Interface
Slave 1 LCD
AS-Interface
Slave 5
1.24
MISSING SLAVE
AS-Interface
2.0s
Slave 24
PROFIBUS PROFIBUS
config error config error LCD
Master
Master
U AS-Interface U AS-Interface
AS-Interface active AS-Interface active
PROFIBUS ERROR
prg enable prg enable
NO CONNECTION
prj mode prj mode
AS-Interface AS-Interface
AS-Interface AS-Interface
Slave 1 Slave 1 set/↓
AS-Interface AS-Interface
Slave 5 Slave 5
24
AS-Interface
AS-Interface
Slave 24
Slave 24
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
29
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
5.2.3 Addressing
[Link] Programming Slave 0 to Address 4
LCD AS-INTERFACE SLAVE ADDR. LCD
1. 0 OLD ADDRESS 0
NEW ADDRESS 00
UNKNOWN SLAVE
OK 2x ↓ 2x OK 4x ↑
LCD
PROFIBUS AS-INTERFACE SLAVE ADDR. LCD
QUICK SETUP OLD ADDRESS 0
SETUP NEW ADDRESS 04
IO + PARAM. TEST
2x OK
OK
LCD
AS-INTERFACE SLAVE ADDR. LCD
AS-INTERFACE CIRCUIT 1
OLD ADDRESS 0
AS-INTERFACE CIRCUIT 2
OK
3x ESC
OK
LCD
LCD
AS-INTERFACE SLAVE ADDR.
FORCE OFFLINE
1. 4
OPERATION MODE UNKNOWN SLAVE
STORE ACT. CFG.
OK 2x ↓
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
30 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
5.3.1 Commissioning
[Link] Fullgraphic Display
OK
LCD LCD
1.12A PROFIBUS
QUICK SETUP
SETUP
UNKNOWN SLAVE IO + PARAM. TEST
klassische Anzeige vollgrafische Anzeige
classical display ESC fullgraphical display
Affichage classique Affichage graphique
indicazione classico indicazione grafico
indicación clásico indicación gráfico
siehe Zusatzblatt
see additional page
page supplémentaire
pagina supplementare
página adicional
LCD
LCD PROFIBUS ADDRESS
OLD ADDRESS 3
PROFIBUS
NEW ADDRESS 000
QUICK SETUP
SETUP
2x ↓
OK
LCD
LCD PROFIBUS ADDRESS
OLD ADDRESS 3
PROFIBUS ADDRESS
NEW ADDRESS 000
PROFIBUS STATUS
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
31
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
2x OK ↑ OK
LCD
PROFIBUS ADDRESS
OLD ADDRESS 14
NEW ADDRESS 000
PROFIBUS ADDRESS LCD
OLD ADDRESS 3
NEW ADDRESS 010
2x ESC
LCD
4x ↑ OK
PROFIBUS
QUICK SETUP
SETUP
2x ESC
Das Gerät ist werkseitig auf Adresse 3 eingestellt.
The device is set to address 3 at the factory.
L’appareil est réglé en usine à l’adresse 3.
Il dispositivo viene de la fábrica con l’indirizzo 3.
El aparato viene ajustado de fábrica en la dirección 3.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
32 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
AS-Interface
AS-Interface
PROFIBUS PROFIBUS
config error
Master
1. 1
Master
config error
U AS-Interface U AS-Interface
AS-Interface active AS-i active
prg enable prg enable
prj mode prj mode
AS-Interface AS-Interface
0.5s
AS-Interface LCD
AS-Interface
Slave 1
1. 5
Slave 1
AS-Interface
1. 41 AS-Interface
Slave 5
0.5s
SEARCHING SLAVES
Slave 5
AS-Interface
1.24
AS-Interface
Slave 24
Slave 24
0.5s
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
33
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
LCD LCD
1. 5 STORE AS-INTERFACE
CONFIGURATION
OK
STORE +PRJ MODE
OK ↓ 2x ESC
LCD
PROFIBUS config error
QUICK SETUP
SETUP LCD
IO + PARAM. TEST
OK
1.
CONFIGURATION OK
LCD
LCD
WARNING:
OUTPUTS MAY BE
RESET PROFIBUS ERROR
NO CONNECTION
OK ↓
LCD
STORE AS-I
CONFIGURATION
STORE +RUN
STORE +PRJ MODE
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
34 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
Master 1.1
U AS-Interface
AS-Interface active
prg enable
prj mode MISSING SLAVE
AS-Interface
2.0s
AS-Interface
Slave 1 LCD
AS-Interface
Slave 5
1.24
MISSING SLAVE
AS-Interface
2.0s
Slave 24
PROFIBUS PROFIBUS
config error config error LCD
Master
Master
U AS-Interface U AS-Interface
AS-Interface active AS-Interface active
PROFIBUS ERROR
prg enable prg enable
NO CONNECTION
prj mode prj mode
AS-Interface AS-Interface
AS-Interface AS-Interface
Slave 1 Slave 1 set/↓
AS-Interface AS-Interface
Slave 5 Slave 5
24
AS-Interface
AS-Interface
Slave 24
Slave 24
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
35
AS-i/PROFIBUS Gateway Commissioning of the AS-i/PROFIBUS Gateways
5.3.3 Addressing
[Link] Programming Slave 0 to Address 4
LCD AS-INTERFACE SLAVE ADDR. LCD
1. 0 OLD ADDRESS 0
NEW ADDRESS 00
UNKNOWN SLAVE
OK 2x ↓ 2x OK 4x ↑
LCD
PROFIBUS AS-INTERFACE SLAVE ADDR. LCD
QUICK SETUP OLD ADDRESS 0
SETUP NEW ADDRESS 04
IO + PARAM. TEST
2x OK
OK
LCD
AS-INTERFACE SLAVE ADDR. LCD
AS-INTERFACE CIRCUIT 1
OLD ADDRESS 0
AS-INTERFACE CIRCUIT 2
OK
3x ESC
OK
LCD
LCD
AS-INTERFACE SLAVE ADDR.
FORCE OFFLINE
1. 4
OPERATION MODE UNKNOWN SLAVE
STORE ACT. CFG.
OK 2x ↓
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
36 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
Klassischer Modus
Classic Mode
1.12A
grün markierte Werte sind editierbar
green marked data can be edited Erweiterter Display Modus
Advanced Display Mode
1 +32767 OVERFL
2A-2 | 3A-F
4A-E | 5A-3
.... LOS LIST OF
.... OFFLINE SLAVES
ANALOG OUTPUTS 30A-8 | 31A-9 CLEAR ALL
0 +17898
| 1B-0 SET ALL
2B-E | 3B-0 | 1A- X
1 +2500
4B-E | 5B-0 2A- | 3A-
PARAM F ... 5A-X
4A-X | 5A- X
PERM PARAM F 30B-8 | 31B-9 ....
CONFIG 7FFE 30A-X | 31A-
PERM CONF 7FFE | 1B-X
2B-X | 3B-X
4B-X | 5B-X
...
RS 232 30B-X | 31B-X
or
le
en e
prg ctiv
e rr
e
s
od
bu
r
-i
g
Profibus
a
we
m
AS
ofi
nfi
-i
AS
p rj
po
Pr
co
FACTORY RESET
DO RESET
Mode
ESC OK
issue date 26.1.2005
Set
ASI
+ASI1- +ASI1- +ASI2- +PWR-
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
37
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
Fehlersuche/Diagnostics
Klassischer Modus
Classic Mode
1.12A
Erweiterter Display Modus
grün markierte Werte sind editierbar Advanced Display Mode
green marked data can be edited
VERSION
20000919
FEATURE STRING
[Link]
RS 232
or
le
en e
tiv
err
ab
e
us
od
ac
er
-i
fib
fig
Profibus
m
AS
w
-i
g
Pro
prj
po
AS
pr
co
Mode
ESC OK
Set
ASI
+ASI1- +ASI1- +ASI2- + PWR-
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
38 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
In the fullgraphic mode, however, the settings are protected, as long as the supe-
rior fieldbus (PROFIBUS) is running.
The device starts in the classical mode, like the former AS-i Masters with two-digit
display. Press the buttons ESC or OK to switch to the fullgraphic mode. To return
to the classical mode, simply press the ESC-button several times.
In fullgraphic mode, the selection can be moved up and down with the arrow but-
tons.
Pressing OK will switch to the selected function or menu (one step to the right on
the drawing, page 19). Pressing ESC will switch back to the previous menu.
To edit data values highlight them with the selection bar, press OK, then change
them with the arrow-buttons and confirm with OK. The ESC-button cancels the
editing process.
All possible addresses are displayed one after the other from 1A to 31A and from
1B to 31B. Data for single slaves are displayed at the addresses 1A - 31A.
This function is for setting and changing the PROFIBUS station address.
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
39
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
The number behind "Old Address" shows the actual station address. By selecting
"New Address", this address can be changed.
6.1.2 PROFIBUS Status
The function PROFIBUS status indicates if and how many connections are active
on each PROFIBUS channel.
DPV0 = cyclic channel:
0: not active
1: active
DPV1 = acyclic channel:
0: not active
≠0: number of connections
With this function you switch into configuration mode and store the actual configu-
ration. Then the master is started in the protected mode.
To carry out the quick setup choose the menu "Store+Run". Now the actual confi-
guration of the AS-i circuit and the connected slaves will be read.
To store the actual read configuration choose the menu "Store+Run" and confirm
the selection with the OK button.
Then in the display the submenu "Store AS-Interface Configuration" will appear.
By pressing "OK" the take over and the storing of the configuration is confirmed.
By pressing the ESC button twice you will leave the configuration mode and the
master switches to the protected mode.
If an error occurs while storing the configuration, the following error message is
displayed:
PROFIBUS Errors
No Connection
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
40 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
By pressing the ESC button you leave this menu and change back to the main
menu. By selecting "Store + Prj Mode" you set the master in the protected mode.
Now you can solve errors with the help of the diagnosis and configuration.
This function sets and changes the addresses of both new and configured AS-i
slaves. This function replaces the handheld AS-i address programming device.
Please note that you must have selected the desired AS-i circuit usingf the arrow
and the OK button when you operate a device with two AS-i circuits (see chapter
6.5.1).
If a new slave is connected to the AS-i circuit, the second line "Connect " will ap-
pear in the display. If the address of an exixting slave should be changed, you
have to select the menu entry "Connect no Slave".
"Old Address" shows the address of the first detected AS-i slave on the AS-i cir-
cuit.
If "Old Address" is selected, the next detected AS-i slave can by selected by pres-
sing the "OK" button. The new address for the AS-i slave has to be set with "new
Address".
The (re-) addressing is carried out by selecting the menu entry "Prg" and pressing
the OK button.
If an error occurs while addressing a slave, one of the following error messages is
displayed for about 2 seconds:
Failed: SND: slave with old address has not been detected.
Failed: SD0: slave with address zero has been detected.
Failed: SD2: slave with new address has been detected.
Failed: DE: could not delete old address.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
41
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
Now a warning message is displayed, that possibly by this test outputs are set and
the host may loose control of the circuit.
To start the test press the OK button, to cancel press the button ESC.
In the following menu the slave to be tested has to to be chosen by selecting the
slave address.
Afterwards the test is started by confirming the menu entry "Test".
After finishing the test all relevant informations is displayed for the tested slave.
A successful test is displayed with "OK" below the address of the tested slave.
The following information are displayed:
• Address of the tested slave
• Test is successful/not successful
• Binary inputs (digital inputs), see also “Binary Input“, chapter 6.6.3
• Binary outputs (digital outputs), see also “Binary Outputs“, chapter 6.6.4
• Analog inputs, see also “Analog Inputs“, chapter 6.6.5
• Analog outputs, see also “Analog Outputs“, chapter 6.6.6
• Param (actual parameters), see also “Parameter“, chapter 6.6.7
• Perm Param (projected parameters), see also “Permanent Param (Projected
Parameter)“, chapter 6.5.6
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
42 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
To reach this setup menu you have to change the desired AS-i circuit by using the
arrow and the OK buttons.
The function is only implemented in the double master.
It makes possible to change the AS-i circuit that is currently active for being ope-
rated.
The number behind "old circuit" shows the active AS-i circuit. By selecting "new
circuit", the other AS-i circuit can be chosen to be active.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
43
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
Within the menu "Setup", one of the following submenues can be chosen:
• AS-i Circuit
• AS-i Slave Addr (AS-i Slave Address)
• Force Offline (switch AS-i Master offline)
• Operation Mode
• Store Act Cfg (store actual detected configuration)
• Permanent Param (projected parameter)
• Permanent Cfg (projected configuration data)
• Addr. Assistant (address assistent)
• LOS (list of offline-slaves)
6.5.3 Force Offline
This function shows the current operation mode of the AS-i master:
Protected Mode: Protected mode
Config Mode: Configuration mode
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
44 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
This function allows you to set the permanent parameters. A list of all slaves is dis-
played from 1A - 31A and from 1B - 31B. The permanent parameters for single
slaves are set from address 1A - 31A. The parameter is shown as a hexadecimal
value behind the slave address.
6.5.7 Permanent Config (Projected Configuration Data)
With this function, the projected configuration data can be projected. The values
for the configuration data are displayed behind the slave address in the following
order:
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
45
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
The AS-i address assistant helps you to set up the AS-i circuit quickly. Once you
have stored the AS-i configuration, the AS-i address assistant addresses a new
AS-i slave with address zero to the desired address.
Selecting "Assistant on" or "Assistant off" switches the AS-i address assistant on
or off. The current state of the AS-i address assistant is displayed:
Assistant on: AS-i address assistant is switched on.
Assistant off: AS-i address assistant is switched off.
Procedure:
1. Store AS-i Configuration to the master. This can be done very comfortably with
the Windows software AS-i Control Tools (Master | Write configuration to the
AS-i Master ...), or directly with the fullgraphic display (see chapter 6.5.7).
2. All AS-i slaves have to be addressed to 0 or to the desired address. The slaves
must be disconnected from the AS-i circuit.
3. Start the AS-i address assistant.
4. Now connect the AS-i slaves one after the other. The last line of the display of
the AS-i address assistant shows which AS-i slave has to be connected next.
6.5.9 LOS (List of Offline Slaves)
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
46 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
With this function the master can be reset to the factory setting. The reset can be
chosen by slecting the menu entry "Do Reset".
6.6 IO + Param. Test (Testing AS-i In- and Outputs as well as reading and
writing AS-i Parameters)
To reach this menu entry you have to change the desired AS-i circuit by using the
the arrow and the OK buttons.
The function is only implemented in the double master.
It makes possible to change the AS-i circuit that is currently active for being ope-
rated.
The number behind "Old Circuit" shows the active AS-i circuit. By selecting "New
Circuit", the other AS-i circuit can be chosen to be active.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
47
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
6.6.2 IO + Param. Test (Testing AS-i In- and Outputs as well as reading and
writing AS-i Parameters)
Before changing to the menu the following warning message will displayed:
"Warning: Outputs may be set and Host may lose control."
The menu "IO + [Link]" enables you to choose one of the following subme-
nues:
• Binary Inputs
• Binary Outputs
• Analog Inputs
• Analog Outputs
• Parameter
6.6.3 Binary Input
This list shows the state of the binary inputs for all AS-i slaves.
0: Input deleted
1: Input set
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
48 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
This function shows the state of the binary outputs for all AS-i slaves.
0: Output deleted
1: Output set
The binary outputs can be changed after selecting the desired AS-i slave.
6.6.5 Analog Inputs
This function shows the state of the analog inputs for all AS-i slaves.
The display is as follows:
AS-i slave address, hexadecimal 16 bit value, bar display indicating the input
or output value
An eventual value overflow is displayed by "Overfl" additionally.
This function shows the state of the analog outputs for all AS-i slaves.
The display is as follows:
AS-i slave address, hexadecimal 16 bit value, bar display
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
49
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
The analog outputs can be changed after selecting the desired AS-i slave.
6.6.7 Parameter
This function shows the hexadecimal value of the current AS-i parameters for all
AS-i slaves.
The actual AS-i parameters can be changed after selecting the desired slave
address.
To reach this menu entry you have to change the desired AS-i circuit by using
the arrow and the OK button.
The function is only implemented in the double master.
It makes possible to change the AS-i circuit that is currently active for being ope-
rated.
The number behind "old circuit" shows the active AS-i circuit. By selecting "new
circuit", the other AS-i circuit can be chosen to be active.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
50 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
The menu "Diagnosis" enables you to choose one of the following submenues:
• EC-Flags (Execution control flags)
• Actual Config (actual configuration)
• LPF (list of periphery faults)
• AS-i Master (Info)
6.7.3 Flags
This function shows the EC-flags hexadecimaly, binary and as single bits be-
ginning with the lowest-order bit.
Byte 1:
Bit 0: Periphery_OK
This flag is set, if no AS-i slave signs a periphery fault.
Byte 2:
Bit 0: Offline_Ready
The flag is set, if the AS-i master is in the offline phase.
Bit 1: AS-i Pwr Fail
The flag is set, if the AS-i circuit is not sufficiently powered.
Bit 2: Normal_Op.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
51
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
Bit 3: Config_Active
The flag is set in the configuration mode and is reset in the pro-
tected mode.
Bit 4: Auto_Addr_Avl
The flag is set, if the automatic addressing is possible. This means
that exactly one slave is failed.
Bit 5: Auto_Addr_Asn
The flag is set, if the automatic addressing is possible
(AUTO_ADDR_ENABLE = 1; no "incorrect" AS-i slave is
conntected to AS-Interfaxe).
Bit 6: LDS.0
The flag is set, if an AS-i slave with address 0 has been detected.
Bit 7: 0 = Config_OK
The flag is set, if the projected configuration corresponds with the ac-
tual configuration.
Byte 3:
Bit 0: Auto_Addr_Ena
This flag indicates if the automatic addressing is locked (bit = 0) or re-
leased (bit = 1) by the user.
Bit 1: Offline
This bit is set if the operating mode offline is to be or already taken.
Bit 2: Data_Exch_Act
If the flag "Data Exchange Active" is set, the data exchange is released
with the AS-i slaves in the data exchange phase. If the bit is not set, the
data exchange with AS-i slaves will be locked. Instead of data tele-
gramms READ_ID telegramms will be sent.
The bit is set by the AS-i master by change over in the offline phase.
(See also „Get Flags (GET_FLAGS)“, page 82)
6.7.4 Actual Config (Actual Configuration)
This function shows the state of the actual configuration of the individual AS-i sla-
ves.
At the end of the list there is a help text describing the abbreviations:
X (O.K.): The configuration data of the detected AS-i slave matches the
projected configuration data.
issue date 26.1.2005
D (Detected Only): An AS-i slave is detected at this address, but not projected.
P (Projected Only): An AS-i slave is projected at this address, but not detected.
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
52 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
C (Type Conflict): The configuration data of the detected AS-i slave does not
match the projected configuration data. The actual detected
configuration of the connected AS-i slave is displayed.
F (Periph. Fault): The AS-i slave has a peripheral fault.
After selecting the desired AS-i slave address the values for the actual configura-
tion data are displayed behind the respective address in the following order:
IO (I/O-configuration) ID (ID-configuration) xID1 (extended ID1)
xID2 (extended ID2)
The list shows AS-i slaves, which have released a peripheral fault.
Empty field: Periphery O.K.
X: Peripheral fault
6.7.6 AS-i Master (Info)
This function shows information about the version and the features of the AS-i ma-
ster.
Version xxxxxxxx (date of the firmware)
Feature String xxxxxxxxxxxxxxxx
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
53
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
This list shows the error counter for each single AS-i slave.
Furthermore the number of power failures on AS-i (APF) is displayed.
By selecting "Reset", the error counters are reset to 0.
6.8.2 LCS (List of Slaves having caused a Configuration Error)
This list shows for each single AS-i slave whether at least one configuration error
was caused by an enormous telegram transmission. This function is especially im-
portant if the configuration error only occurs short-time.
Empty field: No error
X: AS-i slave caused a configuration error.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
54 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
The menu "Fault Detector" shows information about the AS-i detector and allows
deleting of the AS-i detector´s history. Furthermore a list of abbreviations in plain
language can be found is in the section "Help".
By selecting "Reset" the history of the AS-i detector can be deleted.
In the section "Historic" the appeared error messages of the AS-i detector are li-
sted since the last "Reset".
In the section "Actual." the actual appeared error messages of the AS-i detector
are listed.
Following error messages are possible:
• Duplicate address (the 2 lowest slave addresses are displayed, at which a du-
plicate address exist).
• Earth faults
• Noise
• Overvoltage
This function shows information about the safety slaves and the safety monitor:
• Safety Slaves
• Safety Monitor
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
55
AS-i/PROFIBUS Gateway Operating by Fullgraphic Display
This list shows the "safety-directed input slaves" ("AS-i Safety at Work"), by which
the safety function is released.
Empty field
X: o.k.
R: released
The slaves according to profile S-7.B or S-0.B are listed here, by which all 4 bits
in the IDI are deleted. Therefore slaves with 2 contacts are entered only if both
contacts are released.
Since the safety function of a safety-directed input slave can be released even if
the slave does not exchange data with the AS-i master, the list may be used only
in combination with the ec-flags.
Only CDI and IDI are used for creating this list. Safety slaves which are projected
but not existing, and existing slaves sending a wrong code are not listed here.
This list is not constantly updated; it is created from the image of the digital inputs
IDI, if required.
6.9.2 Safety Monitor
The AS-i safety monitor reads the diagnosis data out of the AS-i safety monitor and
shows this data in the display. The meaning of the shown diagnosis can be seen
in the description of the safety monitor.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
56 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Advanced Diagnostics for AS-i Masters
The advanced AS-i diagnostics serve to locate occasionally occurring errors and
to judge the quality of data transmission on AS-i without additional diagnostics
tools.
"AS-i Control Tools" (software for comfortable commissioning of AS-Interface and
programming of AS-i Control) supports the operation of the advanced diagnostics
(LCS, error counters and LOS).
The LCS contains the history of the delta list. Besides the list of projected slaves
(LPS), the list of detected slaves (LDS) and the list of activated slaves (LAS), a
fourth list, the list of corrupted slaves (LCS), is created by AS-i masters with ad-
vanced diagnostics in order to locate occasionally occurring short-time configura-
tion errors. This list contains entries of all AS-i slaves which were responsible for
at least one configuration error since powering up the AS-i master or reading the
list. Short-time AS-i power failures are listed in the LCS at the position of AS-i slave
with address 0.
With every read access the LCS will be deleted.
The AS-i master with advanced diagnostics has a counter of telegram repetitions
for each AS-i slave, which count up every time a currupted data telegram has been
found. This makes possible to judge the quality of the AS-i network, even if only a
few corrupted telegrams occured and the AS-i slave did not cause any configura-
tion errors.
The counter values can be read via the host interface and will be
deleted with every read access. The counter value is limited to 254.
255 will cause a counter overflow.
issue date 26.1.2005
The protocol analysis is included in the sofware "AS-i Control Tools" by using the
command master | AS-i Diagnostics.
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
57
AS-i/PROFIBUS Gateway Advanced Diagnostics for AS-i Masters
The AS-i masters with advanced diagnostics offer the possibility to put themselves
into the offline phase when a configuration error on the AS-Interface occurs. This
way the security of the application can be ensured. The reaction to a configuration
error is very fast and the host can be relieved from this task. If there are any pro-
blems on the AS-i network, the AS-interface can be switched to a secure state.
There are two different ways to parameterize the AS-i master for this feature:
• Every configuration error during normal operation in protected mode releases
the off-line phase.
• For each slave address, it can be chosen whether a configuration error on this
address will cause the offline phase or not. This information is stored in the list
of offline slaves (LOS).
The user himself can decide how the system reacts to a configuration error on
the AS-Interface. The AS-i master can release the off-line phase in critical situ-
ations, i. e. only with certain slave addresses, whereas in less critical situations
(if one of the other AS-i slaves has a configuration error) only the error message
is sent to the host, but AS-i is still running.
The parameterization "off-line phase on configuration error" is also supported by
the "AS-i Control Tools" (command Master | Identity | Offline on configuration er-
ror).
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
58 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Advanced Diagnostics for AS-i Masters
Earth faults are indicated in the master´s display as well as via PROFIBUS and the
AS-i Control Tools.
For recognition of earth faults the master must be grounded with the
function earth.
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
59
AS-i/PROFIBUS Gateway PROFIBUS DP
8 PROFIBUS DP
8.1 DP Telegrams
8.1.1 Diagnosis
ec-flags (high):
Bit 0: periphery fault
Bit 1 … Bit 3 reserved
Bit 4: earth fault
Bit 5: over voltage
Bit 6: noise
Bit 7: duplicate address
ec-flags (low):
Bit 0: configuration error
Bit 1: slave with address0 detected
Bit 2: Auto_address_assignment not possible
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
60 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway PROFIBUS DP
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
61
AS-i/PROFIBUS Gateway PROFIBUS DP
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
62 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway PROFIBUS DP
[Link] Parameters
With the user parameters you can choose if and which slave list will be displayed
in the diagnosis. Furthermore you can select which conditions have to be fulfilled
to set the ExtDiag bit within the diagnosis telegram.
The bits in "User Byte 1" and "User Byte 3" have the following meanings:
User Byte 1
27 26 25 24 23 22 21 20
- - LPF – D F
default 0 0 0 1 0 1 1
User Byte 2
27 2 6
2 5
24 23 22 21 20
FD 0 CS PF APF CF –
default 0 0 0 0 1 1 0
User Byte 3
7 6 5
2 2 2 24 23 22 21 20
– 0
default 0 0
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
63
AS-i/PROFIBUS Gateway PROFIBUS DP
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
64 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway PROFIBUS DP
Length Description
4 bytes digital input (slaves 0 - 7)
8 bytes digital input (slaves 0 - 15)
12 bytes digital input (slaves 0 - 23)
16 bytes digital input (slaves 0 - 31)
20 bytes digital input (slaves 0 - 7B)
24 bytes digital input (slaves 0 - 15B)
28 bytes digital input (slaves 0 - 23B)
32 bytes digital input (slaves 0 - 31B)
Length Description
4 bytes digital output (slaves 0 - 7)
8 bytes digital output (slaves 0 - 15)
12 bytes digital output (slaves 0 - 23)
16 bytes digital output (slaves 0 - 31)
20 bytes digital output (slaves 0 - 7B)
24 bytes digital output (slaves 0 - 15B)
28 bytes digital output (slaves 0 - 23B)
32 bytes digital output (slaves 0 - 31B)
Length Description
16 bytes digital in/out (slaves 0 - 31)
16 Bytes digital in/out (slaves 0B - 31B)
32 bytes digital in/out (slaves 0 - 31B)
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
65
AS-i/PROFIBUS Gateway PROFIBUS DP
Length Description
2 bytes management (command interface)
4 bytes management (command interface)
8 bytes management (command interface)
11 bytes management (command interface)
12 bytes management (command interface)
34 bytes management (command interface)
36 bytes management (command interface)
Length Description
24 bytes analog input (slaves 29 - 31)
56 bytes analog input (slaves 25 - 31)
88 bytes analog input (slaves 21 - 31)
120 bytes analog input (slaves 17 - 31)
128 bytes analog input (slaves 16 - 31)
16 bytes analog input (slaves 14 - 15)
Length Description
24 bytes analog output (slaves 29 - 31)
56 bytes analog output (slaves 25 - 31)
88 bytes analog output (slaves 21 - 31)
120 bytes analog output (slaves 17 - 31)
128 bytes analog output (slaves 16 - 31)
16 bytes analog output (slaves 14 - 15)
Length Description
2 bytes … 128 bytes analog input data circuit 1, dynamic1
2 bytes … 128 bytes analog output data circuit 1, dynamich1
2 bytes … 128 bytes analog input data circuit 2, dynamic1
2 bytes … 128 bytes analog output data circuit 2, dynamic1
2 bytes flags and AS-i detector circuit 1
2 bytes flags and AS-i detector circuit 2
1. Module parameters necessarily
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
66 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway PROFIBUS DP
byte 27 26 25 24 23 22 21 20
0 flags slave 1/1A
F3 F2 F1 F0 D3 D2 D1 D0
1 slave 2/2A slave 3/3A
2 slave 4/4A slave 5/5A
3 slave 6/6A slave 7/7A
4 slave 8/8A slave 9/9A
5 slave 10/10A slave 11/11A
6 slave 12/12A slave 13/13A
7 slave 14/14A slave 15/15A
8 slave 16/16A slave 17/17A
9 slave 18/18A slave 19/19A
10 slave 20/20A slave 21/21A
11 slave 22/22A slave 23/23A
12 slave 24/24A slave 25/25A
13 slave 26/26A slave 27/27A
14 slave 28/28A slave 29/29A
15 slave 30/30A slave 31/31A
16 reserved slave 1B
17 slave 2B slave 3B
18 slave 4B slave 5B
19 slave 6B slave 7B
20 slave 8B slave 9B
21 slave 10B slave 11B
22 slave 12B slave 13B
23 slave 14B slave 15B
24 slave 16B slave 17B
25 slave 18B slave 19B
26 slave 20B slave 21B
27 slave 22B slave 23B
28 slave 24B slave 25B
29 slave 26B slave 27B
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
67
AS-i/PROFIBUS Gateway PROFIBUS DP
Flags
input data output data
F0 ConfigError Offline
F1 APF LOS master bit
F2 PeripheryFault → ConfigurationMode
F3 ConfigurationActive → ProtectedMode
ConfigError: 0 = ConfigOK, 1 = ConfigError
APF: 0 = AS-i Power OK, 1 = AS-i Power Fail
PeripheryFault: 0 = PeripheryOK, 1 = PeripheryFault
ConfigurationActive: 0 = ConfigurationActive, 1 = ConfigurationInactive
Offline: 0 = Online, 1 = Offline
LOS-Master-Bit 0 = Offline by ConfigError deactivated
1 = Offline by ConfigError activated
A rising edge of F2 and F3 switch the master to the desired mode.
A rising edge of the "LOS master bit" effects that all bits in the LOS are set. A falling
edge effects that all bits are deleted.
[Link] Analog data
In addition to the access via the command interfaces, the analog data for or by the
slaves can by exchanged cyclically according to profile 7.3. Competing writing ac-
cess attemps on analog output data will not be blocked by each other. If analog
output data for a particular slave are being transmitted both cyclically and acycli-
cally with the command interface or via DP V1 connections, the acyclically trans-
mitted values will be overwritten by the cyclically transmitted values.
Analog AS-i data according to profile 7.3 can be transmitted in a reserved data
area. Therefore accessing analog data is as easy as accessing digital data.
Analog data
byte 2 7
2 6
2 5
24 23 22 21 20
1 slave 31-n/8, channel 1, high byte
2 slave 31-n/8, channel 1, low byte
3 slave 31-n/8, channel 2, high byte
4 slave 31-n/8, channel 2, low byte
… …
n-1 slave 31, channel 4, high byte
n slave 31, channel 4, low byte
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
68 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway PROFIBUS DP
Request
byte 27 26 25 24 23 22 21 20
1 command
2 T circuit
3 request parameter byte 1
… …
36 request parameter byte 34
Answer
byte 27 26 25 24 23 22 21 20
1 command (mirrored)
2 T result
3 response parameter byte 1
… …
34 response parameter byte 32
A command of the command interface will be edited if the toggle bit T has chan-
ged. This way the same command can be used repeatedly.
The commands of the command interface can also be activated with PROFIBUS
DP V1. Even the process data exchange is possible via the command interface.
This way the Windows configuration software "AS-i Control Tools" can run the
whole communication via DP V1.
8.2 DP V1
To exchange data between the PROFIBUS master and the AS-i/PROFIBUS gate-
way via PROFIBUS DP V1 only one data block is used - slot 1, index 16. Within
this data block a command interface is installed like the one used in the DP tele-
gram.
The DP V1-command interfaces are edited every time they are sent. Therefore it
is possible to execute the same command several times without changing "com-
mand" or "circuit"and setting a toggle bit.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
69
AS-i/PROFIBUS Gateway PROFIBUS DP
8.3 Restrictions
The SPC3 has only 1,5 KByte DP-RAM available. Therefore the lengths of tele-
grams and the numbers of DP V1-connections to class 2 masters have to be re-
stricted.
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
70 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
9 Command Interface
9.1 Construction
Request
byte 27 2 6
2 5
24 23 22 21 20
1 command
2 T – circuit
3 request parameter byte 1
… …
36 request parameter byte 34
Response
byte 2 7
26 25 24 23 22 21 20
1 command
2 T result
3 response parameter byte 1
… …
36 response parameter byte 34
Command byte and T-bit are always part of the response. The T-bit is necessary
to operate the command interface via a MSC1 connection (PROFIBUS DP V0).
This way the same command of the command interface can be used two twice re-
peatedly, possibly with different parameters.
The execution of a command of the command interface is declined, if the number
of the transferred parameters is too small which means that the command inter-
face in the cyclic channel is too small or the DP V1-telegram is too short.
The commandsof the command interface are valid as well for PROFIBUS DP V0
as for PROFIBUS DP V1.
Circuit = 0 If an AS-i gateway with one AS-i master or the master 1 of an AS-i gate-
way with 2 masters should be choosen.
Circuit = 1 If master 2 of a double master should be chosen.
The commands for reading and writinig exist in two variations. At the first variation
the bits in the slave lists are arranged as usually with Bihl+Wiedemann products:
Data for slave with lower address appear in the lower bits. The second variation is
compatible to Siemens masters: The sequence of the bits in the slave lists bytes
are inverse.
Switching between the two variations can be done with bit 26 in byte 2 of the re-
quest. If it is deleted, the Bihl+Wiedemann arrangement is selected, otherwise the
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
71
AS-i/PROFIBUS Gateway Command Interface
The coding of requests for commands to reading and writing is following therefore:
Request
byte 27 26 25 24 23 22 21 20
1 command
2 T 0 circuit
3 Request parameter byte 1
… …
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
72 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
73
AS-i/PROFIBUS Gateway Command Interface
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
74 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Request
byte 2 7
2 6
2 5
24 23 22 21 20
1 5016
2 T – circuit
3 – 0 slave address
Response
byte 27 26 25 24 23 22 21 20
1 5016
2 T result
3 channel 1, high byte
… …
10 channel 4, low byte
Request
byte 27 26 25 24 23 22 21 20
1 5116
2 T – circuit
3 – 0 slave address
4 channel 1, high byte
… …
11 channel 4, low byte
Response
byte 2 7 26 25 24 23 22 21 20
1 5116
2 T result
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
75
AS-i/PROFIBUS Gateway Command Interface
Request
byte 2 7
2 6
2 5
24 23 22 21 20
1 5216
2 T – circuit
3 – 0 slave address
Response
byte 27 26 25 24 23 22 21 20
1 5216
2 T result
3 channel 1, high byte
… …
10 channel 4, low byte
Request
byte 27 26 25 24 23 22 21 20
1 5316
2 T – circuit
3 – 0 1st slave address
Response
byte 2 7 26 25 24 23 22 21 20
1 5316
2 T result
3 1st slave, channel 1, high byte
… …
34 4th slave, channel 4, low byte
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
76 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Request
byte 2 7
2 6
2 5
24 23 22 21 20
1 5416
2 T – circuit
3 – 0 1st slave address
4 1st slave, channel 1, high byte
… …
35 4th slave, channel 4, low byte
Response
byte 27 26 25 24 23 22 21 20
1 5416
2 T result
Request
byte 27 26 25 24 23 22 21 20
1 5516
2 T – circuit
3 – 0 1st slave address
Response
byte 2 7 26 25 24 23 22 21 20
1 5516
2 T result
3 1st slave, channel 1, high byte
… …
34 4th slave, channel 4, low byte
[Link] WR_74_PARAM
With this function the parameter string of a slave according to profile S-7.4 is writ-
ten. Since the string can be longer than the command interface, it will partly be writ-
ten into the buffer and then be transferred to the slave.
n is the length of the part of the string which should be written into the buffer from
issue date 26.1.2005
index i on.
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
77
AS-i/PROFIBUS Gateway Command Interface
Request
byte 27 26 25 24 23 22 21 20
1 5A16
2 T – circuit
3 slave address
4 i
5 n
6 buffer btye i
… …
n+5 buffer byte i+n-1
Response
byte 27 26 25 24 23 22 21 20
1 5A16
2 T results
[Link] RD_74_PARAM
With this function the parameter string according to profile S-7.4 is being read.
Since the string can be longer than the command interface, it is written into the buf-
fer. The content of the buffer can read in parts from index i.
The first byte of the buffer is the length of the read string.
If i ≡ 0, the string is being read from the slave, otherwise the function responses
out of the memory; the data can be read consistently.
Request
byte 27 26 25 24 23 22 21 20
1 5B16
2 T – circuit
3 slave address
4 i
Response
byte 2 7
26 25 24 23 22 21 20
1 5B16
2 T result
3 buffer byte i
… …
n+2 buffer byte i+n-1
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
78 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
[Link] RD_74_ID
With this function the ID string of a slave according to profile S-7.4 is is being read.
Since the string can be longer than the command interface, it is written into the buf-
fer. The content of the buffer can read in parts from index i.
The first byte of the buffer is the length of the read string.
If i ≡ 0, the string is being read from the slave, otherwise the function responses
out of the memory, the data can be read consistently.
Request
byte 27 26 25 24 23 22 21 20
1 5C16
2 T – circuit
3 slave address
4 i
Response
byte 2 7
26 25 24 23 22 21 20
1 5C16
2 T result
3 buffer byte i
… …
n+2 buffer byte i+n-1
[Link] RD_74_DIAG
With this function the diagnosis string of a slave according to profile S-7.4 is being
read. Since the string can be longer than the command interface, it is written into
the buffer. The content of the buffer can be read in parts from index i.
The first byte of the buffer indicates the length of the read string.
If i ≡ 0, the string is being read from the slave, otherwise the function responses
out of the memory, the data can be read consistently.
Request
byte 27 26 25 24 23 22 21 20
1 5D16
2 T – circuit
3 slave address
4 i
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
79
AS-i/PROFIBUS Gateway Command Interface
Response
byte 2 7
2 6
2 5
24 23 22 21 20
1 5D16
2 T result
3 buffer byte i
… …
n+2 buffer byte i+n-1
9.2.2 Diagnosis Data
[Link] Overview of the Commands
Request
byte 27 26 25 24 23 22 21 20
1 3016
issue date 26.1.2005
2 T O circuit
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
80 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Response (if O ≡ 0)
byte 2 7
2 6
25 24 23 22 21 20
1 3016
2 T result
3 7A 6A 5A 4A 3A 2A 1A 0A
… LAS
10 31B 30B 29B 28B 27B 26B 25B 24B
11 7A 6A 5A 4A 3A 2A 1A 0A
… LDS
18 31B 30B 29B 28B 27B 26B 25B 24B
19 7A 6A 5A 4A 3A 2A 1A 0A
… LPS
26 31B 30B 29B 28B 27B 26B 25B 24B
27 – Pok
28 OR APF NA CA AAv AAs S0 Cok
29 – AAe OL DX
Response (if O ≡ 1)
byte 2 7
2 6
25 24 23 22 21 20
1 3016
2 T result
3 0A 1A 2A 3A 4A 5A 6A 7A
… LAS
10 24B 25B 26B 27B 28B 29B 30B 31B
11 0A 1A 2A 3A 4A 5A 6A 7A
… LDS
18 24B 25B 26B 27B 28B 29B 30B 31B
19 0A 1A 2A 3A 4A 5A 6A 7A
… LPS
26 24B 25B 26B 27B 28B 29B 30B 31B
27 – Pok
28 OR APF NA CA AAv AAs S0 Cok
29 – AAe OL DX
Pok Periphery_Ok
S0 LDS.0
AAs Auto_Address_Assign
AAv Auto_Address_Available
CA Configuration_Active
NA Normal_Operation_Active
issue date 26.1.2005
APF APF
OR Offline_Ready
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
81
AS-i/PROFIBUS Gateway Command Interface
Cok Config_Ok
AAe Auto_Address_Enable
OL Offline
DX Data_Exchange_Active
[Link] Get Flags (GET_FLAGS)
With this call, the following entry is read out of the AS-i/PROFIBUS gateway: The
flags according to the AS-i slave specification.
Request
byte 27 26 25 24 23 22 21 20
1 4716
2 T – circuit
Response
byte 27 26 25 24 23 22 21 20
1 4716
2 T response
3 – Pok
4 OR APF NA CA AAv AAs S0 Cok
5 – AAe OL DX
Pok Periphery_Ok
This flag is set when no AS-i slave is signaling a peripheral fault.
S0 LDS.0
This flag is set when an AS-i slave with address 0 exists.
AAs Auto_Address_Assign
This flag is being set when the automatic address programming is possible
(in other words, AUTO_ADDR_ENABLE = 1; no "incorrect" slave connected
to the AS-i).
AAv Auto_Address_Available
This flag is set when the automatic address programming can be executed,
exactly one AS-i slave is currently out of operation.
CA Configuration_Active
The flag is set in configuration mode and reset in protected mode.
NA Normal_Operation_Active
This flag is set when the AS-i master is in normal operation.
APF AS-i Power Fail
This flag is set when the voltage on the AS-i cable is too low.
OR Offline_Ready
The flag is set when the offline phase is active.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
82 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Cok Config_Ok
This flag is set when the desired (configured) and actual configuration
match.
AAe Auto_Address_Enable
This flag indicates whether the automatic address programming is enabled
(bit = 1) or disabled (bit = 0) by the user.
OL Offline
This flag is set when the mode should be changed to OFFLINE or when this
mode has already been reached.
DX Data_Exchange_Active
If the "Data_Exchange_Active" flag is set, the data exchange between AS-i
master and slaves is available in the data exchange phase. If this bit is not
set the data exchange is not available. The read ID telegrams are transmit-
ted to the slave.
The bit is set if the AS-i master enters the offline phase.
[Link] Get Delta List (GET_DELTA)
The delta list contains the list of slave addresses with configuration errors.
Request
byte 27 26 25 24 23 22 21 20
1 5716
2 T 0 circuit
Response (if O ≡ 0)
byte 27 26 25 24 23 22 21 20
1 5716
2 T result
3 7A 6A 5A 4A 3A 2A 1A –
… …
10 31B 30B 29B 28B 27B 26B 25B 24B
Response (if O ≡ 1)
byte 2 7
2 6
25 24 23 22 21 20
1 5716
2 T result
3 0 1A 2A 3A 4A 5A 6A 7A
… …
10 24B 25B 26B 27B 28B 29B 30B 31B
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
83
AS-i/PROFIBUS Gateway Command Interface
Request
byte 27 26 25 24 23 22 21 20
1 6016
2 T O circuit
Response (if O ≡ 0)
byte 27 26 25 24 23 22 21 20
1 6016
2 T result
3 7A 6A 5A 4A 3A 2A 1A 0A
… …
10 31B 30B 29B 28B 27B 26B 25B 24B
Response (if O ≡ 1)
byte 2 7
26 25 24 23 22 21 20
1 6016
2 T result
3 0A 1A 2A 3A 4A 5A 6A 7A
… …
10 24B 25B 26B 27B 28B 29B 30B 31B
Request
byte 2 7 26 25 24 23 22 21 20
1 4516
2 T O circuit
Response (if O ≡ 0)
byte 27 26 25 24 23 22 21 20
1 4516
2 T result
3 7A 6A 5A 4A 3A 2A 1A 0A
issue date 26.1.2005
… …
10 31B 30B 29B 28B 27B 26B 25B 24B
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
84 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Response (if O ≡ 1)
byte 2 7
2 6
25 24 23 22 21 20
1 4516
2 T result
3 0A 1A 2A 3A 4A 5A 6A 7A
… …
10 24B 25B 26B 27B 28B 29B 30B 31B
[Link] Get List of Detected AS-i slaves (GET_LDS)
With this call, the following entry is read out of the AS-i/PROFIBUS gateway: The
list of detected AS-i slaves (LDS).
Request
byte 27 26 25 24 23 22 21 20
1 4616
2 T O circuit
Response (if O ≡ 0)
byte 2 7 26 25 24 23 22 21 20
1 4616
2 T result
3 7A 6A 5A 4A 3A 2A 1A 0A
… …
10 31B 30B 29B 28B 27B 26B 25B 24B
Response (if O ≡ 1)
byte 2 7 26 25 24 23 22 21 20
1 4616
2 T result
3 0A 1A 2A 3A 4A 5A 6A 7A
… …
10 24B 25B 26B 27B 28B 29B 30B 31B
Request
byte 27 26 25 24 23 22 21 20
issue date 26.1.2005
1 3E16
2 T O circuit
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
85
AS-i/PROFIBUS Gateway Command Interface
Response (if O ≡ 0)
byte 2 7
2 6
25 24 23 22 21 20
1 3E16
2 T result
3 7A 6A 5A 4A 3A 2A 1A 0A
… …
10 31B 30B 29B 28B 27B 26B 25B 24B
Response (if O ≡ 1)
byte 2 7
2 6
25 24 23 22 21 20
1 3E16
2 T result
3 0A 1A 2A 3A 4A 5A 6A 7A
… …
10 24B 25B 26B 27B 28B 29B 30B 31B
[Link] Get List of Offline Slaves (GET_LOS)
With this call, the list of slaves causing the offline phase when a configuration error
occurs in being read out (List of Offline Slaves, LOS).
The user can choose the reaction of the master when a configuration error occurs.
The master can be switched off line when an important slave causes a configura-
tion error; less important slaves can send an error to the host, AS-i however will
not be switched offline.
Request
byte 27 26 25 24 23 22 21 20
1 6116
2 T O circuit
Response (if O ≡ 0)
byte 2 7 26 25 24 23 22 21 20
1 6116
2 T result
3 7A 6A 5A 4A 3A 2A 1A 0A
… …
10 31B 30B 29B 28B 27B 26B 25B 24B
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
86 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Response (if O ≡ 1)
byte 2 7
2 6
25 24 23 22 21 20
1 6116
2 T result
3 0A 1A 2A 3A 4A 5A 6A 7A
… …
10 24B 25B 26B 27B 28B 29B 30B 31B
[Link] Set List of Off-line Slaves (SET_LOS)
With this call, the list of slaves causing the offline phase when a configuration error
occurs in being defined (List of Offline Slaves, LOS).
The user can choose the reaction of the master when a configuration error occurs.
The master can be switched offline when an important slave causes a configura-
tion error; less important slaves can send an error to the host, AS-i however will
not be switched offline.
Request (if O ≡ 0)
byte 2 7
26 25 24 23 22 21 20
1 6216
2 T O circuit
3 7A 6A 5A 4A 3A 2A 1A 0A
… …
10 31B 30B 29B 28B 27B 26B 25B 24B
Request (if O ≡ 1)
byte 27 26 25 24 23 22 21 20
1 6216
2 T 1 circuit
3 0A 1A 2A 3A 4A 5A 6A 7A
… …
10 24B 25B 26B 27B 28B 29B 30B 31B
Response
byte 2 7
2 6
2 5
24 23 22 21 20
1 6216
2 T result
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
87
AS-i/PROFIBUS Gateway Command Interface
Request
byte 27 26 25 24 23 22 21 20
1 6316
2 T – circuit
Response
byte 27 26 25 24 23 22 21 20
1 6316
2 T result
3 APF
4 slave 1A
… …
34 slave 31A
Request
byte 2 7 26 25 24 23 22 21 20
1 6416
2 T – circuit
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
88 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Response
byte 2 7
2 6
2 5
24 23 22 21 20
1 6416
2 T result
3 APF
4 slave 1B
… …
34 slave 31B
[Link] GET_TEC_X
Beginning with a definite slave address, the counts of the n error counters are
being read out with this call.
With every reading out the counts, the error counters will be restarted.
The counts are being read out via the correspondending host interface and will be
deleted with every read access. The counter´s value is limited to 254. 255 will cau-
se a counter overflow.
The counts could be independent of the counters, which are displayed in the dis-
play of the gateway.
Request
byte 27 26 25 24 23 22 21 20
1 6616
2 T – circuit
3 1. slave address
4 number of counters
Response
byte 2 7 26 25 24 23 22 21 20
1 6616
2 T result
3 counter 1
… …
n counter n - 2
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
89
AS-i/PROFIBUS Gateway Command Interface
Request
byte 2 7
2 6
2 5
24 23 22 21 20
1 1016
2 T – circuit
Response
byte 27 26 25 24 23 22 21 20
1 1016
2 T result
3 DA ST US ES reserved
4 DA ST US ES reserved
DA duplicate address
ST noise
US over voltage
ES earth fault
[Link] Read List of Duplicate Addresses (READ_DUPLICATE_ADDR)
With this call the list of slaves with duplicate addresses (the assignement of one
address to two slaves) is read out.
Request
byte 27 26 25 24 23 22 21 20
1 1116
2 T O circuit
Response (if O ≡ 0)
byte 2 7
2 6
25 24 23 22 21 20
1 1116
2 T result
3 7A 6A 5A 4A 3A 2A 1A 0A
… …
10 31B 30B 29B 28B 27B 26B 25B 24B
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
90 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Response (if O ≡ 1)
byte 2 7
2 6
25 24 23 22 21 20
1 1116
2 T result
3 0A 1A 2A 3A 4A 5A 6A 7A
… …
10 24B 25B 26B 27B 28B 29B 30B 31B
[Link] Functional profiles
Further diagnosis functions for "Safety at Work" and for availability vice versa for
warnings of integrated sensors are explained detailed in the chapter "Functional
profiles" (chapter 9.2.3).
9.2.3 Functional profiles
[Link] "Safety at Work" List 1
Function: 0016
List of "safety-directed input slaves" ("AS-Interface Safety at Work"), whose safety
function is released.
Safety-directed input slaves have the profile S-7.B or S-0.B (IO = 0 or 7, ID = B,
see chapter [Link]: Read Actual Configuration).
The "Safety at Work" list 1 is a bit list which contains a bit for each possible slave
address (1 - 31). This list is written in the bytes 5 until 8 in the response of the com-
mand of the command interface. Additionally, the reponse contains the ec-flags
of the AS-Interface master in the bytes 3 and 4 (see chapter [Link]: "Get Flags").
The bits of the "Safety at Work" list 1 are set if the safety function of the slave is
activated (e.g. emergency button pressed). The bit is only set at security slaves
when both contacts are released, otherwise the bits have the value 0. "Normal"
(non-security) slaves also have the value 0.
Since the security monitor is also being activated if a security slave is missing or if
the AS-i circuit is shut off (offline active), the ec-flags will also be transmitted. It is
sufficient however to monitor the group error message Cok (configuration error).
As long as no configuration error, the list of the "safety-directed input slaves" can
be used.
Configured safety slaves which are not available, and available slaves sending a
wrong coder order, will not be entered in this list.
With the bit "O", the sequence of the bits within the "Safety at Work" list 1 can be
chosen.
Request
byte 27 26 25 24 23 22 21 20
1 7E16
2 T O circuit
issue date 26.1.2005
3 0016
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
91
AS-i/PROFIBUS Gateway Command Interface
Response (if O ≡ 0)
byte 2 7
2 6
25 24 23 22 21 20
1 7E16
2 T result
3 – Pok
4 OR APF NA CA AAv AAs S0 Cok
5 7 6 5 4 3 2 1 -
6 15 14 13 12 11 10 9 8
7 23 22 21 20 19 18 17 16
8 31 30 29 28 27 26 25 25
Response (if O ≡ 1)
byte 2 7
2 6
25 24 23 22 21 20
1 7E16
2 T result
3 – Pok
4 OR APF NA CA AAv AAs S0 Cok
5 - 1 2 3 4 5 6 7
… …
8 24 25 26 27 28 29 30 31
Cok Config_Ok
S0 LDS.0
AAs Auto_Address_Assign
AAv Auto_Address_Available
CA Configuration_Active
NA Normal_Operation_Active
APF APF
OR Offline_Ready
Pok Periphery_Ok
Example for O ≡ 0:
Configuration OK,
periphery OK (no peripheral fault,
2 safety slaves with released safety function,
AS-Inferface addresses 4 and 10
1 safety slave with unreleased safety function,
AS-Inferface address 5.
Reponse: 7E 00 01 25 10 04 00 00
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
92 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Request
byte 27 26 25 24 23 22 21 20
1 7E16
2 T LD SD circuit
3 0216
4 slave address
5 index
Response
byte 27 26 25 24 23 22 21 20
1 7E16
2 T result
3 diagnosis byte #index+0
4 diagnosis byte #index+1
… …
n diagnosis byte #index+n-3
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
93
AS-i/PROFIBUS Gateway Command Interface
The diagnosis data field of the safety monitor is structured as follows (short dia-
gnosis):
Request
byte 2 7
2 6
2 5
24 23 22 21 20
0 0016
1 monitor state
2 state circuit 1
3 state circuit 2
4 number circuit 1
5 number circuit 2
6 device index 32, circuit 1
7 device color, circuit 1
8 device index 33, circuit 1
9 device color, circuit 1
… …
68 device index 63, circuit 1
69 device color, circuit 1
70 device index 32, circuit 2
71 device color, circuit 2
… …
132 device index 63, circuit 2
133 device color, circuit 2 issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
94 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
The diagnosis data field of the safety monitor is structured as follows (long diagno-
sis):
Request
byte 2 7
2 6
2 5
24 23 22 21 20
0 0016
1 monitor state
2 state circuit 1
3 state circuit 2
4 number circuit 1
5 number circuit 2
6 device Index 32, circuit 1
7 device color, circuit 1
… …
132 device Index 95, circuit 1
133 device color, circuit 1
134 device Index 32, circuit 2
135 device color, circuit 2
… …
260 device Index 95, circuit 2
261 device color, circuit 2
Request
byte 27 26 25 24 23 22 21 20
1 7E16
2 T O circuit
3 0316
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
95
AS-i/PROFIBUS Gateway Command Interface
Response (if O ≡ 0)
byte 2 7
2 6
25 24 23 22 21 20
1 7E16
2 T result
3 7A 6A 5A 4A 3A 2A 1A 0
… …
10 31B 30B 29B 28B 27B 26B 25B 24B
Response if O ≡ 1)
byte 2 7
2 6
2 5
24 23 22 21 20
1 7E16
2 T result
3 0 1A 2A 3A 4A 5A 6A 7A
… …
10 24A 25A 26A 27A 28A 29A 30A 31A
[Link] Integrated AS-i Sensors: Availability
Function: 0416
List of the integrated slaves according to profile S-1.1 whose input data bits D2
("Availability") are deleted.
For creating this list, CDI and IDI are used only. Integrated AS-i slaves which are
projected but not existing therefore are not entered here.
Request
byte 2 7 26 25 24 23 22 21 20
1 7E16
2 T O circuit
3 0416
Response (if O ≡ 0)
byte 27 26 25 24 23 22 21 20
1 7E16
2 T result
3 7 6 5 4 3 2 1 0
… …
6 31 30 29 28 27 26 25 24
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
96 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Response (if O ≡ 1)
byte 2 7
2 6
25 24 23 22 21 20
1 7E16
2 T result
3 0 1 2 3 4 5 6 7
… …
6 24 25 26 27 28 29 30 31
9.2.4 Configuration of the AS-i Master
[Link] Overview of the Commands
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
97
AS-i/PROFIBUS Gateway Command Interface
When you change from configuration mode to protected mode, the AS-i master will
do a warm restart (change to the offline phase followed by a change to the online
mode).
Request
byte 27 26 25 24 23 22 21 20
1 0C16
2 T – circuit
3 operation mode
Response
byte 2 7
26 25 24 23 22 21 20
1 0C16
2 T result
Request
byte 27 26 25 24 23 22 21 20
1 0716
2 T – circuit
Response
byte 2 7
2 6
2 5
24 23 22 21 20
1 0716
2 T result
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
98 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Request
byte 27 26 25 24 23 22 21 20
1 2816
2 T – circuit
3 – B slave address
Response
byte 27 26 25 24 23 22 21 20
1 2816
2 T result
3 xID2 xID1
4 ID I0
Meaning of bit B:
B = 0 Single AS-i slave or A-slave
B = 1 B-slave
[Link] Set Permanent Configuration (SET_PCD)
This call sets the following configuration data for the addressed AS-i slave:
• I/O configuration
• ID code
• Extended ID1 code
• Extended ID2 code
The configuration data are stored permanently on the EEPROM of the AS-i/PRO-
FIBUS gateway and are used as the expected configuration by the AS-i master in
the protected mode. The configuration data are specified by the manufacturer of
the AS-i slave.
If the addressed AS-i slave does not support an extended ID code 1/2, the value
Fhex must be specified.
When this command is executed, the AS-i master changes to the offline phase and
then changes back to the normal mode (warm restart).
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
99
AS-i/PROFIBUS Gateway Command Interface
Request
byte 27 26 25 24 23 22 21 20
1 2516
2 T – circuit
3 – B slave address
4 xID2 xID1
5 ID I0
Response
byte 27 26 25 24 23 22 21 20
1 2516
2 T result
Meaning of bit B:
B = 0 Single AS-i slave or A-slave
B = 1 B-slave
[Link] Get Extended Permanent Configuration (GET_PCD)
This call reads the following configuration data (configured data) of an addressed
AS-i slave stored on the EEPROM of the AS-i master:
• I/O configuration
• ID code
• Extended ID1 code
• Extended ID2 code
The configuration data are specified by the manufacturer of the AS-i slave.
Request
byte 2 7
2 6
2 5
24 23 22 21 20
1 2616
2 T – circuit
3 – B slave address
Response
byte 2 7
2 6
2 5
24 23 22 21 20
1 2616
2 T result
3 xID2 xID1
4 ID I0
issue date 26.1.2005
Meaning of bit B:
B = 0 Single AS-i slave or A-slave
B = 1 B-slave
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
100 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Request (if O ≡ 0)
byte 2 7
2 6
2 5
24 23 22 21 20
1 2916
2 T 0 circuit
3 0016
4 7A 6A 5A 4A 3A 2A 1A –
… …
11 31B 30B 29B 28B 27B 26B 25B 24B
Request (if O ≡ 1)
byte 2 7
2 6
2 5
24 23 22 21 20
1 2916
2 T 1 circuit
3 0016
4 – 1A 2A 3A 4A 5A 6A 7A
… …
11 24B 25B 26B 27B 28B 29B 30B 31B
Response
byte 27 26 25 24 23 22 21 20
1 2916
2 T result
Request
byte 27 26 25 24 23 22 21 20
1 4416
2 T O circuit
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
101
AS-i/PROFIBUS Gateway Command Interface
Response (if O ≡ 0)
byte 2 7
2 6
25 24 23 22 21 20
1 4416
2 T result
3 7A 6A 5A 4A 3A 2A 1A 0A
… …
10 31B 30B 29B 28B 27B 26B 25B 24B
Response (if O ≡ 1)
byte 2 7
2 6
25 24 23 22 21 20
1 4416
2 T result
3 0A 1A 2A 3A 4A 5A 6A 7A
… …
10 24B 25B 26B 27B 28B 29B 30B 31B
[Link] Store Actual Parameters (STORE_PI)
With this call, the configured parameters stored on the EEPROM are overwritten
with the current, permanently stored (actual) parameters; in other words, the cur-
rent parameters of all AS-i slaves are stored.
Request
byte 27 26 25 24 23 22 21 20
1 0416
2 T – circuit
Response
byte 27 26 25 24 23 22 21 20
1 0416
2 T result
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
102 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Request
byte 2 7
2 6
2 5
24 23 22 21 20
1 0216
2 T – circuit
3 – B slave address
4 – parameter
Response
byte 27 26 25 24 23 22 21 20
1 0216
2 T result
3 – slave response
Meaning of bit B:
B = 0 Single AS-i slave or A-slave
B = 1 B-slave
[Link] Read Parameter (READ_PI: Read_Parameter)
This call returns the current parameter value (actual parameter) of an AS-i slave
sent by the AS-i/PROFIBUS gateway. This value must not be confused with the
parameter echo that is supplied by the AS-i slave as a response to the write_p job.
This command can not be used for a directly reading of an AS-i parameter out of
an AS-i slave.
Request
byte 27 26 25 24 23 22 21 20
1 0316
2 T – circuit
3 – B slave address
Response
byte 2 7 26 25 24 23 22 21 20
1 0316
issue date 26.1.2005
2 T result
3 – PI
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
103
AS-i/PROFIBUS Gateway Command Interface
Meaning of bit B:
B = 0 Single AS-i slave or A-slave
B = 1 B-slave
[Link] Set_Permanent_Parameter (SET_PP)
With this call, a parameter value for the specified AS-i slave is configured. The va-
lue is stored permanently in the EEPROM of the gateway.
The configured parameter value is transferred only when the AS-i slave is activa-
ted after turning on the power supply on the AS-i/PROFIBUS gateway.
Request
byte 27 26 25 24 23 22 21 20
1 4316
2 T – circuit
3 – B slave address
4 – PP
Response
byte 2 7
26 25 24 23 22 21 20
1 4316
2 T result
Request
byte 2 7
26 25 24 23 22 21 20
1 0116
2 T – circuit
3 – B slave address
Response
byte 27 26 25 24 23 22 21 20
1 0116
2 T result
3 – PP
Meaning of bit B:
B = 0 Single AS-i slave or A-slave
B = 1 B-slave
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
104 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Request
byte 27 26 25 24 23 22 21 20
1 0B16
2 T – circuit
3 Auto_Address_Enable
Response
byte 27 26 25 24 23 22 21 20
1 0B16
2 T result
[Link] IDLE
When the value of "command" is zero, no request will be fulfilled.
Request
byte 2 7
2 6
2 5
24 23 22 21 20
issue date 26.1.2005
1 0016
2 T – circuit
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
105
AS-i/PROFIBUS Gateway Command Interface
Response
byte 2 7
2 6
2 5
24 23 22 21 20
1 0016
2 T result
[Link] Read Input Data Image (READ_IDI)
With this call, the input data values of all AS-i slaves are read out of the AS-i/PRO-
FIBUS gateway in addition to the cyclic data exchange. Though the command
READ_IDI transmits all execution control flags (byte 3 and byte 4).
Request
byte 2 7 26 25 24 23 22 21 20
1 4116
2 T – circuit
Response
byte 27 26 25 24 23 22 21 20
1 4116
2 T result
3 – Pok
4 OR APF NA CA AAv AAs s0 Cok
5 – slave 1A
6 slave 2A slave 3A
… …
36 slave 30B slave 31B
Pok Periphery_Ok
S0 LDS.0
AAs Auto_Address_Assign
AAv Auto_Address_Available
CA Configuration_Active
NA Normal_Operation_Active
APF APF
OR Offline_Ready
Cok Config_Ok
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
106 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Request
byte 2 7
2 6
2 5
24 23 22 21 20
1 4216
2 T – circuit
3 – slave 1A
4 slave 2A slave 3A
… …
34 slave 30B slave 31B
Response
byte 27 26 25 24 23 22 21 20
1 4216
2 T result
Request
byte 27 26 25 24 23 22 21 20
1 5616
2 T – circuit
Response
byte 2 7 26 25 24 23 22 21 20
1 5616
2 T result
3 – slave 1A
slave 2A slave 3A
… …
34 slave 30B slave 31B
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
107
AS-i/PROFIBUS Gateway Command Interface
This change can only be made when the following conditions are fulfilled:
1. An AS-i slave with “AS-i slave address old” exists.
2. If the old AS-i slave address is not equal to 0, an AS-i 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 "AS-i slave address new" must not exist.
When the AS-i 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.
Request
byte 2 7
26 25 24 23 22 21 20
1 0D16
2 T – circuit
3 – B source address
4 – B target address
Response
byte 27 26 25 24 23 22 21 20
1 0D16
2 T result
Meaning of bit B:
B = 0 Single AS-i slave or A-slave
B = 1 B-slave
[Link] Write AS-i Slave Extended ID1 (WRITE_XID1)
With this call, the extended ID1 code of an AS-i slave with address "0" can be writ-
ten directly via the AS-i cable. The call is intended for diagnostic purposes and is
not required in the normal master mode.
The AS-i master passes the extended ID1 code on to the AS-i slave without any
plausibility check.
Request
byte 27 26 25 24 23 22 21 20
1 3F16
2 T – circuit
3 – xID1
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
108 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Response
Byte 2 7
2 6
2 5
24 23 22 21 20
1 3F16
2 T result
[Link] Set Offline Mode (SET_OFFLINE)
This call switches between online and offline mode.
The online mode is the normal operating state for the AS-i master. The following
jobs are processed cyclically:
• During the data exchange phase, the fields of the output data are transferred to
the slave outputs for all AS-i slaves in the LAS. The addressed AS-i slaves sub-
mit the values of the slave inputs to the master when the transfer was free of
errors.
• This is followed by the inclusion phase in which existing AS-i slaves are
searched and newly added AS-i slaves are entered in the LDS or LAS.
• In the management phase, jobs by the user such as writing parameters are ex-
ecuted.
In the offline mode, the AS-i/PROFIBUS gateway processes jobs by the user only.
(Jobs that involve the immediate addressing of an AS-i slave are rejected with an
error). There is no cyclic data exchange with the AS-i slaves.
When offline, the AS-i circuit is in a safe state.
The OFFLINE = TRUE bit is not permanently stored; in other words, following a
cold/warm restart, the AS-i/PROFIBUS gateway is once again in the online mode.
Request
byte 2 7 26 25 24 23 22 21 20
1 0A16
2 T – circuit
3 Off-Line
Response
byte 27 26 25 24 23 22 21 20
1 0A16
2 T result
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
109
AS-i/PROFIBUS Gateway Command Interface
Request
byte 27 26 25 24 23 22 21 20
1 4816
2 T – circuit
3 Data_Exchange_Active
Response
byte 27 26 25 24 23 22 21 20
1 4816
2 T result
[Link] BUTTONS
With this call, the use of the buttons can be enabled/disabled.
Request
byte 27 26 25 24 23 22 21 20
1 7516
2 T – circuit
3 ButtonsDisabled
Response
byte 27 26 25 24 23 22 21 20
1 7516
2 T result
[Link] FP_PARAM
This command is used for parametrization of "functional profiles".
The content of the request and response bytes depends on the called function
(see chapter 9.2.3).
Request
byte 2 7
2 6
2 5
24 23 22 21 20
1 7D16
2 T – circuit
3 function
4 request byte 1
… …
n request byte n-3
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
110 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Response
byte 2 7
2 6
2 5
24 23 22 21 20
1 7D16
2 T result
3 response byte 1
… …
n response byte n-2
[Link] FP_DATA
This command is used for the data exchange with "functional profiles".
The content of the request and response bytes depends on the called function
(see chapter 9.2.3).
Request
byte 27 26 25 24 23 22 21 20
1 7E16
2 T – circuit
3 function
4 request byte 1
… …
n request byte n-3
Response
byte 2 7
26 25 24 23 22 21 20
1 7E16
2 T result
3 reponse byte 1
… …
n response byte n-2
[Link] EXT_DIAG
With this call, the conditions when to set the ExtDiag bit can be selected.
Request
byte 27 26 25 24 23 22 21 20
1 7116
2 T – circuit
3 CF
4 APF
5 PF
issue date 26.1.2005
6 CS
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
111
AS-i/PROFIBUS Gateway Command Interface
Response
byte 2 7
2 6
2 5
24 23 22 21 20
1 7116
2 T result
CF ExtDiag is set, if ConfigError ≡ 1
APF ExtDiag is set, if APF ≡ 1
PF ExtDiag is set, if PeripheryFault ≡ 1
CS ExtDiag is set, if LCS is not empty
[Link] RD_EXT_DIAG
With this call, the conditions when the ExtDiag bit is set can be read.
Request
byte 2 7
2 6
2 5
24 23 22 21 20
1 7B16
2 T – circuit
Response
byte 27 26 25 24 23 22 21 20
1 7516
2 T result
3 CF
4 APF
5 PF
6 CS
7 FD
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
112 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
[Link] INVERTER
With this call, an AS-i slave for frequency inverters is switched from cyclical mode
to the transmission mode of four 16 bit values, in order to operate again with the
selected AS-i destination parameter.
Request
byte 27 26 25 24 23 22 21 20
1 7C16
2 T – circuit
3 slave address
4 destination parameter
5 value 1, high byte
6 value 1, low byte
7 value 2, high byte
8 value 2, low byte
9 value 3, high byte
10 value 3, low byte
11 value 4, high byte
12 value 4, low byte
Response
byte 2 7
26 25 24 23 22 21 20
1 7C16
2 T result
You can find actual command interface examples in the download area of the ho-
mepage of Bihl+Wiedemann.
9.3.1 Reading analog Input Values
Command RD_7X_IN: Reading of analog input values.
PROFIBUS DP V0: cyclic data exchange
Used ID/module in the GSD file: 12 bytes management
Meaning of the bytes:
Request: RD_7X_IN
Byte 1 50hex (RD_7X_IN)
Byte 2 00hex (master 1, single master)
Byte 3 1Dhex (slave address 29)
Byte 4 00hex
issue date 26.1.2005
… …
Byte 12 00hex
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
113
AS-i/PROFIBUS Gateway Command Interface
Response
Byte 1 00hex (or old values)
Byte 2 00hex (or old values)
Byte 3 00hex (or old values)
Byte 4 00hex (or old values)
… …
Byte 12 00hex (or old values)
The call of the command interaface has not been answered with the valid values
since the toggle bit has not been set.
Set of toggle bit:
Request
Byte 1 50hex
Byte 2 80hex (toggle bit, result)
Byte 3 1Dhex (slave address 29)
Byte 4 00hex
… …
Byte 12 00hex
Response
Byte 1 50hex
Byte 2 80hex (toggle bit, master1)
Byte 3 analog channel 1 high bytehex
Byte 4 analog channel 1 low bytehex
Byte 5 analog channel 2 high bytehex
Byte 6 analog channel 2 low bytehex
Byte 7 analog channel 3 high bytehex
Byte 8 analog channel 3 low bytehex
Byte 9 analog channel 4 high bytehex
Byte 10 analog channel 4 low bytehex
Byte 11 00hex not used
Byte 12 00hex not used
To get the input data again, the T-bit has to be reset again. If a command of the
command interface with DP V1 is being carried out, setting the toggle bit is not ne-
cessary.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
114 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Request: SET_OP_MODE
Byte 1 0Chex (SET_OP_MODE)
Byte 2 00hex (T = 0, master 1, single master)
Byte 3 01hex (= config mode)
Byte 4 00hex
… …
Byte 12 00hex
Response
Byte 1 00hex (or old values)
Byte 2 00hex (or old values)
… …
Byte 12 00hex (or old values)
Request: SET_OP_MODE
Byte 1 0Chex (SET_OP_MODE)
Byte 2 80hex (T = 1, master 1, single master)
Byte 3 01hex (= config mode)
Byte 4 00hex
… …
Byte 12 00hex
Response
Byte 1 0Chex
Byte 2 80hex (T = 1, result = 0)
Byte 3 00hex (or old values)
… …
Byte 12 00hex (or old values)
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
115
AS-i/PROFIBUS Gateway Command Interface
Result = 0 ⇒ No error, for other result codes see chapter 9.1.2 "Values for Resul-
ts".
Request: STORE_CDI
Byte 1 07hex (STORE_CDI)
Byte 2 00hex (T = 0, master 1, single master)
Byte 3 00hex
… …
Byte 12 00hex
Response
Byte 1 00hex (or old values)
Byte 2 00hex (or old values)
… …
Byte 12 00hex (or old values)
Request: STORE_CDI
Byte 1 07hex (STORE_CDI)
Byte 2 80hex (T = 0, master 1, single master)
Byte 3 00hex
… …
Byte 12 00hex
Response
Byte 1 00hex
Byte 2 80hex (T = 1, result = 0)
Byte 3 00hex (or old values)
… …
Byte 12 00hex (or old values)
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
116 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Request: SET_OP_MODE
Byte 1 0Chex (SET_OP_MODE)
Byte 2 00hex (T = 0, master 1, single master)
Byte 3 00hex (= protected mode)
Byte 4 00hex
… …
Byte 12 00hex
Response
Byte 1 00hex (or old values)
Byte 2 00hex (or old values)
… …
Byte 12 00hex (or old values)
Request: SET_OP_MODE
Byte 1 0Chex (SET_OP_MODE)
Byte 2 80hex (T = 1, master 1, single master)
Byte 3 00hex (= protected mode)
Byte 4 00hex
… …
Byte 12 00hex
Response
Byte 1 0Chex
Byte 2 80hex (T = 1, result = 0)
Byte 3 00hex (or old values)
… …
Byte 12 00hex (or old values)
The master has now been ordered to switch to protected mode. It must being wa-
tited until the master is switching in this operation mode.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
117
AS-i/PROFIBUS Gateway Command Interface
Request: GET_FLAGS
Byte 1 47hex (GET_FLAGS)
Byte 2 00hex (T = 0, master 1, single master)
Byte 3 00hex
… …
Byte 12 00hex
Response
Byte 1 00hex (or old values)
Byte 2 00hex (or old values)
… …
Byte 12 00hex (or old values)
Request: GET_FLAGS
Byte 1 47hex (GET_FLAGS)
Byte 2 00hex (T = 0, master 1, single master)
Byte 3 00hex
Byte 4 00hex
… …
Byte 12 00hex
Response
Byte 1 47hex
Byte 2 80hex (T = 1, result = 0)
Byte 3 - - - - - - - POK
Byte 4 OR APF NA CA AAv AAs S0 COK
Byte 5 AAe OL DX
Byte 6 00hex
…
Byte 12 00hex
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.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
118 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Request: SET_OP_MODE
Byte 1 0Chex (SET_OP_MODE)
Byte 2 00hex (T = 0, master 1, single master)
Byte 3 01hex (= config mode)
Byte 4 00hex
… …
Byte 12 00hex
Response
Byte 1 00hex (or old values)
Byte 2 00hex (or old values)
Byte 3 00hex (or old values)
Byte 4 00hex (or old values)
… …
Byte 12 00hex (or old values)
Request: SET_OP_MODE
Byte 1 0Chex (SET_OP_MODE)
Byte 2 80hex (T = 1, master 1, single master)
Byte 3 01hex (= config mode)
Byte 4 00hex
… …
Byte 12 00hex
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
119
AS-i/PROFIBUS Gateway Command Interface
Response
Byte 1 0Chex
Byte 2 80hex (T = 1, result = 0)
Byte 3 00hex (or old values)
Byte 4 00hex (or old values)
… …
Byte 12 00hex (or old values)
Request: SET_PCD
Byte 1 25hex (SET_PCD)
Byte 2 00hex (T = 0, master 1, single master)
Byte 3 04hex (slave address to write to master)
Byte 4 EFhex (ID + IO to configurate)
Byte 5 37hex (xID2 + xID1 to configurate)
Byte 6 00hex
… …
Byte 12 00hex
Response
Byte 1 00hex (or old values)
Byte 2 00hex (or old values)
Byte 3 00hex (or old values)
Byte 4 00hex (or old values)
… …
Byte 12 00hex (or old values)
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
120 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Request: SET_PCD
Byte 1 0Chex (SET_PCD)
Byte 2 80hex (T = 1, master 1, single master)
Byte 3 04hex (slave address to write to master)
Byte 4 EFhex (ID + IO to configurate)
Byte 5 37hex (ID + IO to configurate)
Byte 6 00hex
… …
Byte 12 00hex
Response
Byte 1 25hex
Byte 2 80hex (T = 1, result = 0)
Byte 3 00hex (or old values)
Byte 4 00hex (or old values)
… …
Byte 12 00hex (or old values)
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
121
AS-i/PROFIBUS Gateway Command Interface
Request: SET_LPS
Byte 1 29hex (SET_LPS)
Byte 2 00hex (T = 0, master 1, single master)
Byte 3 00hex
Byte 4 10hex (LDS byte 0)
Byte 5 00hex (LDS byte 1)
… …
Byte 11 00hex (LDS byte 7)
Byte 12 00hex
Response
Byte 1 00hex (or old values)
Byte 2 00hex (or old values)
… …
Byte 12 00hex (or old values)
Request: SET_LPS
Byte 1 29hex
Byte 2 80hex (T = 1, master 1, single master)
Byte 3 00hex
Byte 4 10hex (LDS byte 0)
Byte 5 00hex (LDS byte 1)
… …
Byte 11 00hex (LDS byte 7)
Byte 12 00hex
Response
Byte 1 29hex
Byte 2 80hex (T = 1, result = 0)
Byte 3 00hex (or old values)
… …
Byte 12 00hex (or old values)
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
122 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Request: SET_PP
Byte 1 43hex (SET_PP)
Byte 2 00hex (T = 0, master 1, single master)
Byte 3 04hex (slave address to write to master)
Byte 4 07hex (PP to write (use low nibble))
Byte 5 00hex (LDS byte 1)
… …
Byte 12 00hex
Response
Byte 1 00hex (or old values)
Byte 2 00hex (or old values)
… …
Byte 12 00hex (or old values)
Request: SET_PP
Byte 1 43hex (SET_PP)
Byte 2 80hex (T = 0, master 1, single master)
Byte 3 04hex (slave address to write to master)
Byte 4 07hex (PP to write (use low nibble)
Byte 5 00hex
… …
Byte 12 00hex
Response
Byte 1 43hex
Byte 2 80hex (T = 1, Result = 0)
Byte 3 00hex
… …
Byte 12 00hex
don't connect a slave to an address, write the default value to the master (Fhex) as
a permanent parameter.
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
123
AS-i/PROFIBUS Gateway Command Interface
Request: SET_OP_MODE
Byte 1 0Chex (SET_OP_MODE)
Byte 2 00hex (T = 0, master 1, single master)
Byte 3 00hex (= protected mode)
Byte 4 00hex
… …
Byte 12 00hex
Response
Byte 1 00hex (or old values)
Byte 2 00hex (or old values)
… …
Byte 12 00hex (or old values)
Request: SET_OP_MODE
Byte 1 0Chex (SET_OP_MODE)
Byte 2 80hex (T = 1, master 1, single master)
Byte 3 00hex (= protected mode)
Byte 4 00hex
… …
Byte 12 00hex
Response
Byte 1 0Chex
Byte 2 80hex (T = 1, result = 0)
Byte 3 00hex (or old values)
… …
Byte 12 00hex (or old values)
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
124 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Command Interface
Request: GET_FLAGS
Byte 1 47hex (GET_FLAGS)
Byte 2 00hex (T = 0, master 1, single master)
Byte 3 00hex
… …
Byte 12 00hex
Response
Byte 1 00hex (or old values)
Byte 2 00hex (or old values)
… …
Byte 12 00hex (or old values)
Request: GET_FLAGS
Byte 1 47hex (GET_FLAGS)
Byte 2 00hex (T = 0, master 1, single master)
Byte 3 00hex
Byte 4 00hex
… …
Byte 12 00hex
Response
Byte 1 47hex
Byte 2 80hex (T = 1, result = 0)
Byte 3 - - - - - - - POK
Byte 4 OR APF NA CA AAv AAs S0 COK
Byte 5 AAe OL DX
Byte 6 00hex
…
Byte 12 00hex
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.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
125
AS-i/PROFIBUS Gateway Command Interface
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
126 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Commissioning Tools and Accessories
The AS-i circuit on the AS-i/PROFIBUS gateway can be put into operation comfor-
tably with the Windows software "AS-i Control Tools" (art. no. BW1602).
This software communicates with the AS-i/PROFIBUS gateway by means of a
PROFIBUS DP master simulator DP V1 (art. no. BW1257) or a serial PROFIBUS
master (art. no BW1258), which converts the RS 232-signals of the PC to PROFI-
BUS.
The Windows software AS-i Control Tools enables you to configure the AS-i circuit
in a very comfortable manner.
1. For this purpose plug in a Bihl+Wiedemann PROFIBUS DP Master Simulator
DP V1 or a serial PROFIBUS Master to the D-SUB-connector of the AS-i/
PROFIBUS gateway and connect the device with a fully covered cable to the se-
rial interface of your PC.
2. Start the AS-i Control Tools.
3. Call the command Master | New.
4. Choose PROFIBUS as protocol.
5. Do the appropriate settings. (e.g. serial interface COM 2, station address <au-
to>, AS-i circuit 1)
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
127
AS-i/PROFIBUS Gateway Commissioning Tools and Accessories
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
128 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Commissioning Tools and Accessories
A very easy approach to configure the AS-i circuit is connecting each AS-i slave to
the line and setting the AS-i slave address one after the other. After that press the
button “Store configuration” to adopt the detected AS-i circuit to the AS-i master as
projected data.
Furthermore you can use the AS-i Address Assistant. This tool automatically
changes the address of an AS-i slave to the desired address after connecting the
slave to the AS-i line. The desired AS-i configuration can be created ooffline before
and then be stored to a file. When building up the plant you only have to connect
the AS-i slaves to the AS-i line one after the other.
Further descriptions to all features of the software can be obtained from the inte-
grated help.
The PROFIBUS DP Master Simulator is an easy to use software for data ex-
change with PROFIBUS slaves of almost all manufacturers via PROFIBUS DP.
The PROFIBUS DP master simulator can exchange data with many PROFIBUS
slaves even without GSD file or type-file. The PROFIBUS slaves can be put into
operation with the default I/O window. Input data can be read and output data can
be written. Furthermore, the PROFIBUS DP Master Simulator also processes
GSD-files. User parameters can be edited and the configuration can be modified
and stored. The PROFIBUS station address can be changed with the PROFIBUS
DP master simulator as well, this is useful for PROFIBUS I/O modules in protection
class IP67 without addressing switches.
The PROFIBUS DP Master Simulator offers the possibility to scan a PROFIBUS
network for connected slaves and and to display them graphically. In this case, the
case the PROFIBUS UART has to be connected directly to a PROFIBUS slave.
The I/O data and the PROFIBUS user diagnosis can be displayed binary, hexde-
cimal and now also as ASCII code. The PROFIBUS output data can be transmitted
consistently to the PROFIBUS slave. In type mode it is possible to set an output
as long as the mouse button is pressed.
The new version of the PROFIBUS DP Master Simulator (article no. BW1257) sup-
issue date 26.1.2005
ports PROFIBUS DP V1. PROFIBUS slaves can be operated in the acyclic mode
DP V1. This is especially helpful for commissioning complex field devices like
drives, modular I/O systems etc.
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
129
AS-i/PROFIBUS Gateway Commissioning Tools and Accessories
The PROFIBUS Master Simulator consists of the software and the PROFIBUS
UART which is the ideal interface converter between the RS 232 interface of a PC
and the PROFIBUS slave. The UART does not need any additional external power
supply. Therefore it is also suitable for mobile use with a laptop or a notebook. The
PROFIBUS UART is simply inserted between the PROFIBUS slave and the
RS 232 connector cable.
Besides the software "PROFIBUS DP master simulator", DLL drivers for
Windows98, Windows Me, Windows 2000 and Windows NT as well as examples
written in C come with the PROFIBUS UART. This offers the possibility to use the
PROFIBUS UART in combination with an own software. However the PROFI-
BUS UART is a monitoring and commissioning tool for PROFIBUS slaves, it is not
designed to control automation processes.
The serial PROFIBUS master (art. no. BW1258) fulfills all tasks of the PROFIBUS
DP master simulator. Furthermore, it can run the PROFIBUS with up to
1,5 MBaud.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
130 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Appendix: Codes indicated by the Display
In the basic state of the configuration mode, the display shows the addresses of
all detected slaves at a rate of two per second one after the other. A blank display
indicates that the LDS is empty, no slaves were detected.
In the basic state of the protected operating mode, the display is either blank or
displays the address of a faulty assignment (see chapter 6.3.2).
During manual address programming, the slave address display has a different
meaning (see chapter 6.4 and 6.5).
All displayed numbers bigger than 31 which can not be interpreted as a slave
address are status or error messages of the master. They have the following me-
anings:
94 Error while changing the slave address in protected operating mode: Slave
has wrong configuration data.
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
131
AS-i/PROFIBUS Gateway Appendix: Codes indicated by the Display
95 Error while changing slave address in protected operating mode: The con-
figuration error was caused by a superfluous slave (instead of a missing
slave).
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
132 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
Dokumentation AS-Interface/PROFIBUS-
Gateways (deutsch): Art.-Nr. BW1339
[Link]
Documentation AS-Interface/PROFIBUS-
Gateways (english): Art.-No. BW1350
[Link]
Dimensions [mm]
55
76
issue date 26.1.2005
120 75
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
133
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
Montage
on mounting plate with 35 mm top-hat rail 1
1
3
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
134 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
4
{ Am Kabel für das Netzteil dürfen keine Slaves oder Repeater
angeschlossen werden.
Am Kabel für den AS-i-Anschluss dürfen keine AS-i-Netzteile
oder weitere Master angeschlossen werden.
At the cable for power supply no slaves or repeaters may be
3 attached.
At the cable for AS-i circuit no power supplies or further ma-
sters may be attached.
Au câble pour l'alimentation aucun esclave ou répéteur peut
}
ne pas être attaché.
mode
Au câble pour le circuit AS-i aucune alimentation ou autre
ESC
set
OK 2 maître ne peut être attachée
Al cavo per il alimentazione nessun schiavi o ripetitore pos-
sono essere fissati.
Al cavo per il AS-i circuito nessun alimentazione o ulteriore
padrone possono essere fissati.
+ - + - + -
En el cable para l´alimentación ningunos esclavos o repetido-
res pueden ser unidos.
5 En el cable para el AS-i circuito ningunas alimentación u
6 otros amos pueden ser unidos.
6 7
6 AS-i-Kreis/AS-i circuit/Bus AS-i/AS-i Circuito/AS-i Circuito
7 AS-i-Netzteil/AS-i power supply/Alimentation bus/Alimen-
tazione AS-i/Alimentación AS-i
7 Alimentation
6 Connexion AS-Interface
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
135
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
1. Startup
LCD LCD
1.12A PROFIBUS
QUICK SETUP
SETUP
UNKNOWN SLAVE IO + PARAM. TEST
klassische Anzeige vollgrafische Anzeige
classical display ESC fullgraphical display
Affichage classique Affichage graphique
indicazione classico indicazione grafico
indicación clásico indicación gráfico
siehe Zusatzblatt
see additional page
page supplémentaire
pagina supplementare
página adicional
LCD
LCD PROFIBUS ADDRESS
OLD ADDRESS 3
PROFIBUS
NEW ADDRESS 000
QUICK SETUP
SETUP
2x ↓
OK
LCD
LCD PROFIBUS ADDRESS
OLD ADDRESS 3
PROFIBUS ADDRESS
NEW ADDRESS 000
PROFIBUS STATUS
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
136 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
2x OK ↑ OK
LCD
PROFIBUS ADDRESS
OLD ADDRESS 14
NEW ADDRESS 000
PROFIBUS ADDRESS LCD
OLD ADDRESS 3
NEW ADDRESS 010
2x ESC
LCD
4x ↑ OK
PROFIBUS
QUICK SETUP
SETUP
2x ESC
Das Gerät ist werkseitig auf Adresse 3 eingestellt.
The device is set to address 3 at the factory.
L’appareil est réglé en usine à l’adresse 3.
Il dispositivo viene de la fábrica con l’indirizzo 3.
El aparato viene ajustado de fábrica en la dirección 3.
AS-Interface
PROFIBUS PROFIBUS
config error
1. 1
Master
Master
config error
U AS-Interface U AS-Interface
AS-Interface active AS-i active
prg enable prg enable
prj mode prj mode
AS-Interface AS-Interface
0.5s
AS-Interface LCD
AS-Interface
Slave 1
1. 5
Slave 1
AS-Interface
1. 41 AS-Interface
Slave 5
0.5s
SEARCHING SLAVES
Slave 5
AS-Interface
1.24
AS-Interface
Slave 24
Slave 24
issue date 26.1.2005
0.5s
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
137
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
LCD LCD
1. 5 STORE AS-INTERFACE
CONFIGURATION
OK
STORE +PRJ MODE
OK ↓ 2x ESC
LCD
PROFIBUS config error
QUICK SETUP
SETUP LCD
IO + PARAM. TEST
OK
1.
CONFIGURATION OK
LCD
LCD
WARNING:
OUTPUTS MAY BE
RESET PROFIBUS ERROR
NO CONNECTION
OK ↓
LCD
STORE AS-I
CONFIGURATION
STORE +RUN
STORE +PRJ MODE
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
138 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
2. Error Tracing
2.0s
AS-Interface
Slave 1 LCD
AS-Interface
Slave 5
1.24
MISSING SLAVE
AS-Interface
2.0s
Slave 24
PROFIBUS PROFIBUS
config error config error LCD
Master
Master
U AS-Interface U AS-Interface
AS-Interface active AS-Interface active
PROFIBUS ERROR
prg enable prg enable
NO CONNECTION
prj mode prj mode
AS-Interface AS-Interface
AS-Interface AS-Interface
Slave 1 Slave 1 set/↓
AS-Interface AS-Interface
Slave 5 Slave 5
24
AS-Interface
AS-Interface
Slave 24
Slave 24
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
139
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
3. Addressing
OK 2x ↓ 2x OK 4x ↑
LCD
PROFIBUS AS-INTERFACE SLAVE ADDR. LCD
QUICK SETUP OLD ADDRESS 0
SETUP NEW ADDRESS 04
IO + PARAM. TEST
2x OK
OK
LCD
AS-INTERFACE SLAVE ADDR. LCD
AS-INTERFACE CIRCUIT 1
OLD ADDRESS 0
AS-INTERFACE CIRCUIT 2
OK
3x ESC
OK
LCD
LCD
AS-INTERFACE SLAVE ADDR.
FORCE OFFLINE
1. 4
OPERATION MODE UNKNOWN SLAVE
STORE ACT. CFG.
OK 2x ↓
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
140 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
4. Accessories
4.1 Software "AS-i Control Tools" with serial transmission cord for AS-i Master in stainless
steel (art. no. BW1602), serial PROFIBUS Master (art. no. BW1258)
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
141
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
Dokumentation AS-Interface/PROFIBUS-
Gateways (deutsch): Art.-Nr. BW1339
[Link]
Documentation AS-Interface/PROFIBUS-
Gateways (english): Art.-No. BW1350
[Link]
Dimensions [mm]
55
76
7
issue date 26.1.2005
120 75
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
142 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
Montage
on mounting plate with 35 mm top-hat rail 1
1
3
2
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
143
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
ESC
mode
set
OK 2
}
Le bus AS-i 1 et 2 sont fournis à partir de différentes alimen-
tations.
Au câble pour l'alimentation aucun esclave ou répéteur peut
ne pas être attaché.
Au câble pour le circuit AS-i aucune alimentation ou autre
maître ne peut être attachée
+ - + - + - + - I circuiti AS-i 1 e 2 sono forniti dai gruppi di alimentazione dif-
ferenti.
Al cavo per il alimentazione nessun schiavi o ripetitore pos-
5 sono essere fissati.
6 8 Al cavo per il AS-i circuito nessun alimentazione o ulteriore
7 9 padrone possono essere fissati.
6 AS-i-Kreis 1/AS-i circuit 1/Bus AS-i 1/AS-i Circuito 1/AS-i El AS-i circuito 1 y 2 se provee de diversas fuentes de alimen-
Circuito 1 tación.
7 AS-i-Netzteil Kreis 1/AS-i power supply circuit 1/Alimenta- En el cable para l´alimentación ningunos esclavos o repetido-
tion bus AS-i 1/Alimentazione AS-i circuito 1/Alimentación res pueden ser unidos.
AS-i circuito 1 En el cable para el AS-i circuito ningunas alimentación u
8 AS-i-Netzteil Kreis 2/AS-i power supply circuit 2/Alimenta- otros amos pueden ser unidos.
tion bus AS-i 2/Alimentazione AS-i circuito 2/Alimentación
AS-i circuito 1
9 AS-i-Kreis 2/AS-i circuit 2/Bus AS-i 2/AS-i Circuito 2/AS-i
Circuito 2 Temperature rating for cable: 60/75oC
Operating temperature: 0oC … +55oC Use copper conductors only
Tightening torque: 7 pound inches 1 x 0.5 - 1.5 mm² (16AWG)
78 Alimentation
69 Connexion AS-Interface
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
144 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
1. Startup
LCD LCD
1.12A PROFIBUS
QUICK SETUP
SETUP
UNKNOWN SLAVE IO + PARAM. TEST
klassische Anzeige vollgrafische Anzeige
classical display ESC fullgraphical display
Affichage classique Affichage graphique
indicazione classico indicazione grafico
indicación clásico indicación gráfico
siehe Zusatzblatt
see additional page
page supplémentaire
pagina supplementare
página adicional
LCD
LCD PROFIBUS ADDRESS
OLD ADDRESS 3
PROFIBUS
NEW ADDRESS 000
QUICK SETUP
SETUP
2x ↓
OK
LCD
LCD PROFIBUS ADDRESS
OLD ADDRESS 3
PROFIBUS ADDRESS
NEW ADDRESS 000
PROFIBUS STATUS
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
145
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
2x OK ↑ OK
LCD
PROFIBUS ADDRESS
OLD ADDRESS 14
NEW ADDRESS 000
PROFIBUS ADDRESS LCD
OLD ADDRESS 3
NEW ADDRESS 010
2x ESC
LCD
4x ↑ OK
PROFIBUS
QUICK SETUP
SETUP
2x ESC
Das Gerät ist werkseitig auf Adresse 3 eingestellt.
The device is set to address 3 at the factory.
L’appareil est réglé en usine à l’adresse 3.
Il dispositivo viene de la fábrica con l’indirizzo 3.
El aparato viene ajustado de fábrica en la dirección 3.
AS-Interface
PROFIBUS PROFIBUS
config error
1. 1
Master
Master
config error
U AS-Interface U AS-Interface
AS-Interface active AS-i active
prg enable prg enable
prj mode prj mode
AS-Interface AS-Interface
0.5s
AS-Interface LCD
AS-Interface
Slave 1
1. 5
Slave 1
AS-Interface
1. 41 AS-Interface
Slave 5
0.5s
SEARCHING SLAVES
Slave 5
AS-Interface
1.24
AS-Interface
Slave 24
Slave 24
issue date 26.1.2005
0.5s
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
146 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
LCD LCD
1. 5 STORE AS-INTERFACE
CONFIGURATION
OK
STORE +PRJ MODE
OK ↓ 2x ESC
LCD
PROFIBUS config error
QUICK SETUP
SETUP LCD
IO + PARAM. TEST
OK
1.
CONFIGURATION OK
LCD
LCD
WARNING:
OUTPUTS MAY BE
RESET PROFIBUS ERROR
NO CONNECTION
OK ↓
LCD
STORE AS-I
CONFIGURATION
STORE +RUN
STORE +PRJ MODE
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
147
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
2. Error Tracing
PROFIBUS
config error
Master
U AS-Interface
AS-Interface active
prg enable
1.1
prj mode MISSING SLAVE
AS-Interface
2.0s
AS-Interface
Slave 1 LCD
AS-Interface
Slave 5
1.24
MISSING SLAVE
AS-Interface
2.0s
Slave 24
PROFIBUS PROFIBUS
config error config error LCD
Master
Master
U AS-Interface U AS-Interface
AS-Interface active AS-Interface active
PROFIBUS ERROR
prg enable prg enable
NO CONNECTION
prj mode prj mode
AS-Interface AS-Interface
AS-Interface AS-Interface
Slave 1 Slave 1 set/↓
AS-Interface AS-Interface
Slave 5 Slave 5
24
AS-Interface
AS-Interface
Slave 24
Slave 24
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
148 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
3. Addressing
OK 2x ↓ 2x OK 4x ↑
LCD
PROFIBUS AS-INTERFACE SLAVE ADDR. LCD
QUICK SETUP OLD ADDRESS 0
SETUP NEW ADDRESS 04
IO + PARAM. TEST
2x OK
OK
LCD
AS-INTERFACE SLAVE ADDR. LCD
AS-INTERFACE CIRCUIT 1
OLD ADDRESS 0
AS-INTERFACE CIRCUIT 2
OK
3x ESC
OK
LCD
LCD
AS-INTERFACE SLAVE ADDR.
FORCE OFFLINE
1. 4
OPERATION MODE UNKNOWN SLAVE
STORE ACT. CFG.
OK 2x ↓
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
149
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
4. Accessories
4.1 Software "AS-i Control Tools" with serial transmission cord for AS-i Master in stainless
steel (art. no. BW1602), serial PROFIBUS Master (art. no. BW1258)
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
150 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
Dokumentation AS-Interface/PROFIBUS-
Gateways (deutsch): Art.-Nr.
[Link]
Documentation AS-Interface/PROFIBUS-
Gateways (english): Art.-No.
[Link]
Dimensions [mm]
55
76
7
issue date 26.1.2005
120 75
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
151
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
Montage
on mounting plate with 35 mm top-hat rail 1
1
3
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
152 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
4
{ AS-i-Kreis 1 und 2 werden beide aus dem Netzteil (BW1592/
BW1593) versorgt. Andere Netzteile sind nicht freigegeben!
Am Kabel für das Netzteil dürfen keine Slaves oder Repeater
angeschlossen werden. Am Kabel für den AS-i-Anschluss
dürfen keine AS-i-Netzteile oder weitere Master angeschlos-
sen werden.
3
AS-i circle 1 and 2 are both supplied from power supply
(BW1592/BW1593). Other power supplies are not released
for use! At the cable for power supply no slaves or repeaters
may be attached. At the cable for AS-i circuit no power supp-
}
lies or further masters may be attached.
mode
6 Alimentation
78 Connexion AS-Interface
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
153
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
1. Startup
LCD LCD
1.12A PROFIBUS
QUICK SETUP
SETUP
UNKNOWN SLAVE IO + PARAM. TEST
klassische Anzeige vollgrafische Anzeige
classical display ESC fullgraphical display
Affichage classique Affichage graphique
indicazione classico indicazione grafico
indicación clásico indicación gráfico
siehe Zusatzblatt
see additional page
page supplémentaire
pagina supplementare
página adicional
LCD
LCD PROFIBUS ADDRESS
OLD ADDRESS 3
PROFIBUS
NEW ADDRESS 000
QUICK SETUP
SETUP
2x ↓
OK
LCD
LCD PROFIBUS ADDRESS
OLD ADDRESS 3
PROFIBUS ADDRESS
NEW ADDRESS 000
PROFIBUS STATUS
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
154 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
2x OK ↑ OK
LCD
PROFIBUS ADDRESS
OLD ADDRESS 14
NEW ADDRESS 000
PROFIBUS ADDRESS LCD
OLD ADDRESS 3
NEW ADDRESS 010
2x ESC
LCD
4x ↑ OK
PROFIBUS
QUICK SETUP
SETUP
2x ESC
Das Gerät ist werkseitig auf Adresse 3 eingestellt.
The device is set to address 3 at the factory.
L’appareil est réglé en usine à l’adresse 3.
Il dispositivo viene de la fábrica con l’indirizzo 3.
El aparato viene ajustado de fábrica en la dirección 3.
AS-Interface
PROFIBUS PROFIBUS
config error
1. 1
Master
Master
config error
U AS-Interface U AS-Interface
AS-Interface active AS-i active
prg enable prg enable
prj mode prj mode
AS-Interface AS-Interface
0.5s
AS-Interface LCD
AS-Interface
Slave 1
1. 5
Slave 1
AS-Interface
1. 41 AS-Interface
Slave 5
0.5s
SEARCHING SLAVES
Slave 5
AS-Interface
1.24
AS-Interface
Slave 24
Slave 24
issue date 26.1.2005
0.5s
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
155
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
LCD LCD
1. 5 STORE AS-INTERFACE
CONFIGURATION
OK
STORE +PRJ MODE
OK ↓ 2x ESC
LCD
PROFIBUS config error
QUICK SETUP
SETUP LCD
IO + PARAM. TEST
OK
1.
CONFIGURATION OK
LCD
LCD
WARNING:
OUTPUTS MAY BE
RESET PROFIBUS ERROR
NO CONNECTION
OK ↓
LCD
STORE AS-I
CONFIGURATION
STORE +RUN
STORE +PRJ MODE
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
156 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
2. Error Tracing
2.0s
AS-Interface
Slave 1 LCD
AS-Interface
Slave 5
1.24
MISSING SLAVE
AS-Interface
2.0s
Slave 24
PROFIBUS PROFIBUS
config error config error LCD
Master
Master
U AS-Interface U AS-Interface
AS-Interface active AS-Interface active
PROFIBUS ERROR
prg enable prg enable
NO CONNECTION
prj mode prj mode
AS-Interface AS-Interface
AS-Interface AS-Interface
Slave 1 Slave 1 set/↓
AS-Interface AS-Interface
Slave 5 Slave 5
24
AS-Interface
AS-Interface
Slave 24
Slave 24
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
157
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
3. Addressing
OK 2x ↓ 2x OK 4x ↑
LCD
PROFIBUS AS-INTERFACE SLAVE ADDR. LCD
QUICK SETUP OLD ADDRESS 0
SETUP NEW ADDRESS 04
IO + PARAM. TEST
2x OK
OK
LCD
AS-INTERFACE SLAVE ADDR. LCD
AS-INTERFACE CIRCUIT 1
OLD ADDRESS 0
AS-INTERFACE CIRCUIT 2
OK
3x ESC
OK
LCD
LCD
AS-INTERFACE SLAVE ADDR.
FORCE OFFLINE
1. 4
OPERATION MODE UNKNOWN SLAVE
STORE ACT. CFG.
OK 2x ↓
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
158 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Appendix: Installation/Commissioning Instructions
4. Accessories
4.1 Power supply 4A (art. no. BW1592)/8A (art. no. BW1593) for art. no. BWU1569
4.2 Software "AS-i Control Tools" with serial transmission cord for AS-i Master in stainless
steel (art. no. BW1602), serial PROFIBUS Master (art. no. BW1258)
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
159
AS-i/PROFIBUS Gateway Glossary: AS-Interface Terms
A/B slave
AS-Interface slave with extensible addressing: The address range of an A/B slave
runs from 1A to 31A and from 1B to 31B. As the master needs the fourth output
data bit for switching between A and B address, A/B slaves only have three output
data bits maximum.
Activation Phase
In the activation phase the detected slaves are activated by sending the parame-
ter. This is indicated by a "42" on the Master's Display. This phase takes only
10 ms, tops, to short to be displayed.
Inclusion Phase
After the data exchange with all AS-i slaves the master is searching for new
slaves. For this purpose an detection telegram is sent to one AS-i address and in
case of an answer the master tries to read the ⇒ actual configuration of the slave.
Depending on the mode (⇒ protected mode or ⇒ configuration mode) and on the
actual configuration the detected slave will be activated.
After each data exchange with all AS-i slaves only one detection telegram is sent
to one slave address. So the AS-i cycle is always one telegram longer as expected
from the number of activated slaves (⇒ LAS).
Autoprog Flags
Auto Address Enable; flag from the Host to the AS-i Master
With this flag, automatic addressing can be enabled or inhibited.
This flag is stored non-volatile in the Master.
Auto Address Assign, Auto Adress Possible; flag from the AS-i Master to the Host
The automatic programming is not inhibited and there is no configuration er-
ror.
A failing slave could be addressed automatically.
Auto Address Available, flag from the AS-i Master to the Host
Exactly one AS-i slave is missing and the automatic programming is not in-
hibited. If a slave with the address 0 and the profile of the missing slave is
connected, it receives the address of the missing slave automatically.
issue date 26.1.2005
IO-Code
The first digit of the slave profile indicates the number of inputs and outputs of the
slave. A 4I/4O slave e.g. is associated to "7", a slave with 4 digital Inputs to "0".
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
160 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Glossary: AS-Interface Terms
Detection phase
In the detection phase at start-up the master is scanning for AS-i slaves. It remains
in this phase until at least one slave is detected. If the master remains in the de-
tection phase this means that no slave was found. The reason for this may be a
wrong power supply or a wiring error.
The detection phase is displayed by code "41".
Protected mode
In protected mode only those slaves are activated which are registered in the
⇒ LPS and whose actual configuration matches with the target configuration.
See ⇒ configuration mode. This mode is intended for the normal operation, since
all AS-i protective measures are activated.
ID code
The ID code is unchangeably set by the manufacturer of the AS-i slave. The AS-i
Association defines the ID codes assigned to a certain category of slaves. All
⇒ A/B slaves e.g. possess the ID code "A".
Actual configuration
The configuration data of all slaves detected by the master. The configuration data
of one slave, the ⇒ slave profile, consists of:
⇒ IO code, ⇒ ID code, ⇒ extended ID1code 1, ⇒ extended ID2 code.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
161
AS-i/PROFIBUS Gateway Glossary: AS-Interface Terms
Actual parameter
The AS-i parameter that have been sent last to the AS-i slave, in contrary to
⇒ permanent parameters.
Offline phase
In the offline phase all input and output data is reset. This phase is entered at
start-up of the master, after a ⇒ AS-i power fail, and at the transition of the ⇒ con-
figuration mode to the ⇒ protected mode.
Furthermore the master can actively be put into the offline phase with the offline
flag.
During the offline phase, masters with a display show code "40".
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
162 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway Glossary: AS-Interface Terms
Peripheral fault
A peripheral fault is shown on the master and on the slave by a red flashing LED.
Depending on the slave type it is possible to visualize an overflow, an overload of
the sensor's power supply or another fault regarding the peripheral equipment of
the slave.
Permanent configuration
The configuration data of all expected slaves stored in the master (⇒ slave pro-
file). If the permanent configuration differs from the ⇒ actual configuration, there
is a configuration error.
Permanent parameter
The parameter stored in the master that are sent to the slave after start-up of the
master in the ⇒ activation phase.
Configuration mode
During the configuration mode the master exchanges data with all connected
slaves, no matter which of the slaves are projected. In this mode it is possible to
commission a system without being obliged to configure it before.
See also ⇒ protected mode.
Single slave
Compared to an ⇒ A/B slave a single slave can only be addressed from the ad-
dress 1 to 31; the fourth data output bit can be used. All slaves of the older speci-
fication 2.0 are single slaves.
There are also slaves fulfilling the new specification 2.1 that are single slaves, e.g.
the newer analog slaves.
Slave profil
The configuration data of a slave consisting of:
⇒ IO code, ⇒ ID code, ⇒ extended ID1 code, ⇒ extended ID2 code.
The slave profile is to differentiate between the different slave categories. It is
specified by the AS-i Association and preset by the slave manufacturer.
AS-Interface 2.0 slaves do not have extended ID1 and ID2 codes. In this case an
AS-Interface master 2.1 enters "F" the extended ID1 and the extended ID2 code.
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
163
AS-i/PROFIBUS Gateway We Are Interested in Your Opinion!
Please tell us your suggestions, wishes and comments concerning this document.
We will review every note or comment and - if possible - include it in future issues.
Please fill out the form on the following page and fax it to us, or send your com-
ments, suggestions etc. to the following address:
Bihl+Wiedemann GmbH
Technical Support
Flosswoerthstr. 41
D - 68199 Mannheim
Phone: +49 (0) 621-33 99 6-0
Fax: +49 (0) 621-33 9 22 39
eMail: mail@[Link]
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
164 Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
AS-i/PROFIBUS Gateway We Are Interested in Your Opinion!
Fax-Reply
Bihl+Wiedemann GmbH Date:
Technical Support
Fax No: +49 (0) 621-33 9 22 39
eMail: mail@[Link]
From:
Company: Name:
Department:
Address: Job Function:
City: Phone:
ZIP Code: Fax:
Country: eMail:
Document:
Designation: Issue Date:
Other Comments:
issue date 26.1.2005
Subject to reasonable modifications due to technical advances Copyright Bihl+Wiedemann, Printed in Germany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet [Link]
165