Page 1
Building Automation Industrial Automation Systems Hardware and Engineering CM4-505-GV1 CM4-505-GV2 AS-i/PROFIBUS-Gateways AWB2700-1409GB 04/01 Think future. Switch to green.
AS-i/PROFIBUS Gateway Table of Contents Table of Contents The Used Symbols ................... 5 Safety ......................7 Intended Use ......................7 General Safety Information ..................7 General Information ................. 9 Connections, Displays and Operating Keys ........11 Power Supply Concepts and AS-i Connection Techniques ......12 4.1.1 Single Masters in IP65 ....................
Page 4
AS-i/PROFIBUS Gateway Table of Contents Mailbox ........................32 7.3.1 Construction ......................32 7.3.2 Mailbox commands ....................35 7.3.3 Mailbox example ..................... 60 Commissioning Tools and Accessories ..........63 Windows Software AS-i Control Tools ............... 63 PROFIBUS-DP master simulator ................. 66 Serial PROFIBUS Master ..................
AS-i/PROFIBUS Gateway The Used Symbols The Used Symbols This symbol warns the user of possible danger. Failure to heed this warning can lead to personal injury or death and/or damage to equip- ment. This symbol warns the user of a possible failure. Failure to heed this warning can lead to total failure of the equipment or any other con- nected equipment.
AS-i/PROFIBUS Gateway Safety Safety 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.
AS-i/PROFIBUS Gateway General Information General Information This operating instruction is for use with the following devices of the Moeller GmbH: • AS-i/PROFIBUS-DP gateway power supply A Article no. CM4-505-GV1 • AS-i/PROFIBUS-DP gateway IP65 power supply A Article no. CM4-505-GV2 The AS-i/PROFIBUS-Gateways serve to connect AS-Interface systems to the PROFIBUS.
Page 10
AS-i/PROFIBUS Gateway General Information Commissioning, debugging and setting up of the AS-i parameters without the soft- ware can only be accomplished with the use of two push-buttons, the display and the LEDs directly on the system. Accessories Software "AS-i Control Tools" PROFIBUS-DP Master Simulator DP V1 D-Sub data transmission cord for AS-i masters in IP65...
AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys Connections, Displays and Operating Keys Devices in IP20: On the front panel of the AS-i/PROFIBUS gateways in IP20 are: • terminals to connect the power supply and the AS-i circuit • a 9-pin SUB-D connector as PROFIBUS interface •...
AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys Power Supply Concepts and AS-i Connection Techniques The AS-i masters do not need a voltage supply of their own. They can be powered completely out of the AS-i line (the power consumption is about 200 mA from AS-i).
AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys Connection samples for the AS-i power supply: AS-i Master AS-i Master AS-i power max. 5 A AS-i Slave supply PELV according to EN 60950 (Protective extra low voltage) AS-i Slave AS-i Slave max. 8 A AS-i PELV according to EN 60950 power...
AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys 4.2.2 Devices in IP65 The AS-i/PROFIBUS gateway in IP65 can be connected to PROFIBUS with cage clamp terminals inside of the device. For that purpose the top of the housing has to be screwed off. You can use a SUB-D data cable as an accessory part for AS-i masters in IP65 which is led through the heavy gauge terminals and is connected after the following colour scheme:...
Page 15
AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys This LED blinks if there is at least one periphery 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. U ASI The AS-i circuit is sufficiently powered.
Page 16
AS-i/PROFIBUS Gateway Connections, Displays and Operating Keys...
AS-i/PROFIBUS Gateway Operating the AS-i/PROFIBUS Gateway Operating the AS-i/PROFIBUS Gateway Master Start-Up After powering on, all segments of the figure display and all LEDs light up for approx- imately one second (self-test). Afterwards, the LEDs display the condition of their re- spective flags.
AS-i/PROFIBUS Gateway Operating the AS-i/PROFIBUS Gateway Pressing the “mode” button for at least five seconds switches the master to configu- ration mode. While in configuration mode, the yellow “prj mode” LED lights up. The system then displays one after the other all detected slaves at a speed of two per second.
AS-i/PROFIBUS Gateway Operating the AS-i/PROFIBUS Gateway Shortly appearing configuration errors are stored in the device (advanced AS-i diag- nosis). The last error that occurred can be displayed by pressing the set button. If a short AS-i power failure is responsible for the configuration error the display shows a “39”.
AS-i/PROFIBUS Gateway Operating the AS-i/PROFIBUS Gateway Programming the Address in Case of Configuration Errors 5.5.1 Automatic Address Assignment One of AS-i’s great advantages is the automatic address assignment. If a slave fails, it can be replaced by one of the same type with address zero.
AS-i/PROFIBUS Gateway Operating the AS-i/PROFIBUS Gateway Setting of the PROFIBUS Station Address 5.6.1 PROFIBUS Station Address The addressing of the AS-i/PROFIBUS gateway as a PROFIBUS slave can be done locally at the gateway or via PROFIBUS according to the PROFIBUS standard. Station addresses from 1 to 99 can be set, when delivered station address 3 is set.
Page 22
AS-i/PROFIBUS Gateway Operating the AS-i/PROFIBUS Gateway...
AS-i/PROFIBUS Gateway Advanced Diagnostics for AS-i Masters Advanced Diagnostics for AS-i Masters The advanced AS-i diagnostics serve to locate occasionally occurring errors and to judge the quality of data transmission on AS-i without additional diagnostics tools. The "AS-i Control Tools" (software for the comfortable commissioning of the AS-Inter- face and the programming of AS-i Control) support the operation of the advanced di- agnostics (LCS, error counters and LOS).
AS-i/PROFIBUS Gateway Advanced Diagnostics for AS-i Masters Off-line Phase on Configuration Errors (LOS) The AS-i masters with advanced diagnostics offer the possibility to put themselves into the off-line Phase when a configuration error on the AS-Interface occurs. In this way the security of the application can be ensured. The reaction to a configuration er- ror is very fast and the host can be relieved from this task.
AS-i/PROFIBUS Gateway PROFIBUS-DP PROFIBUS-DP This chapter contains all the necessary information to operate the AS-i/PROFIBUS gateway in a PROFIBUS-DP network. DP Telegrams 7.1.1 Diagnosis DP Diagnosis PDU byte user byte DPV1 user – station_status 1 – station_status 2 – station_status 3 –...
Page 26
AS-i/PROFIBUS Gateway PROFIBUS-DP Delta List: List of AS-i slaves with configuration error: 1: ConfigError 0: no ConfigError LPF:List of AS-i slaves with peripery fault: 1: periphery fault 0: no periphery fault LCS: List of Corrupted slaves (see chapter 6). Each element of the user diagnosis (ec-flags and slave lists) can be switched off by setting the appropriate bit in the parameter telegram.
Page 27
AS-i/PROFIBUS Gateway PROFIBUS-DP DP Parameters PDU byte user byte DPV1 user default – group_ident DPV status 1 DPV status 2 DPV status 3 slave lists ExtDiag The bits in "slave lists" and "ExtDiag" have following meanings: Slave lists – – default ExtDiag –...
AS-i/PROFIBUS Gateway PROFIBUS-DP 7.1.2 Configuration DP V0 (cyclic data) AS-i V2.04 easy mode The AS-i/PROFIBUS-DP Gateway V2.1 can be used that it can replace Bihl+Wiedemann's AS-i/PROFIBUS-DP Gateway according to the specification 2.04 which has been commisioned in easy mode. In this mode the AS-i I/O data are shown in the PROFIBUS process data as 16 bytes I/O data with or without consistency.
AS-i/PROFIBUS Gateway PROFIBUS-DP The IDs can be used in different sequences. But in the I/O data field can only be one area with each type. 7.1.3 I/O-Data AS-i V2.04 easy mode byte slave 1/1A flags slave 3/3A slave 2/2A slave 5/5A slave 4/4A slave 7/7A slave 6/6A...
Page 31
AS-i/PROFIBUS Gateway PROFIBUS-DP 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. Analog data The 16 bit values of AS-i slaves according to the profile 7.3 can read and written within each PROFIBUS cycle or via the mailbox.
AS-i/PROFIBUS Gateway PROFIBUS-DP The mailbox commands can also be activated with PROFIBUS-DP V1. Even the pro- cess data exchange is possible via the mailbox. In that way the configuration software "AS-i Control Tools" can run the whole communication via DP V1. DP V1 To exchange data between the PROFIBUS master and the AS-i/PROFIBUS gateway via PROFIBUS-DP V1 only one data block is used - slot 1, index 16.
Page 33
AS-i/PROFIBUS Gateway PROFIBUS-DP Circuit = 1 If AS-i gateway with 2 masters and the master 2 is choosen. Values for command Values for command value meaning IDLE No order READ_IDI Read IDI WRITE_ODI Write_ODI SET_PP Set_Permanent_Parameter GET_PP Get_Permanent_Parameter WRITE_P Write_Parameter READ_PI Read_Parameter STORE_PI...
Page 34
AS-i/PROFIBUS Gateway PROFIBUS-DP Values for command value meaning READ_ODI Read ODI GET_LISTS Get LDS, LAS, LPS, Flags GET_LCS Get LCS GET_LOS GET_LOS SET_LOS SET_LOS GET_TECA Get transm.err.counters GET_TECB Get transm.err.counters GET_TECX Get transm.err.counters EXT_DIAG ExtDiag generation OPTIONS Software options BUTTONS Disable pushbuttons RD_EXT_DIAG Read ExtDiag Settings...
AS-i/PROFIBUS Gateway PROFIBUS-DP 7.3.2 Mailbox commands IDLE: Request byte circuit Response byte result READ_IDI: With this call the input data values of all AS-i slaves are read out of the AS-i/PROFIBUS Gateway in addition to the cyclic data exchange. Though the mail- box command READ_IDI transmits all Execution-Control-Flags (bytes 3 and 4).
Page 36
AS-i/PROFIBUS Gateway PROFIBUS-DP WRITE_ODI: With this call the output data values of all AS-i slaves are written in additon to the cy- clic data exchange. Request byte circuit – slave 1A slave 2A slave 3A … … slave 30B slave 31B Response byte result...
Page 37
AS-i/PROFIBUS Gateway PROFIBUS-DP Get_Permanent_Parameter (GET_PP): With this call, a slave-specific parameter value stored on the EEPROM of the AS-i/ PROFIBUS Gateway is read. Request byte circuit – slave address Response byte result – Write Parameter (WRITE_P): The AS-i slave parameter value transferred with the command is passed on to the ad- dressed AS-i slave.
Page 38
AS-i/PROFIBUS Gateway PROFIBUS-DP Read Parameter (READ_PI): This call returns the current parameter value (actual parameter) of an AS-i slave sent by the AS-i/PROFIBUS Gateway. This value must not be confused with the parameter echo that is supplied by the AS-i slave as a response to the write_parameter job.
Page 39
AS-i/PROFIBUS Gateway PROFIBUS-DP Set Permanent Configuration (SET_PCD): This call sets the following configuration data for the addressed AS-i slave: • I/O configuration • ID code • Extended ID1 code • Extended ID2 code The configuration data are stored permanently on the EEPROM of the AS-i/ PROFIBUS Gateway and are used as the expected configuration by the AS-i master in the protected mode.
Page 40
AS-i/PROFIBUS Gateway PROFIBUS-DP The configuration data are specified by the manufacturer of the AS-i slave. Request byte circuit – slave address Response byte result xID2 xID1 Meaning of bit B: B = 0 Single AS-i slave or A-slave B = 1 B-slave Store Actual Configuration (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...
Page 41
AS-i/PROFIBUS Gateway PROFIBUS-DP Read Actual Configuration (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 The configuration data are specified by the manufacturer of the AS-i slave.
Page 42
AS-i/PROFIBUS Gateway PROFIBUS-DP Response byte result GET_LPS: With this call, the following entry is read out of the AS-i/PROFIBUS Gateway: The list of projected AS-i slaves (LPS). Request byte circuit Response byte result &A … … GET_LAS: With this call, the following entry is read out of the AS-i/PROFIBUS Gateway: The list of activated slaves (LAS).
Page 43
AS-i/PROFIBUS Gateway PROFIBUS-DP GET_LDS: With this call, the following entry is read out of the AS-i/PROFIBUS Gateway: The list of detected AS-i slaves (LDS). Request byte circuit Response byte result &A … … GET_FLAGS: With this call, the following entry is read out of the AS-i/PROFIBUS Gateway: The flags according to the AS-i slave specification.
Page 44
AS-i/PROFIBUS Gateway PROFIBUS-DP Auto_Address_Assign This flag is set when the automatic address programming is possible (in other words, AUTO_ADDR_ENABLE = 1 and there is no “incorrect” slave connected to the AS-i Interface). Auto_Address_Available This flag is set when the automatic address programming can be executed (in other words, exactly one AS-i slave is currently out of operation).
Page 45
AS-i/PROFIBUS Gateway PROFIBUS-DP When you change from the configuration mode to the protected mode, there is a warm restart on the AS-i master (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/PROFIBUS Gateway cannot change from the configuration mode to the protected mode.
Page 46
AS-i/PROFIBUS Gateway PROFIBUS-DP Response byte 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. SET_DATA_EX: Request byte circuit Data_Exchange_Active...
Page 47
AS-i/PROFIBUS Gateway PROFIBUS-DP Request byte circuit – source address – target address Response byte result Meaning of bit B: B = 0 Single AS-i slave or A-slave B = 1 B-slave Set Auto Address Enable (SET_AAE): This call can enable or disable the "automatic address programming" function The AUTO_ADDR_ENABLE bit is stored permanently;...
Page 48
AS-i/PROFIBUS Gateway PROFIBUS-DP EXEC_CMD: With this call the master gets a message from the host that a message should be transmitted to the AS-i slaves. Request byte circuit – slave address – info5 Response byte result – info4 Meaning of bit B: B = 0 Single AS-i slave or A-slave B = 1 B-slave GET_LPF:...
Page 49
AS-i/PROFIBUS Gateway PROFIBUS-DP Write AS-i Slave Extended ID1 (WRITE_XID1): With this call, the extended ID1 code of an AS-i slave with address "0" can be written directly over the AS-i cable. The call is intended for diagnostic purposes and is not required in the normal master mode.
Page 50
AS-i/PROFIBUS Gateway PROFIBUS-DP WR_7X_OUT: With this command the four 16 bit channels of an AS-i output slave according to the slave profil 7.3 can be written. Request byte circuit – slave address channel 1, high byte … … channel 4, low byte Response byte result...
Page 51
AS-i/PROFIBUS Gateway PROFIBUS-DP RD_7X_IN_X: With this command the four 16 bit channels of 4 AS-i input slaves with succesive ad- dresses according to the slave profil 7.3 can be read. Request byte circuit – 1st slave address Response byte result 1st slave, channell 1, high byte …...
Page 52
AS-i/PROFIBUS Gateway PROFIBUS-DP RD_7X_OUT_X: With this command the four 16 bit channels of 4 AS-i output slaves with succesive ad- dresses according to the slave profil 7.3 can be read. Request byte circuit – 1st slave address Response byte result 1st slave, channel 1, high byte …...
Page 53
AS-i/PROFIBUS Gateway PROFIBUS-DP Get_LPS, Get_LAS, Get_LDS, Get_Flags (GET_LISTS): With this call, the following entries are read out of the AS-i/PROFIBUS Gateway: • The list of active AS-i slaves (LAS) • The list of detected AS-i slaves (LDS) • The list of projected AS-i slaves (LPS) •...
Page 54
AS-i/PROFIBUS Gateway PROFIBUS-DP GET_LCS: With this call, the List of Corrupted Slaves (LCS) is read out of the AS-i/PROFIBUS Gateway. Request byte circuit Response byte result … … GET_LOS: With this call, the List of Offline Slaves (LOS) is read out of the AS-i/PROFIBUS Gate- way (see chapter 6).
Page 55
AS-i/PROFIBUS Gateway PROFIBUS-DP SET_LOS: With this call, the List of Offline Slaves is written to the AS-i/PROFIBUS Gateway (see chapter 6). Request byte circuit … … Response byte result GET_TECA: With this call the error counters of all single slaves / A-slaves can be read (see chap- ter 6).
Page 56
AS-i/PROFIBUS Gateway PROFIBUS-DP GET_TECB: With this call the counts of the error counters for B-slaves are read out (see chapter 6). With every read out of the counts the error counters are restarted. The counts are read out via the correspondending host interface and will be deleted with every read access.
Page 57
AS-i/PROFIBUS Gateway PROFIBUS-DP Antwort Byte Ergebnis Zähler 1 … … Zähler n - 2 EXT_DIAG: With this call, the conditions when to set the ExtDiag bit can be selected. Request byte circuit Response byte result ExtDiag is set, if ConfigError ≡ 1 ExtDiag is set, if APF ≡...
Page 58
AS-i/PROFIBUS Gateway PROFIBUS-DP Response byte result character 1 … … character 16 BUTTONS: With this call, the use of the buttons can be enabled/disabled. Request byte circuit ButtonsDisabled Response byte result RD_EXT_DIAG: With this call, the conditions when the ExtDiag bit is set can be read. Request byte circuit...
Page 59
AS-i/PROFIBUS Gateway PROFIBUS-DP CF ExtDiag is set by ConfigError ≡ 1 APF ExtDiag is set by APF ≡ 1 PF ExtDiag is set by PeripheryFault ≡ 1 CS ExtDiag is set, if LCS is not empty FD Diagnosis will updated still only then, if this is dictated by the norm of PROFIBUS. Diagnosis data are doubtful not actual INVERTER: With that call an AS-i slave for frequency inverters is switched to the mode to get four...
AS-i/PROFIBUS Gateway PROFIBUS-DP 7.3.3 Mailbox example Command RD_7X_IN: Reading of analog input values PROFIBUS-DP V0: cyclic data exchange Used ID/module in the GSD file: 12 bytes management Meaning of the bytes: Request: RD_7X_IN Byte 1 (RD_7X_IN) Byte 2 (master 1, single master) Byte 3 (slave address 29) Byte 4...
Page 61
AS-i/PROFIBUS Gateway PROFIBUS-DP Response Byte 1 Byte 2 (Toggle bit, master1) Byte 3 analog channel 1 high byte Byte 4 analog channel 1 low byte Byte 5 analog channel 2 high byte Byte 6 analog channel 2 low byte Byte 7 analog channel 3 high byte Byte 8 analog channel 3 low byte...
AS-i/PROFIBUS Gateway Commissioning Tools and Accessories Commissioning Tools and Accessories The AS-i circuit on the AS-i/PROFIBUS Gateway can be put into operation with the comfortable Windows software "AS-i Control" Tools. This software communicates with the AS-i/PROFIBUS gateway by means of a PROFIBUS DP Mastersimulator DP V1 of Bihl+Wiedemann GmbH, Mannheim, (art.
Page 64
AS-i/PROFIBUS Gateway Commissioning Tools and Accessories 5. Do the appropriate settings. (e.g. serial interface COM 2, station address <auto>, AS-i circuit 1) 6. 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.
Page 65
AS-i/PROFIBUS Gateway Commissioning Tools and Accessories 7. Click on a slave entry to open the dialogbox slave configuration. This dialog box is for changing a slave address, setting AS-i parameters or AS-i configuration data. Additionally you can test inputs and outputs. 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.
AS-i/PROFIBUS Gateway Commissioning Tools and Accessories PROFIBUS-DP master simulator The PROFIBUS-DP Master Simulator is an easy to use software for data exchange with PROFIBUS slaves of many suppliers via PROFIBUS-DP. The PROFIBUS-DP Master Simulator can exchange data with many PROFIBUS slaves even without GSD-file or type-file.
AS-i/PROFIBUS Gateway Commissioning Tools and Accessories Serial PROFIBUS Master The Serial PROFIBUS Master fulfills all tasks of the PROFIBUS-DP Mastersimulator. Futhermore it can run the PROFIBUS with up to 1,5 MBaud. The Serial PROFIBUS Master can also be used as class 2 master as second master in a PROFIBUS network.
Page 68
AS-i/PROFIBUS Gateway Commissioning Tools and Accessories...
AS-i/PROFIBUS Gateway Appendix: Displays of the Figure Display Appendix: Displays of the Figure Display In the basic state of the configuration mode, the display shows one after the other the addresses of all detected slaves at a rate of two per second. A blank display means that the LDS is empty, i.e.
Page 70
AS-i/PROFIBUS Gateway Appendix: Displays of the Figure Display 95 Error while changing slave address in protected operating mode: The configu- ration error was caused by one slave too many (instead of one missing slave).
AS-i/PROFIBUS Gateway Appendix: The First Commissioning of AS-i Appendix: The First Commissioning of AS-i In this chapter an example is given of how to put an AS-i network into operation quickly and easily and without the need for external devices. The addressing of the components connected to the AS-i network can be performed directly on the AS-i master.
Page 72
AS-i/PROFIBUS Gateway Appendix: The First Commissioning of AS-i What to do ? How to go about it? The configuration of the AS-i master is now finished. Now the hierarchically higher fieldbus system can be put into operation. The gateway stays in the off-line phase (Display dark, the LED ASI active is out), until the hierarchically higher fieldbus system operates properly.
3.0 (German version). 11.1 Putting into Operation in Easy Mode 1. Copy the GSD-file "B_W_1745.GSD" (by Gateway CM4-505-GV1) respectively the GSD-file "B_W_61745.GSD“ (by Gateway CM4-505-GV2) from the diskette “AS-i/PROFIBUS Gateway IBM PC Software” from the directory A:\GSD to the di- rectory \GSD of the software COM PROFIBUS 3.0.
Page 74
AS-i/PROFIBUS Gateway Appendix: Putting PROFIBUS into Operation with a Siemens S5 6. In the window “DP Master System” there is a ledge with several PROFIBUS slaves. Click on AS-i and drag the icon to the PROFIBUS in the window above. 7.
Page 75
AS-i/PROFIBUS Gateway Appendix: Putting PROFIBUS into Operation with a Siemens S5 8. and afterwards the dialogbox for the selection of the device type (Slave Parame- ters): Choose “AS-i/DP” as station type. This name stands for the GSD-file with the set- tings for the easy mode.
Page 76
AS-i/PROFIBUS Gateway Appendix: Putting PROFIBUS into Operation with a Siemens S5 10.Select the PROFIBUS slave. With the command “Configure | Slave Parameters... | Configure...” you get to the dialogbox “Configure”. The fields “I Addr.” and “O Addr.” hold the start addresses for the AS-i data. The easiest way to set the addresses is with “Auto Addr.“.
Need help?
Do you have a question about the CM4-505-GV1 and is the answer not in the manual?
Questions and answers