Controller for rugged and mobile applications (24 pages)
Summary of Contents for IFM Electronic Ecomat 300
Page 1
Supplementary device manual AS-i Controller e with Profibus-DP AC1345, AC1346 Firmware version RTS 2.x Target from 15 for CoDeSys® version 2.3 or higher...
Contents On this manual ......................... 1-1 What is the meaning of the symbols and formats? ............1-1 What devices are described in this manual?..............1-2 How is this manual structured? ..................1-2 Overview: where is what? ..................... 1-3 Safety instructions ........................2-1 General..........................
Page 4
Command 4: read projected slave configuration........... 8-5 Command 5: project slave configuration ............... 8-7 Command 6: read slave parameter ............... 8-8 Command 7: project slave parameters..............8-9 Command 8: read LAS (list of active slaves)............8-11 Command 9: read LDS (list of detected slaves)..........8-13 Command 10: read LPF (list of slaves with peripheral fault).......
On this manual What is the meaning of the symbols and formats? On this manual In this chapter you find an overview of the following points: • What is the meaning of the symbols and formats? • What devices are described in this manual? •...
Designations of pushbuttons or signal lamps such as [OK] or [PWR/COM] are written in bold and in brackets. What devices are described in this manual? This manual presents the AS-i controller e family from ifm electronic gmbh • with AS-i version 2.1 masters •...
Property damage or bodily injury when the notes in this manual are not adhered to! assumes no liability for this. ifm electronic ► The acting person must have read and understood the corresponding chapters of this manual before performing any work on or with this device.
System requirements Information concerning the device System requirements Information concerning the device → separate basic instructions of the device manual Information concerning the software → separate basic instructions of the device manual Required accessories Basic functions → separate basic instructions of the device manual For configuration and programming you also need: •...
Getting started Getting started Connection ► Connect the functional earth ► Connect the yellow AS-i cable for every master ► Connect the 24 V supply ► Connect the Profibus cable to the fieldbus master Set up the AS-i ► Connect the addressed AS-i slaves to the yellow AS-i cable master ►...
Function Data management Function Basic functions → separate basic instructions of the device manual Ethernet programming interface → separate complementary device manual Data management The controller e consists of different units: text/graphics display AS-i master 1 fieldbus interface AS-i master 2 Ethernet programming interface SRAM memory...
Menu Main menu "Quick Setup" Menu Note In this manual the menu text is always in English. Basic functions → separate basic instructions of the device manual Main menu "Quick Setup" Quick setting of the AS-i and fieldbus parameters, reading of the parameter data (password level 1 required).
Menu Main menu "Fieldbus Setup" Menu tree Explanation • Fieldbus data PLC inputs in the fieldbus master • Fieldbus data PLC outputs in the fieldbus master • Analogue inputs in the fieldbus master from AS-i master 1 • Analogue outputs in the fieldbus master to AS-i master 1 •...
Page 21
Menu Main menu "Fieldbus Setup" Menu tree Explanation single or A-slaves on AS-i master 2 • Digital inputs in the fieldbus master from B-slaves on AS-i master 1 • Digital outputs in the fieldbus master to B-slaves on AS-i master 1 •...
Set-up Parameter setting of the controllere Set-up This chapter shows you how to get the Profibus interface started quickly. Parameter setting of the controller e Parameter setting of slaves in the controller e Set the parameters of the slaves in the AS-i controller e as described in the basic device manual.
Set-up Connect the controllere to the Profibus host Fieldbus Address ► Scroll to the requested address with [▲] / [▼]. ▲ ▼ Fieldbus Address ► Save the fieldbus address with [OK]. ▲ ▼ Fieldbus Baudrate > If there is communication with the fieldbus master: display of negotiated baudrate #### KBaud ►...
Page 25
Set-up Parameter setting of the Profibus host The data of the controllere or the connected AS-i systems to be transferred can be Programming defined (by indicating the length of up to 12 modules) in the programming software software for the Profibus-DP master system (host). You can select from these definitions for parameter setting in the host: Example for module 1: There is a choice of 5 entries:...
Set-up Parameter setting of the Profibus host Assign PLC addresses to the Profibus modules What are "Profibus modules"? These are entries in a parameter setting database of the programming software for the Profibus-DP master system (host). There you assign the individual "modules" to the virtual "locations". Locations are address areas for certain functions.
Page 27
Set-up Parameter setting of the Profibus host IEC address area Data flow Description AS-i – host module from digital outputs master2, slaves1A...31A, %QB2.1 %QB2.31 → – digital outputs master1, slaves1B...31B, %QB11.1 %QB11.31 → – digital outputs master2, slaves1B...31B, %QIB12.1 %QB12.31 →...
Set-up Parameter setting of the Profibus host Define Profibus-DP modules The text of the different options of the modules always starts with the module number (→ photo page 7-3, section "Programming software"). So all options in the module list of the hardware catalogue starting with "1:" are options of the first module in the device definition.
Page 29
Set-up Parameter setting of the Profibus host Module 1 Contents Binary inputs and outputs of single or A-slaves of AS-i master 1 Length 0...16-byte I/O (if not used: length = 0) Byte no. Bits 4..7 Bits 0..3 flags master 1 slave1(A) slave2(A) slave3(A)
Page 30
Set-up Parameter setting of the Profibus host Module 2 Contents Binary inputs and outputs of single or A-slaves of AS-i master 2 Length 0...16-byte I/O (if not used: length = 0) Byte no. Bits 4..7 Bits 0..3 flags master 2 slave1(A) slave2(A) slave3(A)
Page 31
Set-up Parameter setting of the Profibus host Module 3 Contents Binary inputs and outputs of B-slaves of the AS-i master 1 Length 0...16-byte I/O (if not used: length = 0) Byte no. Bits 4..7 Bits 0..3 reserved slave1B slave2B slave3B slave4B slave5B slave6B...
Page 32
Set-up Parameter setting of the Profibus host Module 4 Contents Binary inputs and outputs of B-slaves of AS-i master 2 Length 0...16-byte I/O (if not used: length = 0) Byte no. Bits 4..7 Bits 0..3 reserved slave1B slave2B slave3B slave4B slave5B slave6B slave7B...
Page 33
Set-up Parameter setting of the Profibus host Module 5 Contents Multiplexed analogue inputs of AS-i masters 1 and 2 Length 2-word consistent I/O (if not used: length = 0) DP-master request (only 1 word): Bit: SSSSS Legend: 2 bits: master no. 1..2 1 bit: slave type 0 = single or A-slave...
Page 34
Set-up Parameter setting of the Profibus host Module 6 Contents Multiplexed analogue outputs of AS-i masters 1 and 2 Length 2-word consistent I/O (if not used: length = 0) If analogue outputs are also triggered in module 11, the value written in module 6 is overwritten with the data of module 11.
Page 35
Set-up Parameter setting of the Profibus host Module 7 Contents Command channel → page 8-1, chapter 8.1 "DP-module 7: command channel" Length 4-byte consistent I/O (if not used: length = 0) Important: For the query read only the required bytes. Unused bytes can contain information of previous queries.
Page 36
Set-up Parameter setting of the Profibus host The commands are only executed if the command number (the first byte) changes. If the same command is to be executed with different data several times (e.g. read slave lists), the operating mode "continuous command" must first be selected for the data transmission.
Page 37
Set-up Parameter setting of the Profibus host Description Byte 2 Byte 3 Byte 4 > response: error counter MMXSSSSS ► read configuration error counter – – MM000000 > response: error counter MM000000 ► read AS-i cycle counter – – MM000000 current count value of the cycle >...
Page 38
Set-up Parameter setting of the Profibus host Module 8 Contents Field for the data transmission between the Profibus-DP master system and the PLC functions in the controller e Length 0...64-word inputs (if not used: length = 0) Module 9 Contents Field for the data transmission between the PLC functions in the controller e and the Profibus-DP master system Length...
Set-up Device-specific Profibus-DP parameters Device-specific Profibus-DP parameters With up to 100 bytes of the device-specific Profibus parameters the addresses of the analogue input slaves and analogue output slaves to be transferred in parallel can be defined and the parameters of the connected AS-i slaves can be set. Device-specific Profibus-DP parameters (example) Example: Byte...
Set-up Device-specific Profibus-DP parameters Definition in the GSD file The definitions in the GSD file enable easy access to the device parameters if this is supported by the configuration tool of the Profibus-DP master: Example Siemens step 7 Byte 37 Bit 5 = TRUE If the parameter "Extended Profibus Diag."...
Set-up Finish set-up Finish set-up System ► Define the system behaviour in the fieldbus configuration program, e.g. save behaviour watchdog etc. Save ► Save the configuration ► Transfer the configuration to the DP-master Start ► Start the DP-master > If there is communication on the fieldbus: The menu "Fieldbus Setup"...
Operation DP-module 7: command channel Command 7: project slave parameters The projected parameters can only be changed if the AS-i master operates in the projected mode. Activation → page 8-2 Request DP-master: MM = master no. (1…2) X = slave type (0…1) Byte 16#07 SSSSS = slave no.
Page 52
Operation DP-module 7: command channel Example Project slave parameter of slave 7B on AS-i master 1 Request DP-master: Byte 16#07 command (slave no. 7) 16#87 + (master no. 1 * 64) + (32, if B-slave) = 135 = 87 16#0F projected parameter not used *) Response controller e :...
Operation DP-module 7: command channel Command 8: read LAS (list of active slaves) The 2 feedback bytes can only give information about max. 16 slaves. Therefore Slave group the slaves are divided in 4 groups (→ table below). When querying the slave lists any slave number from the requested slave group is to be entered.
Page 54
Operation DP-module 7: command channel Example Read LAS (list of active slaves) of slave group 1 on master 1 Request DP-master: Byte 16#08 command (slave no. 2) → group 1 16#42 + (master no. 1 * 64) + (32, if B-slave) = 66 = 42 not used *)
Operation DP-module 7: command channel Command 9: read LDS (list of detected slaves) Slave group The 2 feedback bytes can only give information about max. 16 slaves. Therefore the slaves are divided in 4 groups (→ table page 8-11). Request DP-master: MM = master no.
Page 56
Operation DP-module 7: command channel Example Read LDS (list of detected slaves) of slave group 3 on AS-i master 2 Request DP-master: Byte 16#09 command → group 3 (slave no. 5) 16#A5 + (master no. 2 * 64) + (32, if B-slave) = 165 = A10 not used *)
Operation DP-module 7: command channel Command 10: read LPF (list of slaves with peripheral fault) Slave group The 2 feedback bytes can only give information about max. 16 slaves. Therefore the slaves are divided in 4 groups (→ table page 8-11). Request DP-master: MM = master no.
Page 58
Operation DP-module 7: command channel Example Read LPF (list of slaves with peripheral fault) of slave group 2 on AS-i master 1 Request DP-master: Byte 16#0A Command (slave no. 20) → group 2 16#54 + (master no. 1 * 64) + (32, if B-slave) = 84 = 54...
Operation DP-module 7: command channel Command 11: read LPS (list of projected slaves) Slave group The 2 feedback bytes can only give information about max. 16 slaves. Therefore the slaves are divided in 4 groups (→ table page 8-11). Request DP-master: MM = master no.
Page 60
Operation DP-module 7: command channel Example Read LPS (list of projected slaves) of slave group 2 on AS-i master 1 Request DP-master: Byte 16#0B command (slave no. 20) → group 2 16#54 + (master no. 1 * 64) + (32, if B-slave) = 84 = 54 not used *)
Operation DP-module 7: command channel Command 19: project all Request DP-master: MM = master no. (1…2) Byte 16#13 not used *) not used *) Response controller e : Byte 16#13 D6 = command code D7 = error code copy of the request →...
Page 70
Operation DP-module 7: command channel Example Project all on AS-i master 1 Request DP-master: Byte 16#13 command (slave no. 7) 16#40 + (master no. 1 * 64) + (32, if B-slave) = 64 = 40 not used *) not used * Response controller e : Byte 16#13...
Operation DP-module 7: command channel Command 21: save configuration in flash Request DP-master: MM = master no. (1…2) Byte 16#15 not used *) not used *) Response controller e : Byte 16#15 D6 = command code D7 = error code copy of the request →...
Operation DP-module 7: command channel Command 22: reset error counter Reset of the slave error counter and configuraton error counter Request DP-master: MM = master no. (1…2) X = slave type (0…1) Byte 16#16 SSSSS = slave no. (0…31) SSSSS not used *) not used *) Response controller e :...
Page 73
Operation DP-module 7: command channel Example Reset error counter of AS-i master 2 Request DP-master: Byte 16#16 command (slave no. 7) 16#80 + (master no. 2 * 64) + (32, if B-slave) = 128 = 80 not used *) not used *) Response controller e : Byte 16#16...
Operation DP-module 7: command channel Command 62: operating mode "continuous command“ If the "continuous" mode is active, the current command is transferred in every cycle. Important The continuous mode influences the behaviour of the controller e . The mode should only be used for read commands.
Page 76
Operation DP-module 7: command channel Example Activate the operating mode "continuous command" Request DP-master: Byte 16#3E command 16#01 changes the mode 16#01 commands are carried out cyclically Response controller e : Byte 16#3E copy of the request 16#47 copy of the request 16#01 copy of the request 16#01...
Operation DP-module 7: command channel Command 63: no operation command without function Request DP-master: Byte 16#3F not used *) not used *) not used *) Response controller e : D6 = command code Byte D7 = error code 16#3F → page 7-13, table below copy of the request copy of the request copy of the request...
Operation DP-module 12: extended command channel DP-module 12: extended command channel The extended command channel is used to exchange data between the AS-i controller e and the Profibus host (PLC). Note: In some controllers larger consistent data fields cannot be processed in the direct I/O address area.
Operation DP-module 12: extended command channel User-ID Note If a command is to be executed, the user-ID must be changed! Changing the command number does not start the execution. If a command is to be executed several times, the user-ID must be changed accordingly, e.g.
Operation DP-module 12: extended command channel Command 1: write parameter Request DP-master: 1st word 16#0901 command number 1 user-ID changes from 0 to 9 16#0000 reserved word 16#0024 slave address 4B word (for B-slaves add 20 to the address) 4th word 16#000F parameter value to be written Response controller e (gateway) in the normal case:...
Operation DP-module 12: extended command channel Command 4: write LPS Request DP-master: 1st word 16#0204 command number 4 user-ID changes to 2 16#0000 reserved word 16#001E slaves 1(A) to 5(A) *) are to be projected word 001E = 0000 0000 0001 1110 4th word 16#8000 slave 31(A) *) is to be projected...
Operation DP-module 12: extended command channel Command 5: change operating mode Request DP-master: 1st word 16#0105 command number 5 user-ID changes to 1 16#0000 reserved word 16#0000 activate protected mode word 16#0001 activate projected mode Response controller e (gateway) in the normal case: 1st word 16#0105 reflected command number 5...
Operation DP-module 12: extended command channel Command 6: readdress slave Request DP-master: 1st word 16#0806 command number 6 user-ID changes to 8 16#0000 reserved word 16#0029 slave address 9B word (for B-slaves add 20 to the address) 4th word 16#000B new slave address 11A Response controller e (gateway) in the normal case: 1st word...
Operation DP-module 12: extended command channel Command 7: change mode automatic addressing Request DP-master: 1st word 16#0407 command number 7 user-ID changes to 4 16#0000 reserved word 16#0000 automatic addressing deactivated word 16#0001 automatic addressing possible 4th word 16#000F parameter value to be written Response controller e (gateway): 1st word 16#0407...
Operation DP-module 12: extended command channel Command 21: read 7.4 ID character string Request DP-master: 1st word 16#0215 command number 15 (= 21 user-ID changes to 2 16#0300 slave address 3(A) word Response controller e (gateway): 1st word 16#0215 reflected command number 15 (=21 user-ID changes to 2 16#0604...
Page 87
Operation DP-module 12: extended command channel Structure 7.4 ID character string Word DT-start DT-count Mux-field E-type number of parameters to be read EDT read reserved diag reserved EDT write reserved number of parameters to be written device-specific information manufacturer identification device-specific information device-specific information 7…x...
Operation DP-module 12: extended command channel Command 35: write 7.4 parameter character string Request DP-master: 1st word 16#0923 command number 23 (= 35 user-ID changes to 9 16#0300 slave address 3 word 16#1AF4 1st word of the parameter character string of slave 3 word 4th word 16#5BB8...
Operation DP-module 12: extended command channel Command 52: read current configuration of slaves 1B...15B Request DP-master: 1st word 16#0434 command number 34 (= 52 user-ID changes to 4 Response controller e (gateway) in the normal case: 1st word 16#0434 reflected command number 34 (= 52 user-ID changes to 4 16#00FF...
Operation DP-module 12: extended command channel Command 58: read projected configuration of slaves 1B...15B Request DP-master: 1st word 16#043A command number 3A (= 58 user-ID changes to 4 Response controller e (gateway) in the normal case: 1st word 16#043A reflected command number 3A (= 58 user-ID changes to 4 16#00FF...
Operation AS-i diagnosis via Profibus-DP AS-i diagnosis via Profibus-DP Digital inputs The AS-i master status information in the first byte of the digital input data of the single/A-slaves contains master flags of the corresponding AS-i system: Byte 0 Bit 7 Bit 6 Bit 5 Bit 4...
Operation AS-i diagnosis via Profibus-DP Extended device-specific Profibus-DP diagnosis The extended device-specific Profibus-DP diagnosis is activated by setting the Profibus-DP parameter byte 37 bit 5 and contains the following status information: Byte Contents Diagnosis standard station status 1 diagnosis station status 2 station status 3 standard diagnosis station number DP-master...
Operation AS-i diagnosis via Profibus-DP Diagnostic master flags (byte 10 / byte 36) Format of the first byte of the diagnostic master flags, i.e. for byte 10 (AS-i master 1) and byte 36 (AS-i master 2): Bit 7 Bit 6 Bit 5 Bit 4 bit 3...
Operation Set the Profibus-DP address on the controllere Set the Profibus-DP address on the controller e The controller e provides 2 options to obtain the fieldbus data: • menu "Quick Setup" > "Fieldbus Setup" • or menu "Fieldbus Setup" The first variant is described below: ►...
Page 103
Operation Set the Profibus-DP address on the controllere Fieldbus Address > Display of the first enabled Profibus slave address 0...2 reserved 3…127 first to last Profibus slave address ► Press [▲] / [▼] to scroll to the requested slave address in the Profibus Fieldbus Address ►...
Operation Read fieldbus parameters Read fieldbus parameters Continued from the preceding chapter Fieldbus Baudrate > Continuous display of possible values: The controller e negotiates the suitable baudrate with 45,45 kBaud the fieldbus master > Display of determined values for the baudrate ►...
Page 105
Operation Read fieldbus parameters Digital outputs > Display that 16 bytes in the fieldbus master were Master 2 (A) configured for digital outputs in the fieldbus master of single or A-slaves on AS-i master 2 → pages 7-17onwards ► Press [OK] to scroll to the next display ►...
Page 106
Operation Read fieldbus parameters Digital outputs > Display that 16 bytes in the fieldbus master were Master 2 (B) configured for digital outputs in the fieldbus master of B-slaves on AS-i master 2 → pages 7-17onwards ► Press [OK] to scroll to the next display ►...
Page 107
Operation Read fieldbus parameters Fieldbus Data > Display that 8 bytes in the fieldbus master were PLC input configured for fieldbus data PLC inputs in the fieldbus master → pages 7-17onwards ► Press [OK] to scroll to the next display ►...
Page 108
Operation Read fieldbus parameters Analog input Master 2 > Data not used for Profibus ► Press [OK] to scroll to the next display ► [ESC] to return to screen 87 "Fieldbus Address" Analog output Master 2 > Data not used for Profibus ►...
Operation Store system parameters Digital Inputs Master 1 (A) > Repetition of the display series (→ step 8) ► Press [OK] to scroll to the next display ► [ESC] to return to screen 87 "Fieldbus Address" Fieldbus Address ► Press [ESC] twice to return to the start screen Store system parameters →...
Technical data Basic functions Technical data Basic functions → separate basic instructions of the device manual Interface Profibus-DP baudrate *) 9.6 KBaud to 12 MBaud connection SUB D 9 socket with LED for error indication * The fieldbus master and the controller e negotiate the baudrate at power on. The fieldbus master determines the value.
Error correction List of errors Error correction Basic functions→ separate basic instructions of the device manual 10.1 List of errors Errors Cause(s) Remedy ► ► ► ► ► ► 10-1...
Error correction Hardware errors, exception errors 10.2 Hardware errors, exception errors Exception errors STKOV: STKUN: Seg: Off: > The main processor has detected an exception error TFR: > All activities in process are interrupted ► Power off and on again the controller e If this error message is shown immediately after power on, the execution of the PLC program can be prevented: ►...
Page 115
Terms, abbreviations Terms, abbreviations 11.1 A/B-slave →Slave with an A or B being appended to its address number and which may therefore be present twice on the master. Address This is the "name" of the bus participant. All participants need a clearly defined address so that the signals can be exchanged without problem.
Page 116
Terms, abbreviations DHCP DHCP = Dynamic Host Configuration Protocol = protocol for the dynamic configuration by the → host DHCP is a protocol which offers the dynamic configuration of IP-addresses and thus coherent information. The protocol supports the further use of IP-addresses which are only available in a limited number by a centralised management of the address assignment.
Page 117
Terms, abbreviations Host The controller in the hierarchy above the AS-i master, e.g. a PLC or a processor. ID = Identifier Name to differentiate the devices / participants connected to a system. IP-address IP = Internet Protocol The IP-address is a number necessary to clearly identify an internet participant.
Page 118
Terms, abbreviations Modbus The Modbus protocol is a communication protocol based on a →master/slave architecture and was generated by Modicon in 1979 for communication with its PLCs. In industry Modbus is the de-facto standard. Modbus/TCP is based on →Ethernet-TCP/IP. Modbus/TCP ports the protocol defined for the serial interface to TCP.
Page 119
Terms, abbreviations Polling The controller master fetches the data from every participant in the system successively: 1. Master calls participant 1 2. Participant 1 replies with its current data (current values) 3. Master transfers more data (preset values) to participant 1, if needed 4.
Page 120
Terms, abbreviations RTS = Run Time System Run time systems are basic versions of applications. These minimum versions are supplied with certain products to meet the prerequisites for the execution of the actual product or to be able to look at or use results generated by this product on other processors: making available all routines required to execute a program in a programming language, e.g.
Page 121
Index Index nn-n The indication of the page where you can find some information about the keyword is written in normal characters. The indication of the page where the keyword is detailed is written in ii-i italic. A/B-slave ............11-1 ID ..............
Page 122
Index Status information remanent ............11-5 master ............8-57 Safety instructions ..........2-1 Store system SELV ..............11-6 parameters ............ 8-67 Set-up Finish ............. 7-19 stored diagnostic information......8-57 Single slave ..........7-8, 11-6 Symbols............... 1-1 slave Target ..............11-6 A ..............