AS-Interface Master/Scanner for ALLEN-BRADLEY ControlLogix User Manual
AS-i Sc anner for Al len-B radl ey
Table of Contents
Tabl e of Cont ents 1
The Symbols Used .............................................................................. 6
2
Safety ................................................................................................... 7
2.1 2.2
Intended Use ......................................................................................................7 General Safety Information ............................................................................... 7
3
General Information . ........................................................................... 8
4
Descri ption .......................................................................................... 9
4.1 4.2 4.3
LED Indicators .................................................................................................... 9 Conne ction of the AS-i Scanne r .......................................................................9 Display and Operating Elements ......................................................................9
4.3.1 4.3.2
LEDs of the Double Masters ..... ...........................................................................9 Push-Buttons ..................................................................................................... 10
5
Configuration .. ................................................................................... 11
5.1
I/O Data Interpretation ..................................................................................... 11
5.1.1 5.1.2
Input Data Array .................................................................................................11 Output Data Arr ay .............................................................................................. 14
6
Operating the AS-i ............................................................................. 18
6.1 6.2 6.3
Master Start-U p ................................................................................................18 Config uration Mode .. .......................................................................................18 Protected Operating Mode .. ............................................................................ 19
6.3.1 6.3.2
Switching to Protected Operating Mode ............................................................ 19 Configuration Errors in Protected Operating Mode ............................................19
6.4
Assigning a n AS-i Addre ss in C onfigura tion M ode ......................................20
6.4.1 6.4.2
Assigning a Slave Address ................................................................................ 20 Erasing the Slav e Address ................................................................................. 20
6.5
Progr ammin g the Addr ess in Case of C onfig ura tion Error s .......................21
6.5.1 6.5.2
Automatic Address Assignment ......................................................................... 21 Manual Address Assignment ............................................................................. 21
6.6
Error Messages ................................................................................................22
7
Command Inte rface ........................................................................... 23
7.1
Constru cti on .....................................................................................................23
7.2
Comma nds of the Comma nd Inte rface .. ........................................................26
7.2.1 7.2.1.1 7.2.1.2 7.2.1.3 7.2.1.4 7.2.1.5
Analog Data .......................................................................................................26 Overview of the Commands ............................................................................... 26 Read 1 7.3-Slave in.Data (RD_7X_IN) .............................................................. 26 Write 1 7.3-Slave out.Data (WR_7X_OUT) ....................................................... 27 Read 1 7.3-Slave out.Data (RD_7X_OUT) ........................................................27 Read 4 7.3-Slave in.Data (RD_7X_IN_X) .......................................................... 28
7.1.1 7.1.2
2
List of all Commands .........................................................................................24 Values for Results ..............................................................................................25
Subjecttoreasonablemodificationsduetotechnicaladvances.
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Tel. +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
6 0 0 .2 2 .1 2 2 te a d e u ss i
AS-i Sc ann er fo r Al len-B radl ey
7.2.1.6 7.2.1.7 7.2.1.8 7.2.1.9 7.2.1.10 7.2.1.11 7.2.2 7.2.2.1 7.2.2.2
6 0 0 .2 2 .1 2 2 e t a d e u s is
Table of Contents
7.2.2.3 7.2.2.4 7.2.2.5 7.2.2.6 7.2.2.7 7.2.2.8 7.2.2.9 7.2.2.10 7.2.2.11 7.2.2.12 7.2.2.13 7.2.2.14 7.2.3 7.2.3.1
Write 4 7.3-Slave out.Data (WR_7X_OUT_X) ................................................... 28 Read 4 7.3-Slave out.Data (RD_7X_OUT_X) ................................................... 29 WR_74_PARAM ................................................................................................ 29 RD_74_PARAM ................................................................................................. 30 RD_74_ID .......................................................................................................... 30 RD_74_DIAG ..................................................................................................... 31 Diagnosis Data .................................................................................................. 32 Overview of the Commands .............................................................................. 32 Get Lists and Flags (Get_LPS, Get_LAS, Get_LDS, Get_Flags) (GET_LISTS) ..................................................................................................... 32 Get Flags (GET_FLAGS) .................................................................................. 33 Get Delta List (GET_DELTA) ......... ................................................................... 35 Get List of Corrupted Slaves (GET_LCS) .......................................................... 36 Get List of Activated Slaves (GET_LAS) ........................................................... 36 Get List of Detected AS-i slaves (GET_LDS) .................................................... 36 Get list of peripheral faults (GET_LPF) ............................................................. 37 Get List of Offline Slaves (GET_LOS) ............................................................... 37 Set List of Off-line Slaves (SET_LOS) ............................................................... 38 Get transm.err.counters (GET_TECA) .............................................................. 38 Get transm.err.counters (GET_TECB) .............................................................. 39 GET_TEC_X ...................................................................................................... 39 Functional profiles ............................................................................................. 40 Functional profiles ............................................................................................. 40 "Safety at Work" List 1 ....................................................................................... 40
7.2.3.2 7.2.3.3 7.2.3.4 7.2.4 7.2.4.1 7.2.4.2 7.2.4.3 7.2.4.4 7.2.4.5 7.2.4.6 7.2.4.7 7.2.4.8 7.2.4.9 7.2.4.10 7.2.4.11
byte 5"Safety at Work" Monitor Diagnosis ......................................................... 42 Integrated AS-i Sensors: Warnings ................................................................... 45 Integrated AS-i Sensors: Availability ................................................................. 46 Configuration of the AS-i Master ....................................................................... 47 Overview of the Commands .............................................................................. 47 Set Operation Mode (SET_OP_MODE: Set_Operation_Mode) ..... ................... 47 Store Actual Configuration (STORE_CDI) ......................................................... 48 Read Actual Configuration (READ_CDI) ........................................................... 48 Set Permanent Configuration (SET_PCD) ........................................................ 49 Get Extended Permanent Configuration (GET_PCD) ....................................... 50 Set List of Projected Slaves (SET_LPS) ........................................................... 50 Get List of Projected Slaves (GET_LPS) ........................................................... 51 Store Actual Parameters (STORE_PI) .............................................................. 51 Write Parameter (WRITE_P) ............................................................................. 52 Read Parameter (READ_PI: Read_Parameter) ................................................ 52
7.2.4.12 7.2.4.13 7.2.4.14 7.2.5 7.2.5.1 7.2.5.2 7.2.5.3 7.2.5.4 7.2.5.5 7.2.5.6
Set_Permanent_Parameter (SET_PP) ...... ........................................................ 53 Get_Permanent_Parameter (GET_PP) ............................................................. 53 Set Auto Address Enable (SET_AAE) ............................................................... 54 Other Commands .............................................................................................. 54 Overview of the Commands .............................................................................. 54 IDLE ................................................................................................................... 55 Read Input Data Image (READ_IDI) ................................................................. 55 Write Output Data Image (WRITE_ODI) ........................................................... 56 Read Output Data Image (READ_ODI) ............................................................. 56 Change Slave Address (SLAVE_ADDR) ........................................................... 56
Subjecttoreasonablemodificationsduetotechnicaladvances.
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Tel. +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
3
AS-i Sc anner for Al len-B radl ey
Table of Contents
7.2.5.7 7.2.5.8 7.2.5.9 7.2.5.10 7.2.5.11 7.2.5.12 7.2.5.13
Write AS-i Slave Extended ID1 (WRITE_XID1) ................................................. 57 Set Offline Mode (SET_OFFLINE) ..................................................................... 58 Release Data Exchange (SET_DATA_EX) ....................................................... 59 BUTTONS ..........................................................................................................59 FP_PARAM ........................................................................................................59 FP_DATA ........................................................................................................... 60 INVERTER .........................................................................................................61
7.3
Command Interface Examples ........................................................................ 61
7.3.1 7.3.2 7.3.3
Reading analog Input Values .............................................................................61 Store current Configuration to the AS-i Master ..................................................63 Store new Configuration for all Slaves ...............................................................67
8
Comm issi oni ng T ool s an d Acce ssor ies ......................................... 75
8.1 8.2
Serial Cable ......................................................................................................75 Windows S oftware AS-i Control T ools ..........................................................75
9
App endi x: Co des indic ated by the D ispl ay .. ................................... 77
10
App endi x: Insta lla tio n/Comm issi oni ng Instru ctio ns .. ................... 78
11
Ap pend ix : Put ti ng th e AS-Int erf ace Scann er i nt o Operati on wi th Con tr ol Lo gi x .............................................................................. 86
12
We Are I ntere sted in Y our Opinion! . ................................................ 90
6 0 0 .2 2 .1 2 2 te a d e u ss i
4
Subjecttoreasonablemodificationsduetotechnicaladvances.
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Tel. +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
AS-i Sc ann er fo r Al len-B radl ey
Declara tion of Conformity
according to 89/336/EEC and 73/23/EEC Bihl+Wiedemann GmbH, Mannheim, Germany, hereby declares under its sole responsibility that the products mentioned below are according to the listed harmonized standards or normative documents and (where neccessary) a competent body has been released.
Specification:
AS-Interface Scanner for ALLEN-BRADLEY ControlLogix 1500
Article-no.:
BWU1488
Applied harmonized standards: EN50295 (AS-i Complete Specification) Applied national standards or normative documents: Prüfungsordnung für AS-i Master
Manufacturer: Bihl+Wiedemann GmbH
Date:01.05.03
BernhardWiedemann
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
5
The Symbols Used
AS-i Sc anner for Al len-B radl ey
1
TheSymbols Used This symbol warns the user of possible danger. Not following this warning can lead to personal injury or death and/or destruction of the equipment.
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.
This symbol draws the user's attention to important information.
6 0 0 .2 2 .1 2 2 te a d e u ss i
6
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Safety
AS-i Sc ann er fo r Al len-B radl ey
2
Safety
2.1
Intended Use The protection of operating personnel and the system against possible danger is not guaranteed if the control interface unit is not operated in accordance with its intended use. The device may only be operated by appropriately qualified personnel in accordance with this operating manual.
2.2
General Safety Information Safety and correct functioning of the device cannot be guaranteed if any operation other than that described in this operation manual is performed. Connecting the equipment and any maintenance work to be carried out with voltage applied to the equipment must exclusively be performed by appropriately qualified electrotechnical personnel. In case a failure cannot be repaired, the device must be taken out of operation and kept from inadvertently being put back into operation. Repair work is to be carried out by the manufacturer only. Additions or modifications to the equipment are not allowed and will void the warranty.
The operator is responsible for the observance of local safety standards.
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
7
AS-i Sc anner for Al len-B radl ey
3
General Information
General Information This operating instruction holds for the following device of the Bihl+Wiedemann GmbH: AS-i Scanner for ALLEN-BRADLEY ControlLogix
Article no. BWU1488
New AS-i Specific ation 2.1
The Scanner ControlLogix already fulfil the new AS-i Specification 2.1. for ThisALLEN-BRADLEY means: • Up to 62 AS-Interface slaves can be connected per 1 AS-i network • The transfer of analog signals via AS-i is integrated in the masters • All further functions of the new specification as e.g. the diagnosis of the AS-i peripheral fault are implemented. Ad van ced Diag no st ic s
Diagnostics, which go far beyond the standard diagnostics facilitate the simple detection of the occassionally occuring configuration errors and further irritations towards the AS-i communication. So in case of an error the down time of machines can be minimized or you can initiate preventive maintenance. Commissioning and monitoring
Commissioning, configuration and debugging on the AS-i circuit can be done as for all the Bihl+Wiedemann masters, with the four push-buttons, the LCD display and the LEDs of the device. It is also possible to do the configuration with the software "AS-i Control Tools". Ac ces so ri es
Software "AS-i Control Tools" with serial transmission cord for Allen-Bradley AS-i Master (Article no. BW1563)
6 0 0 .2 2 .1 2 2 te a d e u ss i
8
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Description
AS-i Sc ann er fo r Al len-B radl ey
4
Description
4.1
LED Indicators Indicator
4.2
Color
Description
PWR OK SYS
green green/red
AS-iMaster power PLCmode ConnectiontoPLC
AS-i AS-i act. prg enable prjmode
green/red green green yellow
Communication and control information Normal operation active Automatic addressing enable Configurationmode
Connection o f t he AS-i S canner Connection samples for the AS-i power supply:
AS-i Master Circuit 1
Circuit 2
- AS-i Slave + max. 8 A AS-i - power PELV according to EN 50178 supply + (Protective extra low voltage) - AS-i Slave + max. 8 A AS-i - power PELV according to EN 50178 + supply (Protective extra low voltage)
In the wiring s cheme s above the current through must n ot exceed 8 A.
6 0 0 .2 2 .1 2 2 e t a d e u s is
4.3
Display and Operating Elements
4.3.1
LEDs of th e Dou bl e Mast ers
PWR
The master's power supply is sufficient.
OK
red: flashing red: green: flashing green:
Subjecttoreasonablemodificationsduetotechnicaladvances
the connector
internal fault, self test communication fault OK, PLC in run mode OK, PLC in program mode or no PLC CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
9
Description
AS-i Sc anner for Al len-B radl ey
SYS
green: A connection to a PLC exists off: No connection to a PLC
AS-i
Communication and control information green: AS-i is OK flashing green: AS-i is OK, Config Mode selected off: AS-i is not sufficently powered flashing red: Peripheral Fault This LED blinks if there is at least one periphery
red:
AS-i act.
Normal operation active.
prg enable
Automatic address programming enabled. Exactly one slave is missing in protected operating mode. The slave can be replaced by another slave of the same type with address zero. The master addresses the new slave to the faulty address and thus eliminates the configuration error. The AS-i master is in configuration mode.
prj mode 4.3.2
fault at one AS-i slave in the AS-i network. If there are configuration errors as well as periphery faults, only configuration error is displayed. Config error At least one configured slave is missing, or at least one detected slave is not projected or for at least one projected and detected slave the actual configuration data does not match the nominal configuration data.
Push-Buttons
mode
Switching between configuration mode and protected operating mode and saving the current AS-i configuration as the nominal configuration.
set
Selecting and assigning the address to a slave.
The detailled operation is described in chapter 6.
6 0 0 .2 2 .1 2 2 te a d e u ss i
10
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Configuration
AS-i Sc ann er fo r Al len-B radl ey
5
Configuration
5.1
I/O Data Interpretation
5.1.1
Input Data Array
The input data array consist of 50 words for scanner revisions prior to 1.3 and 50 or 244 words for revision 1.3 (ID 11607) and up. These words of data are as follows: word 215 214 213 212 211 210 29
28
27
26
25
24
23
22
21
20
circuit 1: 0
flags F3
F2
F1
slave1/1A F0
slave2/2A
slave3/3A
D3 D2 D1 D0 D3 D2 D1 D0 D3 D2 D1 D0
1
slave4/4A
slave5/5A
slave6/6A
2
slave8/8A
slave9/9A
slave10/10A
slave11/11A
slave7/7A
3
slave12/12A
slave13/13A
slave14/14A
slave15/15A
4
slave16/16A
slave17/17A
slave18/18A
slave19/19A
5
slave20/20A
slave21/21A
slave22/22A
slave23/23A
6
slave24/24A
slave25/25A
slave26/26A
slave27/27A
7
slave28/28A
slave29/29A
slave30/30A
slave31/31A
8
reserved
slave1B
slave2B
9
slave4B
slave5B
slave6B
slave7B
10 11
slave8B slave12B
slave9B slave13B
slave10B slave14B
slave11B slave15B
12
slave16B
slave17B
slave18B
slave19B
13
slave20B
slave21B
slave22B
slave23B
14
slave24B
slave25B
slave26B
slave27B
15
slave28B
slave29B
slave30B
slave31B
slave3B
circuit 2: 16
flags F3
6 0 0 .2 2 .1 2 2 e t a d e u s is
F2
F1
slave1/1A F0
slave2/2A
slave3/3A
D3 D2 D1 D0 D3 D2 D1 D0 D3 D2 D1 D0
17
slave4/4A
slave5/5A
slave6/6A
slave7/7A
18
slave8/8A
slave9/9A
slave10/10A
slave11/11A
19
slave12/12A
slave13/13A
slave14/14A
slave15/15A
20
slave16/16A
slave17/17A
slave18/18A
slave19/19A
21 22
slave20/20A slave24/24A
slave21/21A slave25/25A
slave22/22A slave26/26A
slave23/23A slave27/27A
23
slave28/28A
slave29/29A
slave30/30A
slave31/31A
24
reserved
slave1B
slave2B
25
slave4B
slave3B
slave5B
slave6B
slave7B
26
slave8B
slave9B
slave10B
slave11B
27
slave12B
slave13B
slave14B
slave15B
28
slave16B
slave17B
slave18B
slave19B
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
11
Configuration
AS-i Sc anner for Al len-B radl ey
word 215 214 213 212 211 210 29
28
27
26
25
24
23
22
29
slave20B
slave21B
slave22B
slave23B
30
slave24B
slave25B
slave26B
slave27B
31
slave28B
slave29B
slave30B
slave31B
21
20
mailbox 32
command
T
result
33
response parameter byte 1
response parameter byte 2
34 35
response parameter byte 3 response parameter byte 5
response parameter byte 4 response parameter byte 6
36
response parameter byte 7
response parameter byte 8
37
response parameter byte 9
response parameter byte 10
38
response parameter byte 11
response parameter byte 12
39
response parameter byte 13
response parameter byte 14
40
response parameter byte 15
response parameter byte 16
41
response parameter byte 17
response parameter byte 18
42
response parameter byte 19
response parameter byte 20
43
response parameter byte 21
response parameter byte 22
44
response parameter byte 23
response parameter byte 24
45
response parameter byte 25
response parameter byte 26
46
response parameter byte 27
response parameter byte 28
47
response parameter byte 29
response parameter byte 30
48
response parameter byte 31
response parameter byte 32
49
response parameter byte 33
response parameter byte 34
For revision 1.3 (ID11607) and up, the input data array may be extended by additional 194 words: word 215 214 213 212 211 210 29
28
27
26
25
24
23
22
21
20
second mailbox
12
50
command(mirrored)
51
response parameter byte 1
response parameter byte 2
52
response parameter byte 3
response parameter byte 4
53
response parameter byte 5
response parameter byte 6
54
response parameter byte 7
response parameter byte 8
55
response parameter byte 9
response parameter byte 10
56 57
response parameter byte 11 response parameter byte 13
response parameter byte 12 response parameter byte 14
58
response parameter byte 15
response parameter byte 16
59
response parameter byte 17
response parameter byte 18
60
response parameter byte 19
response parameter byte 20
61
response parameter byte 21
response parameter byte 22
62
response parameter byte 23
response parameter byte 24
63
response parameter byte 25
response parameter byte 26
Subjecttoreasonablemodificationsduetotechnicaladvances
T
result
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
6 0 0 .2 2 .1 2 2 te a d e u ss i
Configuration
AS-i Sc ann er fo r Al len-B radl ey
word 215 214 213 212 211 210 29
28
27
26
25
24
23
22
21
64
response parameter byte 27
response parameter byte 28
65
response parameter byte 29
response parameter byte 30
66
response parameter byte 31
response parameter byte 32
67
response parameter byte 33
response parameter byte 34
20
analog input data circuit 1, slaves 10 … 31 68
slave 10, channel 1
69 70
slave 10, channel 2 slave 10, channel 3
71
slave 10, channel 4
72
slave 11, channel 1
73
slave 11, channel 2
…
…
150
slave30,channel3
151
slave30,channel4
152
slave31,channel1
153
slave31,channel2
154
slave31,channel3
155
slave31,channel4 analog input data circuit 2, slaves 10 … 31
156 157
slave10,channel1 slave10,channel2
158
slave10,channel3
159
slave10,channel4
160
slave11,channel1
161
slave11,channel2
…
…
238
slave30,channel3
239
slave30,channel4
240
slave31,channel1
241
slave31,channel2
242
slave31,channel3
243
slave31,channel4 Flags
F0 F1 F2 F3 6 0 0 .2 2 .1 2 2 e t a d e u s is
ConfigError APF PeripheryFault ConfigurationActive
ConfigError: APF:
Subjecttoreasonablemodificationsduetotechnicaladvances
0 = ConfigOK, 1 = ConfigError 0 = AS-i-Power OK, 1 = AS-i-Power Fail
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
13
Configuration
AS-i Sc anner for Al len-B radl ey
PeripheryFault: 0 = PeripheryOK, 1 = P eripheryFault ConfigurationActive: 0 = ConfigurationActive, 1 = ConfigurationInactive 5.1.2
Output D ata Array
The output data array consist of 50 words for scanner revisions prior to 1.3 and 50 or 244 words for revision 1.3 (ID 11607) and up. These words of data are as follows: word 215 214 213 212 211 210 29 0
flags F3
F2
F1
28
slave1/1A F0
27
26
25
slave2/2A
24
23
22
21
20
slave3/3A
D3 D2 D1 D0 D3 D2 D1 D0 D3 D2 D1 D0 circuit 1:
1
slave4/4A
slave5/5A
slave6/6A
slave7/7A
2
slave8/8A
slave9/9A
slave10/10A
slave11/11A
3
slave12/12A
slave13/13A
slave14/14A
slave15/15A
4
slave16/16A
slave17/17A
slave18/18A
slave19/19A
5
slave20/20A
slave21/21A
slave22/22A
slave23/23A
6
slave24/24A
slave25/25A
slave26/26A
slave27/27A
7
slave28/28A
slave29/29A
slave30/30A
slave31/31A
8
reserved
slave1B
slave2B
9
slave4B
slave5B
slave6B
slave7B
10
slave8B
slave9B
slave10B
slave11B
11 12
slave12B slave16B
slave13B slave17B
slave14B slave18B
slave15B slave19B
13
slave20B
slave21B
slave22B
slave23B
14
slave24B
slave25B
slave26B
slave27B
15
slave28B
slave29B
slave30B
slave31B
slave3B
circuit 2: 16
flags F3
14
F2
F1
slave1/1A F0
slave2/2A
slave3/3A
D3 D2 D1 D0 D3 D2 D1 D0 D3 D2 D1 D0
17
slave4/4A
slave5/5A
slave6/6A
slave7/7A
18
slave8/8A
slave9/9A
slave10/10A
slave11/11A
19
slave12/12A
slave 13/13A
slave14/14A
slave15/15A
20
slave16/16A
slave 17/17A
slave18/18A
slave19/19A
21
slave20/20A
slave 21/21A
slave22/22A
slave23/23A
22 23
slave24/24A slave28/28A
slave 25/25A slave 29/29A
slave26/26A slave30/30A
slave27/27A slave31/31A
24
reserved
25
slave4B
slave1B
slave2B
slave3B
slave5B
slave6B
slave7B
26
slave8B
slave9B
slave10B
slave11B
27
slave12B
slave13B
slave14B
slave15B
28
slave16B
slave17B
slave18B
slave19B
29
slave20B
slave21B
slave22B
slave23B
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
6 0 0 .2 2 .1 2 2 te a d e u ss i
Configuration
AS-i Sc ann er fo r Al len-B radl ey
word 215 214 213 212 211 210 29
28
27
26
25
24
23
22
30
slave24B
slave25B
slave26B
slave27B
31
slave28B
slave29B
slave30B
slave31B
21
20
mailbox 32
command
T
–
circuit
33
request parameterbyte1
request parameterbyte2
34
request parameterbyte3
request parameterbyte4
35 36
request parameterbyte5 request parameterbyte7
request parameterbyte6 request parameterbyte8
37
request parameter byte 9
request parameter byte 10
38
request parameter byte 11
request parameter byte 12
39
request parameter byte 13
request parameter byte 14
40
request parameter byte 15
request parameter byte 16
41
request parameter byte 17
request parameter byte 18
42
request parameter byte 19
request parameter byte 20
43
request parameter byte 21
request parameter byte 22
44
request parameter byte 23
request parameter byte 24
45
request parameter byte 25
request parameter byte 26
46
request parameter byte 27
request parameter byte 28
47
request parameter byte 29
request parameter byte 30
48
request parameter byte 31
request parameter byte 32
49
request parameter byte 33
request parameter byte 34
For revision 1.3 (ID11607) and up, the input data array may be extended by additional 194 words: word 215 214 213 212 211 210 29
28
27
26
25
24
23
22
21
20
second mailbox
6 0 0 .2 2 .1 2 2 e t a d e u s is
50
command(mirrored)
51
response parameter byte 1
response parameter byte 2
52
response parameter byte 3
response parameter byte 4
53
response parameter byte 5
response parameter byte 6
54
response parameter byte 7
response parameter byte 8
55
response parameter byte 9
response parameter byte 10
56
response parameter byte 11
response parameter byte 12
57 58
response parameter byte 13 response parameter byte 15
response parameter byte 14 response parameter byte 16
59
response parameter byte 17
response parameter byte 18
60
response parameter byte 19
response parameter byte 20
61
response parameter byte 21
response parameter byte 22
62
response parameter byte 23
response parameter byte 24
63
response parameter byte 25
response parameter byte 26
64
response parameter byte 27
response parameter byte 28
Subjecttoreasonablemodificationsduetotechnicaladvances
T
result
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
15
Configuration
AS-i Sc anner for Al len-B radl ey
word 215 214 213 212 211 210 29
28
27
26
25
24
23
22
21
65
response parameter byte 29
response parameter byte 30
66
response parameter byte 31
response parameter byte 32
67
response parameter byte 33
response parameter byte 34
20
analog output data circuit 1, slaves 10 … 31 68
slave 10, channel 1
69
slave 10, channel 2
70 71
slave 10, channel 3 slave 10, channel 4
72
slave 11, channel 1
73
slave 11, channel 2
…
…
150
slave30,channel3
151
slave30,channel4
152
slave31,channel1
153
slave31,channel2
154
slave31,channel3
155
slave31,channel4 analog output data circuit 2, slaves 10 … 31
156
slave10,channel1
157 158
slave10,channel2 slave10,channel3
159
slave10,channel4
160
slave11,channel1
161
slave11,channel2
…
…
238
slave30,channel3
239
slave30,channel4
240
slave31,channel1
241
slave31,channel2
242
slave31,channel3
243
slave31,channel4 Flags
F0 F1 F2 F3
Off-line LOS-master-bit ! ConfigurationMode ! ProtectedMode
Off-Line: LOS-master-bit
16
0 = OnLine, 1 = Off-Line 0 = Off-Line by ConfigError deactivated 1 = Off-Line by ConfigError activated
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
6 0 0 .2 2 .1 2 2 te a d e u ss i
AS-i Sc ann er fo r Al len-B radl ey
Configuration
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 reset. A rising edge of F2 and F3 switch the master to the desired mode.
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
17
Operating the AS-i
AS-i Sc anner for Al len-B radl ey
6
Operating the AS-i
6.1
Master Start-Up
After starting up, all segments of the figure display and all LEDs light up for approximately one second (self-test). Afterwards, the LC display the condition of their respective flags. The LC display shows the state of the master: 40
Offline Phase The AS-i master initializes - there is no data communication happening on theAS-i. If the AS -i circuit is insufficiently po were d (“ U AS-i” does not light u p).
41
Detection Phase Start-up phase, in which the system looks for slaves located on the AS-i. The master remains in the detection phase until it finds at least one slave.
421 Activation Phase End of the start-up operation when the parameters are transmitted to all connected and recognized slaves. This enables access to the AS-i slaves’ data connections. 432 Start of Normal Operation The AS-i master can exchange data with all active slaves. It transmits management messages and looks for and activates newly connected slaves. During normal operation, the system keeps the maximum cycle time of 5 milliseconds. 6.2
ConfigurationM ode
The configuration mode serves to configure the AS-i circuit. In the configuration mode, all recognized slaves are activated even when the desired and actual configurations do not match.
Pressing the "mode" button for at least five seconds switches to configuration mode. While in configuration mode, the yellow "prj mode" LED lights up. If the display is empty, no slaves have been connected to the AS-i circuit.In configuration mode, all recognized slaves are activated except for slave zero. The AS-i master is in normal operation. Data exchange between the AS-i master and all
1. Activation phase and the start of normal operation maybe so short that the numbers can not be seen in the display. 2. Activation phase and the start of normal operation maybe so short that the numbers can not be seen in the display.
18
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
6 0 0 .2 2 .1 2 2 te a d e u ss i
Operating the AS-i
AS-i Sc ann er fo r Al len-B radl ey
AS-i slaves has been detected by the master, regardless of whether the detected AS-i slaves have been projected before. When delivered the device is in configuration mode.
6.3
Protected Operating Mode Unlike the configuration mode, the protected mode allows data exchange between the AS-i master and the projected AS-i slaves only.
If there is no communication between the host and the AS-I master, the AS-i master clears the output data of all slaves.
6.3.1
Swi tc hi ng to Pro tect ed Operati ng Mod e
The configuration mode can be left by pressing the "mode" button. Pressing the button shortly: Exits the configuration mode without saving the current AS-i configuration. Pressing the button for more than five seconds: Exits the configuration mode and projects the actual AS-i configuration. Simultaneously the actual AS-i configuration is stored as nominal configuration in the EEPROM. If the system detects an AS-i slave with address zero on the AS-i, it can not leave the configuration mode.
In the protected operating mode, only AS-i slaves which are projected and whose actual configurations match the nominal configurations will be activated. 6.3.2
Conf igu ratio n Erro rs in Prot ecte d Operatin g Mode
As long as there is no configuration error, the numeric display is turned off while in protected operating mode. Otherwise, the address with the faulty assignment is displayed. A faulty assignment occurs when a slave has been recognized or projected but cannot be activated. 6 0 0 .2 2 .1 2 2 e t a d e u s is
If there are more than one faulty assignments the one that was first detected is displayed. Pressing the "set" button shortly displays the next higher faulty address. Shortly appearing configuration errors are stored in the device (advanced AS-i diagnosis). The last error that occurred can be displayed by pressing the "set" button.
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
19
Operating the AS-i
AS-i Sc anner for Al len-B radl ey
If a short AS-i power failure is responsible for the configuration error the display will show a "39". 6.4
Ass ig nin g an A S-i A dd ress i n Conf ig urati on Mod e
To assign a slave with an address unequal zero to a different address unequel zero, please follow the following instructions in reverse order: 6.4.1
Assigning a Slave Address
(assigning an available address to a slave with address zero) In configuration mode, the addresses of all detected slaves are displayed in succession. To display the next higher available operating address, press the "set" button shortly. Each time you press the "set" button, the next available address is displayed. Choose the displayed address as your target address by pressing the "set" button for more than five seconds. The address display flashes. The master is ready for programming; pressing the "set" button again addresses the connected slave with address zero to the target (flashing address). Any errors will be displayed by their error codes according to chapter 9. Otherwise, the detected slaves are displayed again as described in chapter 6.2. Only slaves with address 0 can get a new address by the master.
There must not be two AS-i slaves with the same adrress on the AS-i circuit, since this would cause malfunctions.
6.4.2
Erasi ng th e Slave Addr ess
(assigning address zero to a detected slave) In configuration mode, the addresses of all recognized slaves are displayed in succession. By pressing the "set" button repeatedly, the master will display the next available address. Pressing the button more than five seconds while the address of a detected slave is displayed, this slave will get the address zero and the display will show "0". When you release the button, the display continues to display the detected slaves.
6 0 0 .2 2 .1 2 2 te a d e u ss i
20
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Operating the AS-i
AS-i Sc ann er fo r Al len-B radl ey
6.5
Pro gr amm in g t he Ad dr ess in Case of Con fi gu rati on Err or s
6.5.1
Auto matic Addr ess Ass ig nm ent One of AS-i’s major advantages is the automatic address assignment. If a slave fails, it can be replaced by another one of the same type with the address zero. The master will detect the replacement and automatically address the new slave with the address of the faulty one.
For automatic programming, the following requirements must be met: 1.The AS-i master must be in the protected operating mode. 2.The "Auto_Address_Assign"1 release flag must be set. 3.Only one of the projected slaves may not be detected. If these requirements are met, the AS-i master’s "prg enable " LED lights up and a slave with address zero will be automatically be assigned to the operating address of the missing slave. The "Automatic Address Assignment" can be activated and deactivated with the software "AS-i Control Tools". Only slaves with address 0 can get a new address by the master, since this would cause malfunctions.
If the two slaves have different configuration data, i.e. are not of the same type as far as AS-i is concerned, the automatic address assignment will not be carried out.
6.5.2
Manu al Addr ess Ass ig nment If several slaves fail, they cannot be replaced automatically by the AS-i master. These addresses have to be set manually. If this should not be done with the host interface or with a handheld addressing device, the slave addresses can also be changed by using the push-buttons and the LC display of the device.
In protected operating mode, wrong assignments are displayed as errors (see chapter 6.3). By pressing the "set" button all faulty assignments will be displayed in succession. By pressing the "set" button for more than five seconds the currently displayed address will be selected as a potential target address, and the display starts to flash.
6 0 0 .2 2 .1 2 2 e t a d e u s is
If the faulty slave was previously replaced by a slave with address zero, the new slave can now be programmed for the blinking address by pressing the "set" key again. As a requirement, the new slave’s configuration data must match the configuration data for the flashing address. 1. By deleting the flag "Auto_Address_Assign", the user can deactivate "automatic addressing".
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
21
Operating the AS-i
AS-i Sc anner for Al len-B radl ey
After the address has been successfully set, the next faulty assignment is displayed and the address assignment can be carried out again. Otherwise, the system displays an error code (chapter 9). When all faulty assignments are eliminated, the display will be empty. 6.6
Error Messages The system displays error codes for error messages that do not point to faulty assignments on the AS-i circuit. The code numbers are larger than 50described and therefore the slave address range. These codes are in theoutside appendix, chapter 9.
6 0 0 .2 2 .1 2 2 te a d e u ss i
22
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
7
Command Interface
7.1
Construction
If an AS-i slave is addressed in a command or in a response, the address is structured as shown below Request
byte 1 2 3 … 36
27
26
T
–
7
6
25
24
23
22
21
20
24 23 22 command result responseparameterbyte1 … responseparameterbyte34
21
20
command circuit requestparameterbyte1 … requestparameterbyte34 Response
byte 1 2 3 … 36
2
T
2
5
2
Command byte and T-bit are always part of the response. This way the same command of the command interface can be used two twice repeatedly, possibly with different parameters. The execution of a command interface is declined, if the command interface is too small. Circuit = 0 If an AS-i gateway with one AS-i master or the master 1 of an AS-i gateway with 2 masters should be choosen. Circuit = 1 If master 2 of a double master should be chosen.
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
23
AS-i Sc anner for Al len-B radl ey
7.1.1
Command Interface
List of all Commands Values for c ommand
24
Req Len
value
RD_7X_IN
5016
Read17.3-slavein.data
3
10
WR_7X_OUT
5116
Write17.3-slaveout.data
11
2
RD_7X_OUT
5216
Read 1 7.3-slave out.data
RD_7X_IN_X WR_7X_OUT_X
5316 5416
Read47.3-slavesin.data Write47.3-slavesout.data
3 35
34 2
RD_7X_OUT_X
5516
Read47.3-slavesout.data
3
34
WR_74_PARAM
5A16
Write S-7.4-slave parameter
"6
RD_74_PARAM
5B16
ReadS-7.4-slaveparameter
4
RD_74_ID
5C16
ReadS-7.4-slaveIDstring
RD_74_DIAG
5D16
Read S-7.4-slave diagnosis string
GET_LISTS
3016
GetLDS,LAS,LPS,Flags
GET_FLAGS
4716
Get_Flags
GET_DELTA
5716
Getlistofconfig.diff.
GET_LCS
6016 LCS Get
GET_LAS
4516
Get_LAS
2
GET_LDS
4616
Get_LDS
2
10
GET_LPF
3E16
Get_LPF
2
10
GET_LOS
6116
GET_LOS
2
10
SET_LOS
6216
SET_LOS
10
GET_TECA
6316
Gettransm.err.counters
2
34
GET_TECB
6416
Gettransm.err.counters
2
34
GET_TEC_X
6616
Gettransm.err.counters
4
SET_OP_MODE
0C16
Set_Operation_Mode
3
2
STORE_CDI
0716
Store_Actual_Configuration
2
2
READ_CDI
2816
Read_Actual_Configuration
3
4
SET_PCD
2516
Set_Permanent_Config
5
2
GET_PCD
2616
Get_Permanent_Config
3
4
SET_LPS
2916
SET_LPS
11
2
GET_LPS STORE_PI
4416 0416
Get_LPS Store_Actual_Parameter
2 2
10 2
WRITE_P
0216
Write_Parameter
4
3
READ_PI
0316
Read_Parameter
3
3
SET_PP
4316
Set_Permanent_Parameter
4
2
GET_PP
0116
Get_Permanent_Parameter
3
3
SET_AAE
0B16
Set_Auto_Address_Enable
IDLE
0016 order No
Subjecttoreasonablemodificationsduetotechnicaladvances
meaning
Res Len
command
3
10
2 "3
4
"3
4
"3
2
29 2
5
2
10
21
0 10
"3
3 2
2
2 2
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
6 0 0 .2 2 .1 2 2 te a d e u ss i
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
Values for c ommand command
7.1.2
value
Req Len
meaning
2
Res Len
READ_IDI
4116
Read IDI
WRITE_ODI
4216
Write_ODI
36
READ_ODI
5616
Read ODI
SLAVE_ADDR
0D16
Change_Slave_Address
4
2
WRITE_XID1
3F
Write_Extended_ID-Code_1
3
2
SET_OFFLINE
16 0A16
Set_Offline_Mode
3
2
SET_DATA_EX
4816
Set_Data_Exchange_Active
3
BUTTONS
7516
Disablepushbuttons
FP_PARAM
7D16
„Functional Profile“ Param.
"3
FP_DATA
7E16
„Functional Profile“ Data
"3
INVERTER
7C16
ConfigureInverterSlaves
34 2
2
34
3
12
2 2 "2 "2
4
Values for Results Values for r esult
OK
value place meaning 0016 – execution without fault
HI_NG
1116
HI
general fault
HI_OPCODE HI_LENGTH
1216 1316
HI HI
illegal value in command length of the command interface is too short
HI_ACCESS
1416
HI
no access right
EC_NG
2116
EC
general fault
EC_SND
2216
EC
"slave (source addr) not detected"
EC_SD0
2316
EC
"slave 0 detected"
EC_SD2
2416
EC
"slave (target addr) not decteced"
EC_DE
2516
EC
"delete error"
EC_SE
2616
EC
"set error"
EC_AT
2716
EC
"address temporary"
EC_ET
2816
EC
"extended ID1 temporary"
EC_RE
2916
EC
"read (extended ID1) error"
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
25
Command Interface
AS-i Sc anner for Al len-B radl ey
7.2
Commands o f t he Command I nterface
7.2.1
Analog Data
7.2.1.1
Overvi ew o f t he Comm ands Values for c ommand
7.2.1.2
command
value
meaning
RD_7X_IN
5016
Read17.3-slavein.data
ReqLen ResLen 3
10
WR_7X_OUT
51
Write17.3-slaveout.data
11
2
RD_7X_OUT
16 5216
Read 1 7.3-slave out.data
RD_7X_IN_X
5316
Read47.3-slavesin.data
3
WR_7X_OUT_X
5416
Write47.3-slavesout.data
35
2
RD_7X_OUT_X
5516
Read47.3-slavesout.data
3
34
WR_74_PARAM
5A16
Write S-7.4-slave parameter
"6
RD_74_PARAM
5B16
Read S-7.4-slave parameter
4
RD_74_ID
5C16
Read S-7.4-slave ID string
4
RD_74_DIAG
5D16
Read S-7.4-slave diagnosis string
3
10 34
2 "3 "3
4
"3
Read 1 7.3-Slave in. Data (RD_7X_IN)
With this command, the four 16 bit channels of an AS-i input slave according to the slave profile 7.3 can be read. Request
byte
2
7
26
25
24
1
23
22
21
20
21
20
5016
2 3
T
byte
27
– –
circuit slave address
0 Response
26
1 2 3 …
25
24
23
22
5016 T
10
result channel1,highbyte … channel4,lowbyte
6 0 0 .2 2 .1 2 2 te a d e u ss i
26
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
7.2.1.3
Write 1 7.3-Slave out.D ata (WR_7X_OUT)
With this command, the four 16 bit channels of an AS-i output slave according to the slave profile 7.3 can be written. Request
byte
27
26
25
24
1
23
22
21
20
21
20
5116
2 3 4 … 11
T
byte
27
– –
circuit slave address
0 channel1,highbyte … channel4,lowbyte Response
26
25
24
1 2 7.2.1.4
23
22
5116 T
result
Read 1 7.3-Slave out.D ata (RD_7X_OUT)
With this command, the four 16 bit channels of an AS-i output slave according to the slave profile 7.3 can be read out of the AS-i master. Request
byte
27
26
25
24
1
23
22
21
20
21
20
5216
2 3
T
byte
27
– –
circuit slave address
0 Response
1 2 3 …
26
25
24
23
22
5216 T
10
result channel1,highbyte … channel4,lowbyte
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
27
Command Interface
AS-i Sc anner for Al len-B radl ey
7.2.1.5
Read 4 7.3-Slave in. Data (RD_7X_IN_X)
With this command, the four 16 bit channels of 4 AS-i input slaves with succesive addresses according to slave profile 7.3 can be read. Request
byte
27
26
25
24
1 2 3
23
22
21
20
21
20
5316 T
– –
circuit 1st slave address
0 Response
byte
2
7
2
6
2
5
24
1 2 3 … 34 7.2.1.6
23
22
5316 T
result 1stslave,channel1,highbyte … 4thslave,channel4,lowbyte
Write 4 7 .3-Slave out. Data (WR_7X_OUT_X)
With this command the four 16 bit channels of four AS-i output slaves with succesive addresses according to slave profile 7.3 can be written. Request
byte
27
26
25
24
1
23
22
21
20
21
20
5416
2 3 4 … 35
T
byte
27
–
circuit 0 1st slave address 1stslave,channel1,highbyte … 4thslave,channel4,lowbyte
26
25
–
Response
1 2
24
23
22
5416 T
result
6 0 0 .2 2 .1 2 2 te a d e u ss i
28
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
7.2.1.7
Read 4 7 .3-Slave out. Data (RD_7X_OUT_X)
With this command, the four 16 bit channels of four AS-i output slaves with succesive addresses according to slave profile 7.3 can be read. Request
byte
27
26
25
24
1 2 3
23
22
21
20
21
20
5516 T
– –
circuit 1st slave address
0 Response
byte
2
7
2
6
5
2
24
1 2 3 … 34 7.2.1.8
23
22
5516 T
result 1stslave,channel1,highbyte … 4thslave,channel4,lowbyte
WR_74_PARAM
With this function the parameter string of a slave according to profile S-7.4 is written. Since the string can be longer than the command interface, it will partly be written 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 index i on. If i # 0, then the string is being transferred to the slave. Request
byte
2
7
2
6
5
2
24
1 2 3 4 5 6
23
22
21
20
22
21
20
5A16 T
–
circuit slave address i n buffer btye i
… n+5
… buffer byte i+n-1 Response
byte 6 0 0 .2 2 .1 2 2 e t a d e u s is
27
1 2
26
25
24
23 5A16
T
Subjecttoreasonablemodificationsduetotechnicaladvances
results
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
29
Command Interface
AS-i Sc anner for Al len-B radl ey
7.2.1.9
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 buffer. 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.
byte
27
26
T
–
25
Request
24
1 2 3 4
23
22
21
20
22
21
20
5B16 circuit slave address i Response
byte
2
7
2
6
2
5
24
1 2 3 … n+2 7.2.1.10
23 5B16
T
result buffer byte i … buffer byte i+n-1
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 buffer. 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
2
7
2
6
1 2 3 4
2
5
24
23
22
21
20
5C16 T
–
circuit slave address i
6 0 0 .2 2 .1 2 2 te a d e u ss i
30
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
Response
byte
27
26
25
24
1 2 3 … n+2 7.2.1.11
23
22
21
20
5C16 T
result buffer byte i … buffer byte i+n-1
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
1
23
22
21
20
22
21
20
5D16
2 3 4
T
byte
27
–
circuit slave address i Response
1 2 3 … n+2
26
25
24
23 5D16
T
result buffer byte i … buffer byte i+n-1
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
31
Command Interface
AS-i Sc anner for Al len-B radl ey
7.2.2
Diagnosis Data
7.2.2.1
Overvi ew o f t he Comm ands Values for c ommand
7.2.2.2
Command
value
meaning
ReqLen ResLen
GET_LISTS
3016
GetLDS,LAS,LPS,Flags
2
GET_FLAGS
4716
Get_Flags
GET_DELTA
5716
Getlistofconfig.diff.
2
GET_LCS
6016
LCS Get
2
GET_LAS
4516
Get_LAS
2
10
GET_LDS
4616
Get_LDS
2
10
GET_LPF
3E16
Get_LPF
GET_LOS
6116
GET_LOS
2
SET_LOS
6216
SET_LOS
10
GET_TECA
6316
Gettransm.err.counters
2
34
GET_TECB
6416
Gettransm.err.counters
2
34
GET_TEC_X
6616
Gettransm.err.counters
4
"3
21
20
29 2
5 10 10
2
10 10 2
Get Lists and F lags (G et_LPS, Get_LAS, Get_LD S, Get_Flags) (GET_LISTS)
With this call, the following entries are read out of the AS-i master: • The list of active AS-i slaves (LAS) • The list of detected AS-i slaves (LDS) • The list of projected AS-i slaves (LPS) • The flags according to the AS-i slave specification Request
byte
27
26
1 2
25
24
23
22
3016 T
-
circuit
6 0 0 .2 2 .1 2 2 te a d e u ss i
32
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
Response
byte
27
26
25
24
1
11 … 19 20 … 26 27 28 29
7.2.2.3
22
21
20
3016
2 3 … 10
Pok S0 AAs AAv CA NA APF OR Cok AAe OL DX
23
T 7A
6A
5A
2A
1A
0A
29B
result 3A LAS 28B 27B
31B
30B
7A
6As
26B
25B
24B
5A
4A
3A
2A
1A
0A
31B 7A
30B 6As
29B 5A
28B 4A
27B 3A
26B 2A
25B 1A
24B 0A
31B
30B
29B
27B
26B
25B
OR
APF
NA –
28B – CA
AAv
AAs AAe
S0 OL
24B Pok Cok DX
4A
LDS
LPS
Periphery_Ok LDS.0 Auto_Address_Assign Auto_Address_Available Configuration_Active Normal_Operation_Active APF Offline_Ready Config_Ok Auto_Address_Enable Offline Data_Exchange_Active
Get Flags (GET_FLAG S)
With this call, the following entry is read out of the AS-i master: The flags according to the AS-i slave specification. Request
byte
27
26
1 2
T
–
25
24
23
22
21
20
4716 circuit
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
33
Command Interface
AS-i Sc anner for Al len-B radl ey
Response
byte
27
26
25
24
1 2 3 4 5
23
22
21
20
AAs AAe
S0 OL
Pok Cok DX
4716 T OR
response APF
NA –
– CA
AAv
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.
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.
34
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 transmitted to the slave. The bit is set if the AS-i master enters the offline phase.
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
6 0 0 .2 2 .1 2 2 te a d e u ss i
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
7.2.2.4
Get Delta List ( GET_DELTA)
The delta list contains the list of slave addresses with configuration errors. In protected mode it is calculated as follows: slave & % ( slave & LDS ' slave & LPS ) * slave & LAS Because in configuration mode LAS and LPS are identical, therefore those slaves are additionally to be registered out of the LAS, for which the entries in CDI and PCD are different. Request
byte
27
26
2
T
0
byte
27
26
25
24
1
23
22
21
20
23
22
21
20
result 3A
2A
1A
–
27B
26B
25B
24B
23
22
21
20
result 4A
5A
6A
7A
28B
29B
30B
31B
5716 circuit Respon se (if O # 0)
25
24
1
5716
2 3 … 10
T 7A 31B
30B
29B
byte
27
26
25
6A
5A
4A … 28B
Respon se (if O # 1)
24
1 2 3 … 10
5716 T 0
1A
2A
3A …
24B
25B
26B
27B
( slave & LDS ' slave & LDS ) * slave & LAS
slave & %
v
slave & LAS . ( CDI + sla ve , - PC D + sl ave , )
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
35
Command Interface
AS-i Sc anner for Al len-B radl ey
7.2.2.5
Get List of Corrupte d Slaves (GET_LCS)
The LCS contains the history of the delta list. With this call, the List of Corrupted Slaves (LCS) is read out of the AS-i master. Request
byte
27
26
2
T
-
byte
27
26
25
24
1
23
22
21
20
23
22
21
20
result 3A
2A
1A
0A
27B
26B
25B
24B
6016 circuit Response
25
24
1 2 3 … 10 7.2.2.6
6016 T 7A
6A
5A
4A …
31B
30B
29B
28B
Get List of Activa ted Slave s (GET_LAS )
With this call, the following entry is read out of the AS-i master: The list of activated slaves (LAS). Request
byte
27
26
2
T
O
byte
27
26
25
24
1
23
22
21
20
23
22
21
20
result 3A
2A
1A
0A
27B
26B
25B
24B
4516 circuit Response
25
24
1 2 3 … 10 7.2.2.7
4516 T 7A
6A
5A
4A …
31B
30B
29B
28B
Get List of D etected A S-i slave s (GET_LDS)
With this call, the following entry is read out of the AS-i master: The list of detected AS-i slaves (LDS). Request
byte
27
26
T
-
1 2
36
25
24
23
22
21
20
4616
Subjecttoreasonablemodificationsduetotechnicaladvances
circuit
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
6 0 0 .2 2 .1 2 2 te a d e u ss i
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
Response
byte
27
26
25
24
1 2 3 … 10 7.2.2.8
23
22
21
20
result 3A
2A
1A
0A
27B
26B
25B
24B
4616 T 7A
6A
5A
4A …
31B
30B
29B
28B
Get list of pe riphe ral faults (GET_LPF)
With this call, the list of peripheral faults ( LPF) signaled by the AS-i slaves is read out from the AS-i master. The LPF is updated cyclically by the AS-i master. If and when an AS-i slave signals faults of the attached peripherals (for example broken wire) can be found in the description of the AS-i slave. Request
byte
27
26
25
24
1
23
22
21
20
22
21
20
2A
1A
0A
26B
25B
24B
3E16
2
T
-
byte
27
26
circuit Response
1 2 3 … 10 7.2.2.9
25
T 7A
6A
5A
31B
30B
29B
24
23
3E16 result 4A 3A … 28B 27B
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 configuration error; less important slaves can send an error to the host, AS-i however will not be switched offline. Request
byte
27
26
1 2
25
24
23
22
21
20
6116 T
-
circuit
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
37
Command Interface
AS-i Sc anner for Al len-B radl ey
Response
byte
27
26
25
24
1 2 3 … 10 7.2.2.10
23
22
21
20
result 3A
2A
1A
0A
27B
26B
25B
24B
6116 T 7A
6A
5A
4A …
31B
30B
29B
28B
Set List of Off-line S lave s (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 configuration 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
1
23
22
21
20
3A
2A
1A
0A
27B
26B
25B
24B
23
22
21
20
6216
2 3
T 7A
6A
5A
4A
circuit
… 10
31B
30B
29B
28B
byte
27
26
25
… Response
24
1 2 7.2.2.11
6216 T
result
Get transm. err.counters (G ET_TECA)
With this call the error counters of all single slaves/A-slaves can be read (see chapter 7). With every reading out of the counts, the error counters will be restarted. The counts are being read out via the corresponding host interface and will be deleted with every read access. The counter´s value is limited to 254. 255 will cause a counter overflow. The counts could be independent of the counters, which are displayed in the display of the gateway. Request
byte
2
7
2
6
1 2
38
2
5
24
23
22
21
20
6316 T
–
Subjecttoreasonablemodificationsduetotechnicaladvances
circuit
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
6 0 0 .2 2 .1 2 2 te a d e u ss i
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
Response
byte
27
26
25
24
1 2 3 4 …
22
21
20
6316 T
result APF slave 1A …
34 7.2.2.12
23
slave 31A
Get transm. err.counters (G ET_TECB)
With this call, the counts of the error counters for B-slaves are being read out (see chapter 7). With every reading out of the counts, the error counters will be restarted. The counts are being read out via the corresponding host interface and will be deleted with every read access. The counter´s value is limited to 254. 255 will cause a counter overflow. The counts could be independent of the counters, which are displayed in the display of the gateway. Request
byte
27
26
1 2
T
–
7
6
25
24
23
22
21
20
22
21
20
6416 circuit Response
byte
2
1 2 3 4 … 34 7.2.2.13
2
5
2
24
23 6416
T
result APF slave 1B … slave 31B
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.
6 0 0 .2 2 .1 2 2 e t a d e u s is
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 cause a counter overflow.
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
39
Command Interface
AS-i Sc anner for Al len-B radl ey
The counts could be independent of the counters, which are displayed in the display of the gateway. Request
byte
7
2
T
–
2
6
2
5
24
1 2 3
23
22
21
20
22
21
20
6616 circuit 1. slave address
4
number of counters Response
byte
2
7
2
6
1 2 3 … n 7.2.2.14
2
5
24
23 6616
T
result counter 1 … counter 2-n
Funct iona l profile s
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 7.2.3). 7.2.3
Functional profiles
7.2.3.1
"S afety at Wor k" Li st 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 7.2.4.4: 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 byt es 5 until 8 in the respon se of the command of the command interface. Additionally, the reponse contains the ec-flags of the AS-Interface master in the bytes 3 and 4 (see chapter 7.2.2.3: "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.
40
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
6 0 0 .2 2 .1 2 2 te a d e u ss i
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
With the bit "O", the sequence of the bits within the "Safety at Work" list 1 can be chosen. Request
byte
7
2
2 3
T
-
byte
27
2
6
5
2
24
1
23
22
21
20
22
21
20
AAv 321
AAs
S0
Pok Cok -
27
26
25
25
7E16 circuit 0016 Response
26
25
24
1 2 3 4 5 … 8 Cok S0 AAs AAv CA NA APF OR Pok
23 7E16
T
result
OR 76
APF
NA 54
31
30
29
– CA … 28
Config_Ok LDS.0 Auto_Address_Assign Auto_Address_Available Configuration_Active Normal_Operation_Active APF Offline_Ready 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
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
41
Command Interface
AS-i Sc anner for Al len-B radl ey
7.2.3.2
byte 5" Safety at Work" Monitor Diagnosis Function: 0216 Since the "Safety at Work" monitor can make more than 32 Byte diagnosis data, these must be read with several command interface calls. The byte 5 declares the start index in the field of the diagnosis data. If the start index is 0, new data is fetched from the monitor. Otherwise, the function will respond out of the memory; the data can be read consistently. Enhanced Diagnostics
Since the "Safety at Work“ monitor diagnosis is longer than the maximum size of the command interface, it must be read with several adjacent requests. The byte 5 (‘index’) declares the start index in the array of diagnostic data. If this start index ist 0, the whole diagnosis is fetched from the monitor and stored to an internal buffer. Otherwise, the AS-i Master will respond out of the internal buffer. Thus, even though several requests are neccessary to read the whole buffer, data integrity is maintained. Request
byte
27
26
25
T
Len
Sort
24
1 2 3
23
22
21
20
7E16 circuit 0216
4 5
start
slave address index
ED
Size of the diagnostics array (enhanced diagnostics)
Sort
Safety monitor’s diagnosis style
If "ED" is set, the monitor diagnostics array is set up for 64 devices (safety monitor with "enhanced function range" selected). Else, the monitor diagnostics array is set up for 32 devices only (version 1 safety monitor or monitor with " basic function range" selected).
6 0 0 .2 2 .1 2 2 te a d e u ss i
42
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
"Sort" is to be set if the safety monitor’s AS-i diagnosis is set to " all devices". It is to be reset if "sorted by OSSD" is selected in the safety monitor configuration. Response
byte
2
7
2
6
5
2
24
1 2 3
23
22
21
20
21
20
7E16 T
result diagnosisbyte#index+0
4 … n
diagnosisbyte#index+1 … diagnosisbyte#index+n-3
The diagnosis array is set up as follows:::: Safety Monitor Diagnosis Array
"basic function range" and "sorted by OSSD" byte
27
0
26
25
24
23
22
0016
1 2 3 4 5 6 7 8 9 … 68 69 70 71 … 132
state of monitor state OSSD1 of state OSSD2 of numberofdevicesnotgreen,OSSD1 numberofdevicesnotgreen,OSSD2 deviceindex32,OSSD1 colorofdevice32,OSSD1 deviceindex33,OSSD1 colorofdevice33,OSSD1 … deviceindex63,OSSD1 colorofdevice63,OSSD1 deviceindex32,OSSD2 colorofdevice32,OSSD2 … deviceindex63,OSSD2
133
colorofdevice63,OSSD2
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
43
Command Interface
AS-i Sc anner for Al len-B radl ey
Safety Monitor Diagnosis Array
"enhanced function range" and "sorted by OSSD" byte
27
26
25
24
0
23
22
21
20
21
20
0016
1
state of monitor
2 3
state OSSD1 of state OSSD2 of
4 5 6 7 8 … 133 134
numberofdevicesnotgreen,OSSD1 numberofdevicesnotgreen,OSSD2 deviceindex32,OSSD1 colorofdevice32,OSSD1 deviceindex33,OSSD1 … colorofdevice95,OSSD1 deviceindex32,OSSD2
… 261
… colorofdevice95,OSSD2 Safety Monitor Diagnosis Array
"basic function range" and "all devices" byte 0
44
27
26
25
24
0016
23
22
1 2 3 4
state of monitor state OSSD1 of state OSSD2 of numberofdevicesnotgreen
5 6 7 8 9 … 68 69 70 71 … 132
— device index 32 color of device 32 device index 33 color of device 33 … device index 63 color of device 63 device index 32 assignmentofdevice32toOSSD … device index 63
133
assignmentofdevice63toOSSD
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
6 0 0 .2 2 .1 2 2 te a d e u ss i
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
Safety Monitor Diagnosis Array
"enhanced function range" and "all devices" byte
27
26
25
24
0
23
22
21
20
0016
1
state of monitor
2 3
state OSSD1 of state OSSD2 of
4 5 6 7 8 … 133 134
numberofdevicesnotgreen — device index 32 color of device 32 device index 33 … colorofdevice95 deviceindex32,OSSD2
… 261
… assignmentofdevice95toOSSD
See the ” Safety at Work“ monitor documenation for a description of the codes used for monitor state, OSSD state, device colors and assigments to OSSDs. 7.2.3.3
Inte gra ted AS -i Sensors : Warnin gs
Function: 0316 List of integrated AS-i sensors according to profile S-1.1 (without extended addressing) or profile S-3.A.1(with extended addressing), by which the input data bit D1 ("Warning") being deleted. For creating of 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
27
26
25
24
1
23
22
21
20
23
22
21
20
result 3A
2A
1A
0
27B
26B
25B
24B
7E16
2 3
T
byte
27
-
circuit 0316 Response
26
25
24
1
6 0 0 .2 2 .1 2 2 e t a d e u s is
7E16
2 3 …
T 7A
10
31B
6A
5A
4A …
Subjecttoreasonablemodificationsduetotechnicaladvances
30B
29B
28B
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
45
Command Interface
AS-i Sc anner for Al len-B radl ey
7.2.3.4
Inte gra ted AS -i Sensors : Ava ila bilit y
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 1
27
2 3
T
26
25
24
23
22
21
20
22
21
20
7E16 -
circuit 0416 Response
byte
2
7
2
6
2
5
24
1 2 3 … 6
23 7E16
T 76
result 32
54
10
… 31
30
29
28
27
26
25
24
6 0 0 .2 2 .1 2 2 te a d e u ss i
46
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
7.2.4
Con fi gu rati on of th e AS-i Mast er
7.2.4.1
Overvi ew o f t he Comm ands Values for c ommand
7.2.4.2
comamnd
value
meaning
SET_OP_MODE
0C16
Set_Operation_Mode
ReqLen ResLen 3
2
STORE_CDI
0716
Store_Actual_Configuration
2
2
READ_CDI
2816
Read_Actual_Configuration
3
4
SET_PCD
2516
Set_Permanent_Config
5
2
GET_PCD
2616
Get_Permanent_Config
3
4
SET_LPS
2916
SET_LPS
11
2
GET_LPS
4416
Get_LPS
2
10
STORE_PI
0416
Store_Actual_Parameter
2
2
WRITE_P
0216
Write_Parameter
4
3
READ_PI
0316
Read_Parameter
3
3
SET_PP
4316
Set_Permanent_Parameter
4
2
GET_PP
0116
Get_Permanent_Parameter
3
3
SET_AAE
0B16
Set_Auto_Adress_Enable
3
2
Set Opera tion Mode (S ET_OP_MODE: Set_Opera tion_M ode)
This call switches between configuration mode and protected mode. In protected mode, only AS-i slaves entered in the LPS and whose expected and actual configurations match, are being activated. In other words: The slaves are being activated if the I/O configuration and the ID codes of the detected AS-i slaves are identical to the configured values. In configuration mode, all detected AS-i slaves (except for AS-i slave "0") are activated. This also applies to AS-i slaves for which there are differences between the expected and actual configuration. The “OPERATION MODE” bit is stored permanently; in other words, it is retained after a cold/warm restart. 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). If an AS-i slave with address "0" is entered in the LDS, the AS-i master cannot change from configuration mode to protected mode.
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
47
Command Interface
AS-i Sc anner for Al len-B radl ey
Request
byte
27
26
T
–
25
24
1 2 3
23
22
21
20
22
21
20
0C16 circuit operation mode Response
byte 1
27
2
T
26
25
24 0C16
23 result
Meaning of bit operation mode: 0 = protected mode 1 = configuration mode 7.2.4.3
Store Actua l Configura tion ( STORE_CDI)
With this call, the (actual) configuration data (I/O configuration, ID code, extended ID1 code and extended ID2 code) of all AS-i slaves are stored permanently in the EEPROM as the (expected) configuration data. The list of activated AS-i slaves (LAS) is adopted in the list of permanent AS-i slaves (LPS). When this command is executed, the AS-i master changes to the offline phase and then changes back to the normal mode (warm restart on the AS-i master). This command can only be executed in the configuration mode. Request
byte
27
26
25
24
1
23
22
21
20
22
21
20
0716
2
T
–
byte
27
26
circuit Response
25
24
1 2 7.2.4.4
23 0716
T
result
Read Actua l Configura tion ( READ_CDI)
With this call, the following configuration data of an addressed AS-i slave obtained by the AS-i master on the AS-Interface are read. • I/O configuration • ID code • Extended ID1 code • Extended ID2 code
48
Subjecttoreasonablemodificationsduetotechnicaladvances
6 0 0 .2 2 .1 2 2 te a d e u ss i
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
The configuration data are specified by the manufacturer of the AS-i slave. Request
byte
27
26
25
24
1
23
22
21
20
21
20
2816
2 3
T
byte
27
– –
circuit slave address
B Response
26
25
24
1 2 3 4
23
22
2816 T
result xID2 ID
xID1 I0
Meaning of bit B: B = 0 Single AS-i slave or A-slave B = 1 B-slave 7.2.4.5
Set Perma nen t Co nfigura tion ( 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 master 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). This command can only be executed in the configuration mode. Request 7
6 0 0 .2 2 .1 2 2 e t a d e u s is
6
byte 1
2
2
2 3 4 5
T
–
5
2
–
Subjecttoreasonablemodificationsduetotechnicaladvances
B xID2 ID
4
2
3
2516
2
2
2
1
2
0
2
circuit slave address xID1 I0
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
49
Command Interface
AS-i Sc anner for Al len-B radl ey
Response
byte
27
26
25
24
1 2
23
22
21
20
2516 T
result
Meaning of bit B: B = 0 Single AS-i slave or A-slave B = 1 B-slave 7.2.4.6
Get E xte nde d Pe rma nen t Configura tion (G ET_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
27
26
25
24
1
23
22
21
20
21
20
2616
2 3
T
byte
27
–
–
circuit slave address
B Response
26
25
24
1 2 3 4
23
22
2616 T
result xID2 ID
xID1 I0
Meaning of bit B: B = 0 Single AS-i slave or A-slave B = 1 B-slave 7.2.4.7
Set List of P roje cte d Slaves (SET_LPS)
With this call, the list of configured AS-i slaves is transferred for permanent storage in the EEPROM of the master. When this command is executed, the AS-i master changes to the offline phase and then changes back to the normal mode (warm restart). 6 0 0 .2 2 .1 2 2 te a d e u ss i
50
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
This command can only be executed in the configuration mode. Request
byte
27
26
25
24
1
23
22
21
20
3A
2A
1A
–
27B
26B
25B
24B
23
22
21
20
2916
2 3
T
-
circuit
4 … 11
7A 31B
30B
29B
byte
27
26
25
0016 6A
5A
4A … 28B Response
24
1 2 7.2.4.8
2916 T
result
Get List of Projec ted Slaves (GET_LPS)
With this call, the following entry is read out of the AS-i master: The list of projected AS-i slaves (LPS). Request
byte
27
26
2
T
-
byte
27
26
25
24
1
23
22
21
20
23
22
21
20
result 3A
2A
1A
0A
27B
26B
25B
24B
4416 circuit Response
25
24
1 2 3 … 10 7.2.4.9
4416 T 7A
6A
5A
4A …
31B
30B
29B
28B
Store A ctua l Parameter s (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 current parameters of all AS-i slaves are stored. Request
byte 6 0 0 .2 2 .1 2 2 e t a d e u s is
27
26
1 2
25
24
23
22
21
20
0416 T
Subjecttoreasonablemodificationsduetotechnicaladvances
–
circuit
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
51
Command Interface
AS-i Sc anner for Al len-B radl ey
Response
byte
27
26
25
24
1 2 7.2.4.10
23
22
21
20
0416 T
result
Write Para mete r (WRITE_P)
The AS-i slave parameter value transferred with the command is passed on to the addressed AS-i slave. The parameter is stored in the AS-i master only temporarily and is not stored as a configured parameter in the EEPROM! The AS-i slave transfers its current parameter value in the response (parameter echo). This can deviate from the value that has just been written according to the AS-i master specification. Request
byte
27
26
25
24
1
23
22
21
20
0216
2 3 4
T
byte
27
– –
circuit slave address parameter
B – Response
26
25
24
1 2 3
23
22
21
20
0216 T
result –
slave response
Meaning of bit B: B = 0 Single AS-i slave or A-slave B = 1 B-slave 7.2.4.11
Read Paramete r (READ_PI: Read_Parameter)
This call returns the current parameter value (actual parameter) of an AS-i slave sent by the AS-i master. 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
T
–
25
1 2 3
52
24
23
22
21
20
0316 –
Subjecttoreasonablemodificationsduetotechnicaladvances
B
circuit slave address
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
6 0 0 .2 2 .1 2 2 te a d e u ss i
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
Response
byte
27
26
25
24
1 2 3
23
22
21
20
0316 T
result –
PI
Meaning of bit B: B = 0 Single AS-i slave or A-slave B = 1 B-slave 7.2.4.12
Set_Permanent_P arameter (SET_PP)
With this call, a parameter value for the specified AS-i slave is configured. The value is stored permanently in the EEPROM of the gateway. The configured parameter value is transferred only when the AS-i slave is activated after turning on the power supply on the AS-i master. Request
byte
7
2
2 3 4
T
–
byte
27
2
6
5
2
24
1
23
22
21
20
21
20
4316 –
circuit slave address PP
B – Response
26
25
24
1 2 7.2.4.13
23
22
4316 T
result
Get_Permanent_P arame ter (GET_PP)
With this call, a slave-specific parameter value stored on the EEPROM of the AS-i master is read. Request
byte
27
26
2 3
T
–
byte
27
25
24
1
23
22
21
20
21
20
0116 –
circuit slave address
B Response
26
25
1 6 0 0 .2 2 .1 2 2 e t a d e u s is
2
24
23
22
0116 T
3
Subjecttoreasonablemodificationsduetotechnicaladvances
result –
PP
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
53
Command Interface
AS-i Sc anner for Al len-B radl ey
Meaning of bit B: B = 0 Single AS-i slave or A-slave B = 1 B-slave 7.2.4.14
Set Auto Address Ena ble ( SET_AAE)
This call can enable or disable the "automatic address programming" function. The AUTO_ADDR_ENABLE bit is stored permanently; in other words, it is retained after a warm/hot restart on the AS-i master. Request
byte
27
26
25
24
1
23
22
21
20
22
21
20
0B16
2 3
T
–
byte
27
26
circuit Auto_Address_Enable Response
25
24
1 2
23 0B16
T
result
7.2.5
Other Commands
7.2.5.1
Overvi ew o f t he Comm ands Value for command command
value
meaning
IDLE
0016
request No
ReqLen ResLen 2
2
READ_IDI
4116
Read IDI
2
36
WRITE_ODI
4216
Write_ODI
READ_ODI
5616
Read ODI
SLAVE_ADDR
0D16
Change_Slave_Address
4
2
WRITE_XID1
3F16
Write_Extended_ID-Code_1
3
2
SET_OFFLINE
0A16
Set_Off-Line_Mode
3
2
SET_DATA_EX
4816
Set_Data_Exchange_Active
3
BUTTONS
7516
DisablePushbuttons
FP_PARAM
7D16
„Functional Profile“ Param.
FP_DATA INVERTER
7E16 7C16
„Functional Profile“ Data ConfigureInverterSlaves
34 2
2 34
3 "3 "3
12
2 2 "2 "2
4
6 0 0 .2 2 .1 2 2 te a d e u ss i
54
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
7.2.5.2
IDLE
When the value of "command" is zero, no request will be fulfilled. Request
byte
27
26
2
T
–
byte
27
26
25
24
1
23
22
21
20
22
21
20
0016 circuit Response
25
24
1
0016
2 7.2.5.3
23
T
result
Read Inpu t Data Image (READ_IDI)
With this call, the input data values of all AS-i slaves are read out of the AS-i master in addition to the cyclic data exchange. Though the command READ_IDI transmits all execution control flags (byte 3 and byte 4). Request
byte
27
26
T
–
7
6
25
24
1
23
22
21
20
22
21
20
s0
Pok Cok
4116
2
circuit Response
byte
2
2
5
2
24
1 2 3 4 5 6 … 36
23 4116
T OR
result APF
NA
– CA
AAv
– slave 2A
AAs 1A slave slave 3A
… slave 30B
slave 31B
Pok Periphery_Ok
6 0 0 .2 2 .1 2 2 e t a d e u s is
S0 AAs AAv CA NA APF OR Cok
LDS.0 Auto_Address_Assign Auto_Address_Available Configuration_Active Normal_Operation_Active APF Offline_Ready Config_Ok
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
55
Command Interface
AS-i Sc anner for Al len-B radl ey
7.2.5.4
Write O utput Da ta Image (WRITE_ODI)
With this call the output data values of all AS-i slaves are written in additon to the cyclic data exchange. Request
byte
27
26
25
24
1
23
22
21
20
21
20
4216
2 3 4 … 34
T
byte
27
–
circuit
– slave 2A
1A slave slave 3A …
slave 30B
slave 31B Response
26
25
24
1 2 7.2.5.5
23
22
4216 T
result
Read Output Da ta Image (READ_ODI)
With this call, the output data values of all AS-i slaves is being read out of the AS-i master. Request
byte
27
26
25
24
1
23
22
21
20
22
21
20
5616
2
T
–
byte
27
26
circuit Response
25
24
1 2 3
5616 T
result – slave 2A
… 34 7.2.5.6
23
1A slave slave 3A …
slave 30B
slave 31B
Chang e Slave A ddre ss ( SLAVE_ADDR)
With this call, the AS-i address of an AS-i slave can be modified. This call is mainly used to add a new AS-i slave with the default address "0" to the AS-Interface. In this case, the address is changed from "AS-i slave address old" = 0 to "AS-i slave address new”.
56
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
6 0 0 .2 2 .1 2 2 te a d e u ss i
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
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
27
26
2 3 4
T
–
byte
27
1 2
T
25
24
1
23
22
21
20
21
20
0D16 – –
circuit source address target address
B B Response
26
25
24
23
22
0D16 result
Meaning of bit B: B = 0 Single AS-i slave or A-slave B = 1 B-slave 7.2.5.7
Write AS-i Sla ve Extende d ID1 (WRITE_XID1)
With this call, the extended ID1 code of an AS-i slave with address "0" can be written 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 1
27
2 3
T
26
25
24
23
22
21
20
3F16 –
circuit –
xID1
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
57
Command Interface
AS-i Sc anner for Al len-B radl ey
Response
Byte
27
26
25
24
1 2 7.2.5.8
23
22
21
20
3F16 T
result
Set Off line M ode (SET_OFFLINE)
This call switches between online and offline mode. The mode is the normal operating state for the AS-i master. The following jobs online 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 submit 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 executed. In the offline mode, the 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 perm anently stored; in other words, following a cold/warm restart, the AS-i master is once again in the online mode. Request
byte
27
26
25
24
1
23
22
21
20
22
21
20
0A16
2 3
T
byte
27
–
circuit Off-Line Response
26
1 2
25
24
23 0A16
T
result
The master changes to the offline phase, if there is a 1 written in byte 3. The master will change to online mode if there is a 0 written in byte 3.
6 0 0 .2 2 .1 2 2 te a d e u ss i
58
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
7.2.5.9
Release Data Exchange ( SET_DATA_EX) Request
byte
27
26
25
24
1
23
22
21
20
22
21
20
22
21
20
22
21
20
4816
2 3
T
–
byte
27
26
circuit Data_Exchange_Active Response
25
24
1
4816
2 7.2.5.10
23
T
result
BUTTONS
With this call, the use of the buttons can be enabled/disabled. Request
byte
27
26
25
24
1
23 7516
2 3
T
–
byte
27
26
circuit ButtonsDisabled Response
25
24
1 2 7.2.5.11
23 7516
T
result
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 7.2.3). Request
byte
27
26
1 2 3 4 …
25
24
23
22
21
20
7D16 T
n
–
circuit function request byte 1 … request byte n-3
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
59
Command Interface
AS-i Sc anner for Al len-B radl ey
Response
byte
27
26
25
24
1 2 3 … n 7.2.5.12
23
22
21
20
7D16 T
result response byte 1 … response byte n-2
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 7.2.3). Request
byte
27
26
2 3 4 … n
T
–
byte
27
25
24
1
23
22
21
20
22
21
20
7E16 circuit function request byte 1 … request byte n-3 Response
26
1 2 3
25
24
23 7E16
T
… n
result reponse byte 1 … response byte n-2
6 0 0 .2 2 .1 2 2 te a d e u ss i
60
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
7.2.5.13
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
T
–
25
24
1 2 3 4 5 6 7 8
23
22
21
20
22
21
20
7C16 circuit slave address destinationparameter value 1, high byte value 1, low byte value 2, high byte value 2, low byte
9 10 11 12
value 3, high byte value 3, low byte value 4, high byte value 4, low byte Response
7.3
byte 1
27
2
T
26
25
24
23 7C16 result
Command Interface Examples
You can find actual command interface examples in the download area of the homepage of Bihl+Wiedemann. 7.3.1
Readi ng analo g Inp ut Valu es
Command RD_7X_IN: Reading of analog input values. Meaning of the bytes: Request: RD_7X_IN
6 0 0 .2 2 .1 2 2 e t a d e u s is
Byte 1
50 hex (RD_7X_IN)
Byte 2
00 hex (master 1, single master)
Byte 3
1D hex (slave address 29)
Byte 4
00 hex
… Byte
… 00hex
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
61
Command Interface
AS-i Sc anner for Al len-B radl ey
Response
Byte 1
00 hex (or old values)
Byte 2
00 hex (or old values)
Byte 3
00 hex (or old values)
Byte 4
00 hex (or old values)
… Byte
… 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
50 hex
Byte 2
80 hex (toggle bit, result)
Byte 3
1D hex (slave address 29)
Byte 4
00 hex
… Byte
… 00hex
Result: See chapter 7.1.2 "Values for Results" Response
Byte 1
50 hex
Byte 2
80 hex (toggle bit, master1)
Byte 3
analog channel 1 high byte hex
Byte 4
analog channel 1 low byte hex
Byte 5
analog channel 2 high byte hex
Byte 6
analog channel 2 low byte hex
Byte 7
analog channel 3 high byte hex
Byte 8
analog channel 3 low byte hex
Byte 9
analog channel 4 high byte hex
Byte 10 analog channel 4 low byte hex Byte 11 00 hex not used Byte 00hex not used To get the input data again, the T-bit has to be reset again. 6 0 0 .2 2 .1 2 2 te a d e u ss i
62
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
7.3.2
Stor e cur rent Conf igu ratio n to the AS-i Maste r
1. Switch master to configuration mode 2. Write the current slave configuration to the master 3. Switch master to protected mode 4. Wait until master is in normal (protected) operation mode Byte Management 1. Switch master to config mode Request: SET_OP_MODE
Byte 1
0C hex (SET_OP_MODE)
Byte 2
00 hex (T = 0, master 1, single master)
Byte 3
01 hex (= config mode)
Byte 4
00 hex
… Byte
… 00hex
Byte 1
00 hex (or old values)
Byte 2
00 hex (or old values)
… Byte
… 00
Response
(or old values)
hex
No result because toggle bit = 0. Set the Toggle Bit: Request: SET_OP_MODE
Byte 1
0C hex (SET_OP_MODE)
Byte 2
80 hex (T = 1, master 1, single master)
Byte 3
01 hex (= config mode)
Byte 4
00 hex
… Byte
… 00hex Response
6 0 0 .2 2 .1 2 2 e t a d e u s is
Byte 1 Byte 2
0C hex 80 hex ( T = 1, result = 0)
Byte 3
00 hex (or old values)
… Byte
… 00hex (or old values)
Master is now in configuration mode.
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
63
Command Interface
AS-i Sc anner for Al len-B radl ey
Result = 0 / No error, for other result codes see chapter 7.1.2 "Values for Results". 2. Write the actual slave configuration to the master Request: STORE_CDI
Byte 1
07 hex (STORE_CDI)
Byte 2
00 hex (T = 0, master 1, single master)
Byte 3
00 hex
… Byte
… 00hex
Byte 1
00 hex (or old values)
Byte 2
00 hex (or old values)
… Byte
… 00hex (or old values)
Response
No result because toggle bit = 0. Set the toggle bit: Request: STORE_CDI
Byte 1
07 hex (STORE_CDI)
Byte 2
80 hex (T = 0, master 1, single master)
Byte 3
00 hex
… Byte
… 00hex
Byte 1
00 hex
Byte 2
80 hex ( T = 1, result = 0)
Byte 3
00 hex (or old values)
… Byte
… 00hex (or old values)
Response
The current configuration data has been written.
6 0 0 .2 2 .1 2 2 te a d e u ss i
64
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
3. Set master to protected mode Request: SET_OP_MODE
Byte 1
0C hex (SET_OP_MODE)
Byte 2
00 hex (T = 0, master 1, single master)
Byte 3
00 hex (= protected mode)
Byte 4
00 hex
… Byte
… 00hex
Byte 1
00 hex (or old values)
Byte 2
00 hex (or old values)
… Byte
… 00hex (or old values)
Response
No result because toggle bit = 0. Set the toggle bit: Request: SET_OP_MODE
Byte 1
0C hex (SET_OP_MODE)
Byte 2 Byte 3
80 hex (T = 1, master 1, single master) 00 hex (= protected mode)
Byte 4
00 hex
… Byte
… 00hex
Byte 1
0C hex
Byte 2
80 hex ( T = 1, result = 0)
Byte 3
00 hex (or old values)
… Byte
… 00hex (or old values)
Response
The master has now been ordered to switch to protected mode. It must being watited until the master is switching in this operation mode.
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
65
Command Interface
AS-i Sc anner for Al len-B radl ey
4.Wait until master is in normal operation mode (and protected mode) Reading out the flags until NA (Normal Operation Active) has been set. Request: GET_FLAGS
Byte 1
47 hex (GET_FLAGS)
Byte 2
00 hex (T = 0, master 1, single master)
Byte 3
00 hex
… Byte
… 00hex Response
Byte 1
00 hex (or old values)
Byte 2
00 hex (or old values)
… Byte
… 00hex (or old values)
No result because toggle bit = 0. Setting the toggle bit: Request: GET_FLAGS
Byte 1
47 hex (GET_FLAGS)
Byte 2 Byte 3
00 hex (T = 0, master 1, single master) 00 hex
Byte 4
00 hex
… Byte
… 00hex
Byte 1
47 hex
Byte 2
80 hex (T = 1, result = 0)
Response
Byte 3 Byte4 OR Byte 5 Byte 6 00 … Byte
APF
NA
CA
POK AAv AAs S0 COK AAe OL DX
hex
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. Normal operation mode is necessary to run the application safely.
66
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
6 0 0 .2 2 .1 2 2 te a d e u ss i
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
7.3.3
Sto re new Con fi gu rati on fo r all Slaves
1. Switch master in configuration mode 2. Write slave configuration to master 3. Write new list of projected slaves (LPS) 4. Write permanent parameter (PP) to master 5. Switch master to protected mode 6. Wait until master is in normal operation Mode (and protected mode) Byte Management 1. Set master in config mode Request: SET_OP_MODE
Byte 1
0C hex (SET_OP_MODE)
Byte 2
00 hex (T = 0, master 1, single master)
Byte 3
01 hex (= config mode)
Byte 4
00 hex
… Byte
… 00hex Response
Byte 1
00 hex (or old values)
Byte 2
00 hex (or old values)
Byte 3
00 hex (or old values)
Byte 4
00 hex (or old values)
… Byte
… 00hex (or old values)
No result because toggle bit = 0. Set the toggle bit: Request: SET_OP_MODE
Byte 1
0C hex (SET_OP_MODE)
Byte 2
80 hex (T = 1, master 1, single master)
Byte 3
01 hex (= config mode)
Byte 4
00 hex
… Byte
… 00hex
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
67
Command Interface
AS-i Sc anner for Al len-B radl ey
Response
Byte 1
0C hex
Byte 2
80 hex (T = 1, result = 0)
Byte 3
00 hex (or old values)
Byte 4
00 hex (or old values)
… Byte
… 00hex (or old values)
The master is now in configuration mode. Result: See chapter 7.1.2 "Values for Results". 2. Write single configuration to master Writing a configuration of an AS-i slave to the master. For example: Analog input 4 CH at address 4 (Slave datasheet) ID: 3hex ID2: Ehex IO: 7hex ID1: Fhex Request: SET_PCD
Byte 1
25 hex (SET_PCD)
Byte 2
00 hex (T = 0, master 1, single master)
Byte 3
04 hex (slave address to write to master)
Byte 4
EF hex (ID + IO to configurate)
Byte 5
37 hex (xID2 + xID1 to configurate)
Byte 6
00 hex
… Byte
… 00hex
Byte 1
00 hex (or old values)
Byte 2 Byte 3
00 hex (or old values) 00 hex (or old values)
Byte 4
00 hex (or old values)
… Byte
… 00hex (or old values)
Response
6 0 0 .2 2 .1 2 2 te a d e u ss i
No result because toggle bit = 0.
68
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
Set the toggle bit: Request: SET_PCD
Byte 1
0C hex (SET_PCD)
Byte 2
80 hex (T = 1, master 1, single master)
Byte 3
04 hex (slave address to write to master)
Byte 4
EF hex (ID + IO to configurate)
Byte 5 Byte 6
37 hex (ID + IO to configurate) 00 hex
… Byte
… 00hex Response
Byte 1
25 hex
Byte 2
80 hex (T = 1, result = 0)
Byte 3
00 hex (or old values)
Byte 4
00 hex (or old values)
… Byte
… 00hex (or old values)
The single slave configuration for the analog module is written. This command must be repeated for all 31 A-slaves and all 31 B-slaves. If you don't connect a slave to an address, write Fhex for ID, IO, ID1, ID2. 3. Write new list of projected slaves Write the complete LPS of your AS-i circuit. Every bit in the LPS corresponds to one slave after the following scheme: Byte0/Bit 0: Byte1/Bit 1: ... Byte3/Bit 7: Byte4/Bit 0: Byte4/Bit 1: ...
slave 0/0A - can not be set! slave 1/1A slave 31/31A slave 0B - can not be set! slave 1B
Byte7/Bit 7: slave 31B The slave is projected if the bit is set.
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
69
Command Interface
AS-i Sc anner for Al len-B radl ey
Example above: Analog module at address 4 / Set bit 4/byte 0: Request: SET_LPS
Byte 1
29 hex (SET_LPS)
Byte 2
00 hex (T = 0, master 1, single master)
Byte 3
00 hex
Byte 4
10 hex (LDS byte 0)
Byte 5 00 hex (LDS byte 1) … … Byte 11 00 hex (LDS byte 7) Byte 00hex Response
Byte 1
00 hex (or old values)
Byte 2
00 hex (or old values)
…
…
Byte
00hex (or old values)
No result because toggle bit = 0. Setting the toggle bit: Request: SET_LPS
Byte 1
29 hex
Byte 2
80 hex (T = 1, master 1, single master)
Byte 3
00 hex
Byte 4
10 hex (LDS byte 0)
Byte 5
00 hex (LDS byte 1)
… … Byte 11 00 hex (LDS byte 7) Byte
00hex
Byte 1
29 hex
Byte 2 Byte 3
80 hex ( T = 1, result = 0) 00 hex (or old values)
… Byte
… 00hex (or old values)
Response
The new list of protected slaves (LPS) is written.
70
Subjecttoreasonablemodificationsduetotechnicaladvances
6 0 0 .2 2 .1 2 2 te a d e u ss i
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
4. Write permanent parameter (power on parameter) to master Example as above:Analog module at address 4 with PP = 07 hex Request: SET_PP
Byte 1
43 hex (SET_PP)
Byte 2
00 hex (T = 0, master 1, single master)
Byte 3
04 hex (slave address to write to master)
Byte 4
07
(PP to write (use low nibble))
Byte 5
hex 00 hex
(LDS byte 1)
… Byte
… 00hex
Byte 1
00 hex (or old values)
Byte 2
00 hex (or old values)
… Byte
… 00hex (or old values)
Response
No result because toggle bit = 0 Setting the toggle bit: Request: SET_PP
Byte 1
43 hex (SET_PP)
Byte 2
80 hex (T = 0, master 1, single master)
Byte 3
04 hex (slave address to write to master)
Byte 4
07 hex (PP to write (use low nibble)
Byte 5
00 hex
… Byte
… 00hex
Byte 1
43 hex
Byte 2
80 hex ( T = 1, Result = 0)
Byte 3 … Byte
00 hex … 00hex
Response
The permanent parameter for the analog module is written. 6 0 0 .2 2 .1 2 2 e t a d e u s is
This command must be repeated for all 31 A-slaves and all 31 B-slaves. If you don't connect a slave to an address, write the default value to the master (F hex) as a permanent parameter.
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
71
Command Interface
AS-i Sc anner for Al len-B radl ey
5. Switch Master to Protected Mode Request: SET_OP_MODE
Byte 1
0C hex (SET_OP_MODE)
Byte 2
00 hex (T = 0, master 1, single master)
Byte 3
00 hex (= protected mode)
Byte 4
00 hex
… Byte
… 00hex
Byte 1
00 hex (or old values)
Byte 2
00 hex (or old values)
… Byte
… 00hex (or old values)
Response
No result because toggle bit = 0. Setting the toggle bit: Request: SET_OP_MODE
Byte 1
0C hex (SET_OP_MODE)
Byte 2 Byte 3
80 hex (T = 1, master 1, single master) 00 hex (= protected mode)
Byte 4
00 hex
… Byte
… 00hex
Byte 1
0C hex
Byte 2
80 hex (T = 1, result = 0)
Byte 3
00 hex (or old values)
… Byte
… 00hex (or old values)
Response
The master has now been ordered to switch to protected mode.
6 0 0 .2 2 .1 2 2 te a d e u ss i
72
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Command Interface
AS-i Sc ann er fo r Al len-B radl ey
6. Wait until master is in normal (protected) operation mode Read out the flags, until the NA (Normal Operation Active) has been set. Request: GET_FLAGS
Byte 1
47 hex (GET_FLAGS)
Byte 2
00 hex (T = 0, master 1, single master)
Byte 3
00 hex
… Byte
… 00hex Response
Byte 1
00 hex (or old values)
Byte 2
00 hex (or old values)
… Byte
… 00hex (or old values)
No result because toggle bit = 0. Setting the toggle bit: Request: GET_FLAGS
Byte 1
47 hex (GET_FLAGS)
Byte 2 Byte 3
00 hex (T = 0, master 1, single master) 00 hex
Byte 4
00 hex
… Byte
… 00hex
Byte 1
47 hex
Byte 2
80 hex (T = 1, result = 0)
Response
Byte 3 Byte4 OR Byte 5 Byte 6 00 … Byte
APF
NA
CA
POK AAv AAs S0 COK AAe OL DX
hex
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. 6 0 0 .2 2 .1 2 2 e t a d e u s is
The flag NA indicates that the master is in normal operation mode. Normal operation mode is necessary to run the application safely.
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
73
AS-i Sc anner for Al len-B radl ey
Command Interface
The flag NA indicates that the master is in the normal operating mode which is necessary for the application to run safely.
6 0 0 .2 2 .1 2 2 te a d e u ss i
74
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
Commissioning Tools and Accessories
8
Commissioning Tools a nd A ccessories The AS-i circuit on the AS-i master can be put into operation with the comfortable Windows software "AS-i Control Tools" (art. no. BW1203).
8.1
Serial Cable
The software package communicates with the AS-i master via a serial cable (art. no. BW1417).
8.2
Windows Software AS-i Control Tools
The Windows software AS-i Control Tools enables you to configure the AS-i circuit in a very comfortable manner. 1. Start the AS-i Control Tools. 2. Call the command Master | New. 3. Choose Rockwell as proto col. 4. Do the appropriate settings. 5. Call the command Master | AS-i configuration. The AS-i configuration editor will be started. All detected and projected AS-i slaves are displayed in this window.
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
75
Commissioning Tools and Accessories
6. Click on a slave entry to open the dialog box slave configuration.
Changing a slave address, setting AS-i parameters or AS-i configuration data is possible here. Additionally, inputs and outputs can be tested. 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 Ad dr ess As si st ant . 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 integrated help.
6 0 0 .2 2 .1 2 2 te a d e u ss i
76
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
AS-i Sc ann er fo r Al len-B radl ey
9
Appendix: Codes indicated by the Display
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 meanings: 39 Advanced AS-i diagnostics: After pressing the ’set’-button a short-time AS-i power failure occured. 40 The AS-i master is in offline phase. 41 The AS-i master is in detection phase. 42 The AS-i master is in activation phase. 43 The AS-i master starts the normal operating mode. 70 Hardware error: The AS-i master’s EEPROM cannot be written. 72 Hardware error: The PIC processor does not respond. 73 Hardware error: The PIC processor does not respond. 74 Checksum error in the EEPROM. 80 Error while attempting to exit the configuration mode: A slave with address zero exists. 81 General error while changing a slave a ddress. 82 The front panel operation is blocked. Until repowering-up the device can only be accessed from the host via the interface or if the key switch is set to run turn it to program. 90 Error while changing a slave address in protected operating mode: No slave with address 0 existing. 91 Error while changing slave address: Target address is already used. 92 Error while changing slave address: New address could not be set. 93 Error while changing slave address: New address could only be stored volatilely in the slave. 94 Error while changing the slave address in protected operating mode: Slave has wrong configuration data. 95 Error while changing slave address in protected operating mode: The configuration error was caused by a superfluous slave (instead of a missing slave).
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
77
AS-i Sc anner for Al len-B radl ey
10
Appendix: Installation/Commissioning Instructions
Ap pend ix : Ins tall ati on /Com mi ss io ni ng Ins tru ct io ns
AS-i -Mast er/Sc ann er A rt .-No. BWU1488
Dokumentation AS-i-Master/Scanner (deutsch ): Art.-Nr. BW1556 http://www.bihl-wiedemann.de/deutsch/download.htm
Zubehör Art.-Nr. BW1563/Accessories art. no. BW1563/ Accessoires no. d'art. BW1563/Accessori no. di art. BW1563/ Accesorios no. del art. BW1563
6 0 0 .2 2 .1 2 2 te a d e u ss i
78
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
AS-i Sc ann er fo r Al len-B radl ey
Appendix: Installation/Commissioning Instructions
Front view and connections
Bihl+Wiedemann AS-Interface Master Bihl+Wiedemann
{
prj mode AS-i act
PWR prg enable
RS232
SYS
AS-i
OK
{
mode
set AS-Int erf ace
{ { Art . no. 1488 www.bihl-wiedemann.com
! " # $ % &
! " # $ % &
! " # $ 6 0 0 .2 2 .1 2 2 e t a d e u s is
% &
LED-Statusanzeige Tasten für Handbedienung LED-Anzeige
!
AS-Interface®-Anschluss Erde RS232-Anschluss
$
" #
Visualizzazione a LED Pulsanti per le impostazioni manuali Indicazione LED
%
Collegamento interfaccia AS-Interface® Terra
&
Collegamento RS232
LED status display Buttons for hand operation LED display
!
LED visualización Teclas para accionamiento manual Indicación LED
AS-interface® connection Earth RS232 connection
$
" # %
Conexión AS-Interface® Tierra
&
Conexión RS232
Afficheur d’état DEL Boutons pour commande manuelle Afficheur LED Connexion AS-Interface® Terre Raccordement RS232
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
79
Appendix: Installation/Commissioning Instructions
AS-i Sc anner for Al len-B radl ey
1. Start up 1.1 Switch to configura tion mode > 5s mode
prj mode
prj mode
1.2 Conne ct AS-i S lave s PWR
r te s a iM S A
U AS-i AS-i act Fault
OK
prg enable prj mode
PWR
U AS-i AS-i act Fault
OK
AS-i
prg enable prj mode
r e st a i-M S A
AS-i
AS-i Slave 1
LCD
1 LCD 0.5s
AS-i Slave 1
AS-i Slave 5
5 0.5s
AS-i Slave 5
AS-i Slave 24
24 0.5s
AS-i Slave 24
1.3 Store AS -i Configuration
prj mode Fault
> 5s mode
prj mode
LCD
Fault
Konfiguration O.K. Configuration O.K. Configuration O.K. Configurazione O.K. Configuración O.K. 6 0 0 .2 2 .1 2 2 te a d e u ss i
80
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
AS-i Sc ann er fo r Al len-B radl ey
Appendix: Installation/Commissioning Instructions
2. Error tr acking 2.1 Incorre ct slaves (one e rror)
PWR
U AS-i AS-i act Fault
OK
prg enable prj mode
r e st a -iM S A
AS-i
AS-i Slave 1
AS-i Slave 5
5 LCD
AS-i Slave 24
2.2 Incorre ct Slave s (multiple errors) PWR
U AS-i AS-i act Fault
OK
prg enable prj mode
r e st a i-M S A
AS-i
AS-i Slave 1
AS-i Slave 5
LCD 1
set
24
set
AS-i Slave 24
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
81
Appendix: Installation/Commissioning Instructions
AS-i Sc anner for Al len-B radl ey
2.3 Error D isplay (la st error) PWR
U AS-i AS-i act Fault
OK
prg enable prj mode
r te s a M iS A
PWR
OK
AS-i
r te s a M iS A
U AS-i AS-i act Fault
prg enable prj mode
AS-i
AS-i Slave 1
AS-i Slave 1
AS-i Slave 5
AS-i Slave 5
AS-i Slave 24
AS-i Slave 24
LCD
set
24
3. Addr essing 3.1 Delete S lave Addre ss 5 PWR
U AS-i AS-i act Fault
OK
prg enable prj mode
r e st a M iS A
Projektierungsmodus! Configuration mode! Mode de configuration! Modo di configurazione! Modo de configuración!
AS-i
AS-i Slave 3
3 LCD 0.5s
AS-i Slave 5 AS-i Slave 12
5
U AS-i AS-i act Fault
OK
prg enable prj mode
AS-i
> 5s set
0.5s
12 0.5s
0
AS-i Slave 3
3
AS-i Slave 0
0.5s
12
Subjecttoreasonablemodificationsduetotechnicaladvances
r te s a iM S A
0.5s
0.5s
82
PWR
AS-i Slave 12
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
6 0 0 .2 2 .1 2 2 te a d e u ss i
Appendix: Installation/Commissioning Instructions
AS-i Sc ann er fo r Al len-B radl ey
3.2 Progra m Sla ve 0 to Address 4 r et s a Mi - SA e d o m rj p e l b a n e g r p
tl u a F tc a -i S A -i S A U R W P
iS A
iS A
K O
3 ve a l S
iS A
4 ve a l S
iS A
2 1 ve a l S
4
t e s
2 1
s 5 . 0
D C L
3
s .5 0
s .5 0
4
s 5 >
s! u d o sm g n ru e i kt je ro P
! e d o m n ito ra u g if n o C
! n io t ra u ig f n o c e d e d o M
! ! e n n ió o zir ra c a u u g g f if in n o o c ci e d d o o d d o o MM
t e s
1
2
t se
D C L 0
4
t se
s 5 . 0
t e s
3
s 5 . 0
t e s
2 1
!
!
!
1 3
t e s
s 5 . 0
r et s a Mi - SA lt u a F tc ia S A
e d o m rj p le b a n e rg
i-S A U
p
R W P
K O
iS A
iS A
3 ve la S
iS A
0 ve a l S
iS A
2 1 ve a l S
! h lci g ö m 0 e v a l S it m r u n
! 0 e v la s h ti w e l ib ss o p yl n o
c ve a e l ib s sp o t n e m le u e s
! 0 o v a i ch s n co ! 0 ve a cls e
li e ib ss o p o l o s
! 0 o v la sc e n o ce l b si o p o l ó s
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
83
AS-i Sc anner for Al len-B radl ey
Appendix: Installation/Commissioning Instructions
4. Accessories 4.1 Software "AS- i Control T ools" with serial transmission c Master, art. no . BW1563
ord for Allen- Bradle y AS- i
4.2 Example programs Download:
http://www.bihl-wiedemann.de/deutsch/download.htm
Download:
http://www.bihl-wiedemann.de/englisch/download.htm
Téléchargement:
http://www.bihl-wiedemann.de/englisch/download.htm
Trasferimento diretta:
http://www.bihl-wiedemann.de/englisch/download.htm
Transferencia directa: http://www.bihl-wiedemann.de/englisch/download.htm
6 0 0 .2 2 .1 2 2 te a d e u ss i
84
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
AS-i Sc ann er fo r Al len-B radl ey
Appendix: Installation/Commissioning Instructions
4.3 AS-i Power S uppl y 4A art. no BW16 49
http://www.bihl-wiedemann.de/deutsch/catalog/1649.htm
4.4 AS-i circuit exte nsion AS-i Tuner
BWU1648
http://www.bihl-wiedemann.de/englisch/catalog/16441648.htm
AS-i Bus Termination BWU1644 http://www.bihl-wiedemann.de/englisch/catalog/16441648.htm
AS-i Repeater IP20
BWU1460
http://www.bihl-wiedemann.de/englisch/catalog/1460.htm
AS-i Repeater IP65
BWU1273
http://www.bihl-wiedemann.de/englisch/catalog/1273.htm
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
85
AS-i Sc anner for Al len-B radl ey
11
Appendix: Putting the AS-Interface Scanner into Operation with
Ap pend ix : Put ti ng th e AS-Int erf ace Scann er i nt o Operati on with ControlLogix This chapter shows examplarily the putting into operation of the AS-Interface Master/Scanner BWU1488 for Allen Bradley ControlLogix with the software RSLogix 5000 version 11.11.00 and the 1769-L20 1756-L55 ControlLogix5555 Controller. 1.1 Download the example "AS-Interface-Scanner for Allen-Bradley ControlLogix" files.from the download area of the Bihl+Wiedemann website and unzip the This example can be found in the download area of http://www.bihl-wiedemann.com under Software - Examples: AS-Interface Master/Gateway/Link/ Scanner - AS-Interface-Scanner for Allen-Bradley ControlLogix. 1.2 Start the software RSLogix 5000. 1.3 Open the file Module.acd. This sample file contains a program that shows how to use the 2 mailboxes. 1.4 Look at the description of the controller tags, where you find the tags mailbox1/2. Here you can edit Mailbox commands. How is written in the Mbx0Main routine of the program mailbox.
1.5 You find some other examples: 1.5.1 A02_RD_WR.ACD, A03_Get_LAS.ACD, A04_READ_IDI.ACD, A05_GET_DELTA.ACD, A06_GET_TECA.ACD, A07_SET_LOS.ACD, A08_GET_LOS.ACD, A09_GET_LCS.ACD, A10_GET_LPF.ACD. The task MainProgram of these examples, show you, how to use some commands of the mailbox with help of the task Mbx0Main. 1.5.2 DataExchange.ACD. This sample file contains a very simple program, that shows how to read and write digital AS-Interface inputs and outputs.
86
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
6 0 0 .2 2 .1 2 2 te a d e u ss i
AS-i Sc ann er fo r Al len-B radl ey
2.
Appendix: Putting the AS-Interface Scanner into Operation with
If your AS-Interface Scanner is not mounted in slot 2, you can change this setting. Click with the right mouse-button in the Controller Organizer window on [2] 1756 MODULE ASi_Generic_1756_Module and choose Properties.
Properties window for scanner revisions prior to 1.3
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
87
AS-i Sc anner for Al len-B radl ey
Appendix: Putting the AS-Interface Scanner into Operation with
Properties window for scanner revisions higher as 1.3:
3.
if you use another controller type than the 1756-L55 ControlLogix5555 Controller, you can change the controller type. Execute the command Edit | Controller Properties then press Change Type.
6 0 0 .2 2 .1 2 2 te a d e u ss i
88
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
AS-i Sc ann er fo r Al len-B radl ey
4.
Appendix: Putting the AS-Interface Scanner into Operation with
Adjust the communication settings by using the program RSLinx:
6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
89
AS-i Sc anner for Al len-B radl ey
12
We Are Interested in Your Opinion!
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 comments, 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:
[email protected]
6 0 0 .2 2 .1 2 2 te a d e u ss i
90
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,Printed inGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
AS-i Sc ann er fo r Al len-B radl ey
We Are Interested in Your Opinion!
Fax-Reply Bihl+WiedemannGmbH Technical Support
Date: Fax No:
+49 (0) 621-33 9 22 39
eMail:
[email protected]
From: Company: Address: City: ZIP Code: Country:
Name: Department: Job Function: Phone: Fax: eMail:
Document: Designation:
Issue Date:
My Opinion of the Document Form
Yes
Inpart
No
Yes
Inpart
No
Is the table of contents arranged clearly? Are the pictures/graphics easy to understand/helpful? Are the written explanations of the images adequate? Does the quality of the images meet your expectations/needs? Does the layout of the document allow you to find a piece of information? Contents
Is the phraseology/terminology easy to understand? Are the examples practice-oriented? Is the document easy to handle? Is any important information missing? If yes, what?
Other Comments: 6 0 0 .2 2 .1 2 2 e t a d e u s is
Subjecttoreasonablemodificationsduetotechnicaladvances
CopyrightBihl+Wiedemann,PrintedinGermany
Bihl+Wiedemann GmbH · D-68199 Mannheim · Phone +49-621-339960 · Fax +49-621-3392239 · Internet http://www.bihl-wiedemann.de
91