IFM Ecomat 300 AC1307 Application guide

1
Basic device manual
AS-i controllere
AC1307 / AC1317
AC1345 / AC1346
AC1353 / AC1354
Firmware version RTS 2.x
Target from V.15
for CoDeSys® from version 2.3
7390563 / 01 12 / 2007

2
As on: 14 Dec 2007
© All rights reserved by ifm electronic gmbh.
No part of this manual may be reproduced and used without the con-
sent of ifm electronic gmbh.

3
Contents
1About this manual....................................................................................................................... 1-1
1.1 What do the symbols and formats stand for?..................................................................... 1-1
1.2 What devices are described in this manual?...................................................................... 1-2
1.3 How is this manual structured? .......................................................................................... 1-2
1.4 Overview: where is what?................................................................................................... 1-3
2Safety instructions...................................................................................................................... 2-1
2.1 General............................................................................................................................... 2-1
2.2 What previous knowledge is required? .............................................................................. 2-1
2.3 Warning notes on mounting................................................................................................ 2-2
2.4 Warning notes on installation ............................................................................................. 2-3
3System requirements.................................................................................................................. 3-1
3.1 Information concerning the device ..................................................................................... 3-1
3.2 Information concerning the software .................................................................................. 3-1
3.3 Required accessories ......................................................................................................... 3-1
4Functions and features............................................................................................................... 4-1
4.1 Intended use....................................................................................................................... 4-1
4.2 Prohibited use..................................................................................................................... 4-1
5Function ....................................................................................................................................... 5-1
5.1 Data management .............................................................................................................. 5-1
5.2 AS-i data introduction ......................................................................................................... 5-2
Field definitions for direct data access .......................................................................... 5-3
Data exchange between fieldbus and PLC ................................................................... 5-4
Configuration data (CDI) of the slaves .......................................................................... 5-4
Current configuration data (CDI) ................................................................................... 5-5
Projected configuration data (CDI)................................................................................ 5-6
Current parameter data ................................................................................................. 5-7
Reflected parameter data.............................................................................................. 5-8
Slave lists ...................................................................................................................... 5-9
Slave error counter...................................................................................................... 5-10
Configuration error counter ......................................................................................... 5-11
AS-i cycle counter........................................................................................................ 5-11
6Mounting ...................................................................................................................................... 6-1
7Electrical connection.................................................................................................................. 7-1
7.1 Terminals of the controllere................................................................................................ 7-2
7.2 The AS-i power supply ....................................................................................................... 7-3

4
7.3 Wiring and set-up of the slaves .......................................................................................... 7-4
Connecting the slaves ................................................................................................... 7-4
Power the controllereon again...................................................................................... 7-4
8Operating and display elements................................................................................................8-1
8.1 Diagnostic LEDs .................................................................................................................8-1
8.2 Display................................................................................................................................ 8-3
What is what in the text/graphics display? .................................................................... 8-3
Text/graphics display: switch language......................................................................... 8-5
Text/graphics display: contrast setting .......................................................................... 8-6
8.3 Key functions ...................................................................................................................... 8-6
9Menu............................................................................................................................................. 9-1
9.1 Menu overview ...................................................................................................................9-1
9.2 Main menu "Quick Setup"................................................................................................... 9-2
9.3 Main menu "PLC Setup"..................................................................................................... 9-3
9.4 Main menu "Slave Lists"..................................................................................................... 9-4
9.5 Main menu "Address Slave"............................................................................................... 9-5
9.6 Main menu "Diagnostics".................................................................................................... 9-6
9.7 Main menu "Master Setup"................................................................................................. 9-8
9.8 Main menu "Fieldbus Setup" ............................................................................................ 9-10
9.9 Main menu "Slave Info" .................................................................................................... 9-11
9.10 Main menu "Slave Setup"................................................................................................. 9-12
9.11 Main menu "System Setup".............................................................................................. 9-14
9.12 Main menu "System Info" ................................................................................................. 9-19
10 Operating modes....................................................................................................................... 10-1
10.1 Which operating modes are there for the AS-i master? ................................................... 10-1
10.2 How are the operating modes for the AS-i master changed? .......................................... 10-2
10.3 Which operating modes are there for the PLC in the controllere? ................................... 10-4
10.4 How are the operating modes for the PLC changed? ...................................................... 10-5
11 Set-up ......................................................................................................................................... 11-1
11.1 Setting the baud rate of the serial interface...................................................................... 11-1
Install target for the controllere.................................................................................... 11-3
Connecting the programming unit ............................................................................... 11-4
11.2 Configuration .................................................................................................................... 11-7
Permissible slave addresses....................................................................................... 11-7
Automatic individual addressing of slaves .................................................................. 11-8
Manual slave addressing........................................................................................... 11-11
End configuration....................................................................................................... 11-15
11.3 Changing slave parameter data ..................................................................................... 11-19

5
11.4 Password protection ....................................................................................................... 11-22
General...................................................................................................................... 11-22
Password levels......................................................................................................... 11-22
Password setting ....................................................................................................... 11-23
11.5 Factory default................................................................................................................ 11-25
11.6 Firmware update............................................................................................................. 11-27
11.7 Sets of characters........................................................................................................... 11-27
12 Programming............................................................................................................................. 12-1
12.1 Deviations from the indications in the programming manual ........................................... 12-1
12.2 Online changes in the PLC............................................................................................... 12-1
12.3 Boot project / source code................................................................................................ 12-2
Creating a boot project ................................................................................................ 12-2
Transmit source code from the PC to the controllere.................................................. 12-3
Transmit source code from the controllereto the PC.................................................. 12-4
12.4 Remanent PLC data (flag)................................................................................................ 12-5
12.5 System variables .............................................................................................................. 12-5
12.6 Overview PLC addresses................................................................................................. 12-6
Address structure ........................................................................................................ 12-6
Examples for addressing............................................................................................. 12-7
Further examples:........................................................................................................ 12-8
12.7 Access digital slave inputs/outputs via PLC..................................................................... 12-9
Access via addresses.................................................................................................. 12-9
Access via function calls ............................................................................................. 12-9
Indexed data access via table of pointers ................................................................. 12-10
12.8 Read and write slave parameters via PLC ..................................................................... 12-11
12.9 Read in AS-i slave lists via PLC ..................................................................................... 12-12
12.10 Configure AS-i slaves via PLC ....................................................................................... 12-13
12.11 Overview system blocks................................................................................................. 12-14
ifm_AsiUtils_010000.lib blocks.................................................................................. 12-14
13 Operation ................................................................................................................................... 13-1
13.1 Change PLC operating mode........................................................................................... 13-1
13.2 Information about the stored PLC program...................................................................... 13-1
13.3 Display of detected slaves (list)........................................................................................ 13-3
13.4 Display of projected slaves (list)....................................................................................... 13-5
13.5 Display of active slaves (list) ............................................................................................ 13-8
13.6 Display of slaves with peripheral fault (list) .................................................................... 13-11
13.7 Display slave with peripheral fault .................................................................................. 13-14
13.8 Find out an unknown slave address............................................................................... 13-15
13.9 Number of AS-i voltage failures on the AS-i master....................................................... 13-16
13.10 Number of configuration errors on the master................................................................ 13-18
13.11 Faulty AS-i messages on the master ............................................................................. 13-20

6
13.12 Number of disturbed messages on the master (of "Noisy Slaves") ............................... 13-23
13.13 Reset error counter......................................................................................................... 13-25
13.14 Display of the longest cycle time .................................................................................... 13-27
13.15 Read states of the safety monitor................................................................................... 13-29
13.16 Read states of safety slaves........................................................................................... 13-33
13.17 Set AS-i address(es) of the safety monitor(s) ................................................................ 13-36
13.18 Reset the AS-i address(es) of the safety monitor(s) ...................................................... 13-39
13.19 Set diagnostic behaviour of the safety monitor .............................................................. 13-42
13.20 Reset diagnostic states of safety devices ...................................................................... 13-45
13.21 Change operating mode of the AS-i master................................................................... 13-47
13.22 Display of slave data ...................................................................................................... 13-48
13.23 Set output values............................................................................................................ 13-51
Set digital output........................................................................................................ 13-54
Set analogue output .................................................................................................. 13-56
13.24 Display system parameters ............................................................................................ 13-59
14 Scale drawing............................................................................................................................ 14-1
15 Technical data ........................................................................................................................... 15-1
15.1 General data..................................................................................................................... 15-1
15.2 Data AS-i master .............................................................................................................. 15-1
15.3 Data serial interface RS-232C.......................................................................................... 15-2
15.4 Data PLC .......................................................................................................................... 15-2
16 Error messages......................................................................................................................... 16-1
16.1 System errors: error codes B00...B11 (boot error)........................................................... 16-2
16.2 Process error: error codes E10...E30 (AS-i system) ........................................................ 16-4
16.3 System errors: error codes F00...F10 (flash errors)......................................................... 16-7
16.4 System errors: error codes F21...F30 (FAT errors).......................................................... 16-9
16.5 System errors: error codes M01...M20 (AS-i master command errors) ......................... 16-11
16.6 System errors: error codes R01...R30 (RTS errors) ...................................................... 16-15
16.7 System errors: error codes T00...T11 (timeout errors)................................................... 16-21
16.8 List of errors.................................................................................................................... 16-23
16.9 How does the controllerereact in case of a fault? ......................................................... 16-24
16.10 Hardware errors, exception errors.................................................................................. 16-25
17 Maintenance, repair and disposal ...........................................................................................17-1
18 Terms and abbreviations.......................................................................................................... 18-1
Table of keywords............................................................................................................................ 18-2

0BAbout this manual
19BWhat do the symbols and formats stand for?
1-1
1 About this manual
In this chapter we will give you an overview of the following points:
•What do the symbols and formats stand for?
•What devices are described in this manual?
•How is this manual structured?
1.1 What do the symbols and formats stand for?
The following symbols or pictograms shall illustrate our remarks in this manual:
Danger, in general
Danger caused by electric current
Sections marked with the pictogram
"warning triangle" contain information for
your safety. Thoroughly read and com-
ply with these paragraphs.
Signal word: DANGER
Description of the consequences of this danger:
(death or serious irreversible injury is to be expected).
Signal word: WARNING
Description of the consequences of this danger:
(death or serious irreversible injury is possible).
Signal word: CAUTION
Description of the consequences of this danger:
(minor reversible injury possible)
Without warn-
ing symbol
Signal word: CAUTION
Description of the consequences of this danger:
(property damage is to be expected or possible).
i
Tip
The "i" in the square gives important information to help you handle the device or
this manual correctly.

0BAbout this manual
20BWhat devices are described in this manual?
1-2
Further symbols |A state to be prevented to avoid a danger is marked by the preceding "circle"
symbol.
►A request requiring an action is marked by the preceding symbol "triangle".
> The response of the product to your action is marked by the preceding symbol
"angle".
→This arrow in the continuous text stands for "see" and refers to a text where
you can find more details on the topic.
"Menu" Menu items are in "inverted commas".
For several menu items to be selected successively we write:
"Main menu" > "Menu 2nd level" > "Menu 3rd level" etc.
[Elements] Designations of keys or signal lamps such as [OK] or [PWR/COM] are written in
bold and in brackets.
1.2 What devices are described in this manual?
This manual presents the AS-i controllerefamily from ifm electronic gmbh
•with AS-i version 2.1 masters
•with a firmware version RTS 2.x
•with the target from 15
In the "User manual CoDeSys®V2.3" you will obtain more detailed information about the use of the
programming system "CoDeSys for Automation Alliance". This manual is available as a free download
on the ifm website:
→www.ifm.info > choose country/language > Service > Download > bus system AS-Interface
Description of the corresponding fieldbus or Ethernet programming interface
→separate instructions in addition to this device manual.
1.3 How is this manual structured?
This manual is a combination of different instruction types. It is for beginners and
also serves as a reference for advanced users.
How to use this manual:
•To find a certain subject straight away, please use the table of contents at the
beginning of this manual.
•Using the table of keywords at the end of the manual you can quickly find a
term you are looking for.
•At the beginning of a chapter a brief overview of the contents of the chapter is
given.

0BAbout this manual
22BOverview: where is what?
1-3
Headers You can find the title of the current chapter in bold in the header of each page.
Below is the current title of the second order.
Footers You can find the chapter-related number of the page in the footer of each page.
Selective read-
ing In the marginal column left you can find comments (marginalia) which make it
easier for you to find certain paragraphs.
Here you can also find pictograms and markings whose meaning is explained
below.
Abbreviations and technical terms
→Chapter 18 "Terms and abbreviations" at the end of the manual.
We reserve the right to make alterations which can result in a change of contents
of the manual. The current version can be found at ifm's website:
http://www.ifm-electronic.com/ifmgb/web/asi_down.htm
Nobody is perfect. If you suggest improvements of the manual, you will receive a
little gift from us to thank you.
© All rights reserved by ifm electronic gmbh. No part of this manual may be re-
produced and used without the consent of ifm electronic gmbh.
1.4 Overview: where is what?
metal housing IP20 device to unlock the unit from a rail
status LEDs of the
fieldbus interface
(option) text/graphics display
4 operating keys
option: fieldbus interface
(here: Ethernet)
status LEDs
terminals for the voltage supply 24 V, AS-i
interface(s) and protective earth option:
Ethernet programming interface 6-pole RJ11 socket of RS-232 C
as programming interface
Figure: Controllereoverview


1BSafety instructions
23BGeneral
2-1
2 Safety instructions
In this chapter you can find general safety instructions, such as:
•General rules
•Safety instructions for mounting and installation
•When are you allowed to use this device and when not?
2.1 General
No characteristics are warranted with the information, notes and examples pro-
vided in this manual. With the drawings, representations and examples given no
responsibility for the system is assumed and no application-specific particularities
are taken into account.
The manufacturer of the machine/equipment is responsible for the safety of the
machine/equipment.
Danger
Material damage or bodily injury when the notes in this manual are not adhered to!
ifm electronic assumes no liability for this.
►The acting person must have read and understood the safety instructions and
the corresponding chapters of this manual before performing any work on or
with this unit.
►The acting person must be authorised to work on the machine/equipment.
2.2 What previous knowledge is required?
This manual is intended for persons with knowledge of control technology and PLC
programming with IEC 61131-3 as well as the CoDeSys® software.
The manual is intended for persons authorised to mount, connect and set up the
controllereaccording to the EMC and low voltage directives. The controllers must
be installed and put into operation by a qualified electrician.
In case of malfunctions or uncertainties please contact the manufacturer:
→back of the manual.

1BSafety instructions
25BWarning notes on mounting
2-2
2.3 Warning notes on mounting
CAUTION
Moisture, dust, shocks, overheating
Damage or failure of the unit possible!
|Moisture may destroy the electronics.
►Use the unit in a condensation-free environment.
|Dust deposits obstruct the necessary circulation of air for heat dissipation.
►If possible, do not expose the unit to a dusty environment. If this cannot be
avoided, you must clean the unit correspondingly often. →chapter 17
"Maintenance, repair and disposal".
|Shocks and vibrations may damage the unit.
►Adhere to the technical specifications.
►The air circulation through the vents must not be hampered. Therefore, allow
about 30 mm of clear space above and below the unit when installing it.
According to the technical specifications (→"Technical data") you can operate the
unit in a wide operating temperature range. Because of the additional internal heat-
ing the housing walls can have high perceptible temperatures when touched in hot
environments. This is normal and no cause for a complaint.

1BSafety instructions
26BWarning notes on installation
2-3
2.4 Warning notes on installation
CAUTION
Short circuit, wrong connection
Malfunction of the machine/plant in which the unit is installed!
►Electrical installation tasks must be carried out by a qualified electrician.
►Disconnect power before connecting the controllereto avoid short circuits
during installation.
►Connect the terminals according to the terminal marking.
►The supply voltage (SELV) must not be connected to protective earth. There-
fore, never connect the minus terminal to the FE terminal or to another termi-
nal of the unit.
It must be ensured that the external voltage is generated and supplied according to
the criteria for safety extra-low voltage (SELV), since this voltage is provided with-
out further measures to supply the connected controller, the sensors and the actua-
tors.
The wiring of all signals concerning the SELV circuit of the unit must also meet the
SELV criteria (safety extra-low voltage, safe galvanic separation from other cir-
cuits).
If the supplied SELV voltage is externally grounded (SELV becomes PELV), the
responsibility lies with the user and the respective national installation regulations
must be complied with. All statements in this manual refer to the unit which is not
grounded with respect to the SELV voltage.
The connection terminals may only be supplied with the signals indicated in the
technical data and/or on the unit label and only the approved accessories of ifm
electronic may be connected.


2BSystem requirements
27BInformation concerning the device
3-1
3 System requirements
3.1 Information concerning the device
This manual presents the AS-i controllerefamily from ifm electronic gmbh
•with AS-i version 2.1 masters
•with a firmware from version RTS 2.2
•with the target from 15
3.2 Information concerning the software
The controllereoperates with CoDeSys®as from version 2.3.
In an additional manual "User Manual for PLC Programming with CoDeSys®2.3"
you will obtain more detailed information about the use of the programming system
"CoDeSys for Automation Alliance". This manual is available as a free download on
the ifm website:
→http://www.ifm-electronic.com/ifmgb/web/asi_down.htm
3.3 Required accessories
To run the system you need the following accessories in addition to a controllere
(not included in the scope of supply):
•a power supply for 24 V supply (e.g. order no. DN2011) and
•one AS-i power supply per AS-i master (e.g. order no. AC1216)
•as well as AS-i slaves.
Description of the corresponding fieldbus or Ethernet programming interface
→separate instructions in addition to this device manual.
If you want to use the PC for configuration and programming you also need:
•the software "CoDeSys for Automation Alliance" version 2.3 or higher
•a programming cable (e.g. article no. E70320)
•as well as a PC with serial interface.


3BFunctions and features
30BIntended use
4-1
4 Functions and features
CAUTION
Overload or wrong use of the unit
The unit and / or the associated machine/plant may be damaged or destroyed or
may malfunction if the limits of the "Technical data" for this unit are exceeded or if
the unit is used outside the specified "Functions and features".
►Use the unit only within the limits of the "Technical data"
→page 15-1, chapter 15 "Technical data".
►Use the unit only in accordance with the "Functions and features"
4.1 Intended use
You may use the unit for the following purposes (= functions and features):
•as a fieldbus gateway between the actuator-sensor interface network and a
higher-level controller (fieldbus master = host, e.g. PLC) via a fieldbus connec-
tion (option)
•as an independent controller for units via the actuator/sensor interface
with/without data exchange to a PC for visualisation of the machinery states
4.2 Prohibited use
The controlleremust NOT be used for the following purposes:
•outdoors
•in wet environments
•outside the limits of the technical data
→page 15-1, chapter 15 "Technical data"
Tampering with the unit can seriously affect the safety of operators and machinery.
This is not permitted and leads to an exclusion of liability and warranty.


4BFunction
32BData management
5-1
5 Function
5.1 Data management
The controllereconsists of different units:
•The central processing unit (CPU) ensures the data transfer between the
sub-systems. It manages the remanent flash memory and the volatile RAM
memory.
•The flash memory is now 1 mbyte large and stores non-volatilely...
•the system configuration including the AS-i configurations,
•the runtime system (RTS),
•the PLC program (must explicitly be stored there!),
•the remanent data.
•The operating system and the PLC programs run in the SRAM memory, now
also 1 mbyte large, after power-on of the unit.
•The AS-i masters each feature a separate microcontroller and communicate
according to the AS-i specification with the connected slave modules on the
AS-i bus.
•By using a text/graphics display in the controlleredetailed system diagnosis
is possible. The handling of the unit with the four keys is easy to learn.
→page 8-1, chapter "Operating and display elements"
The bilingual design of the menus and messages simplifies worldwide use of
this device family.
→page 8-5, chapter "Text/graphics display: switch language"
An intelligent message management generates priority-based diagnostic and
error messages and considerably supports the user during set-up and fault-
finding.
→chapter 16 "Error messages"
•The PLC is a real-time software core in the central unit. The core cyclically
polls the user program. This user program is created and tested by means of
the software CoDeSys®.
t
te
ex
xt
t
/
/
g
gr
ra
ap
ph
h-
-
i
ic
cs
s
d
di
is
sp
pl
la
ay
y
A
AS
S-
-i
i
m
ma
as
st
te
e
r
r
1
1
A
AS
S-
-i
i
m
ma
as
st
te
e
r
r
2
2
S
SR
R
A
A
M
M
m
me
em
mo
o
r
r
y
y
f
fl
la
as
sh
h
m
me
em
mo
o
r
r
y
y
f
fi
ie
el
ld
db
bu
us
s
i
in
nt
te
er
rf
fa
ac
ce
e
E
Et
th
he
er
rn
ne
et
t
p
pr
ro
og
gr
ra
am
mm
mi
in
ng
g
i
in
nt
te
er
rf
fa
ac
ce
e
R
RS
S-
-2
23
32
2C
C
p
pr
ro
og
gr
ra
am
mm
mi
in
ng
g
i
in
nt
te
er
rf
fa
ac
ce
e
C
Ce
en
nt
tr
ra
al
l
u
un
ni
it
t
P
PL
LC
C

4BFunction
33BAS-i data introduction
5-2
•The serial programming interface, (RS-232C with RJ11 socket) enables
convenient projection and programming of the AS-i masters and the PLC via a
personal computer with a transmission rate of up to 115 kBd.
•With the optional Ethernet programming interface, (10/100 MBd, twisted
pair), the unit can, in addition to even faster programming and diagnosis, also
be networked to other controlleredevices.
→separate supplementary device manual
•The optional fieldbus interface operates independently and exchanges data
with the central system via a "dual port RAM" interface or a DMA transfer.
→separate supplementary device manual
5.2 AS-i data introduction
The AS-i master and the AS-i slaves make a large amount of data available to the
user. The user can retrieve information, such as the status of the master and the
configuration data of the slaves. These data are summarised in several data fields
and can be accessed via standard IEC addresses (→also page 12-6, chapter
"Overview PLC addresses").
These addresses and their contents will be described in the following sections.
This manual suits for next models
5
Table of contents
Other IFM Controllers manuals

IFM
IFM AC1403 Application guide

IFM
IFM AC1433 Application guide

IFM
IFM EC2121 User guide

IFM
IFM ecomat100 CS0015 User manual

IFM
IFM DX2011 User manual

IFM
IFM CR720S User manual

IFM
IFM ecomat100 CR0053 User manual

IFM
IFM CR710S User manual

IFM
IFM Ecomat 300 AS-i Series Application guide

IFM
IFM AE1300 User manual

IFM
IFM Ecomat 200 S 200 User manual

IFM
IFM SmartPLC DataLine AC1423 Application guide

IFM
IFM Ecomat 100 CR0303 Application guide

IFM
IFM CR720S User manual

IFM
IFM ecomatController CR0708 User manual

IFM
IFM CR1200 User manual

IFM
IFM CR7132 User manual

IFM
IFM CabinetLine AE3100 User manual

IFM
IFM CR711S Owner's manual

IFM
IFM Ecomat 300 AC1355 Application guide