IFM Ecomat 300 AS-i Series Application guide

Basic device manual
AS-i controllere
A
1 AS-i master
2 AS-i masters
AC1029
AC1030
AC1318
AC1324
AC1327
AC1337
AC1331
AC1332
AC1333
AC1334
AC1355
AC1356
AC1357
AC1358
AC1365
AC1366
AC1391
AC1392
Master profile: M4
Firmware: from version RTS 3.0
Target: from V.15
for CoDeSys®from version 2.3
English
7390700_03_UK 2015-10-30

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
Contents
2
As in: 2015-10-30
© All rights reserved by ifm electronic gmbh.
No part of this manual may be reproduced and used without the consent
of ifm electronic gmbh.

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
Contents
3
Contents
1On this manual ................................................................................................................................9
1.1 What do the symbols and formats stand for?.........................................................................9
1.2 What devices are described in this manual?........................................................................10
1.3 How is this manual structured? ............................................................................................10
1.4 Overview: where is what?.....................................................................................................11
2Safety instructions........................................................................................................................12
2.1 General.................................................................................................................................12
2.2 What previous knowledge is required? ................................................................................12
2.3 Warnings mounting...............................................................................................................13
2.4 Warnings installation ............................................................................................................14
3System requirements....................................................................................................................15
3.1 Information concerning the device .......................................................................................15
3.2 Information concerning the software ....................................................................................15
3.3 Required accessories...........................................................................................................15
4Intended use ..................................................................................................................................16
4.1 Allowed use ..........................................................................................................................16
4.2 Prohibited use.......................................................................................................................16
5Function .........................................................................................................................................17
5.1 Data management................................................................................................................17
5.2 Introduction AS-i data...........................................................................................................18
5.2.1 Table of pointers......................................................................................................19
5.2.2 Field definitions for direct data access ....................................................................22
strMasterFlags –fields with master status information....................................................22
strSlaveCyc –fields with digital I//O data ........................................................................23
strFbusInCyc / strFbusOutCyc –fields with fieldbus I/O data..........................................24
strSlavePara –fields with current / projected / reflected parameter data........................24
strSlaveCDI / strSlavePrj –fields with current and projected configuration data (CDI) ...25
strSlaveList–fields with slave lists ..................................................................................26
strSlaveErrCtr –fields with slave telegram error counters ..............................................26
strAnalogSlave –fields with analoge I/O data.................................................................27
Command channel: description.......................................................................................29
Command channel: basic commands.............................................................................30
5.2.3 Configuration data (CDI) of the slaves (slave profiles)............................................36
Structure of the slave profile: S-[IO-Code].[ID-Code].[ext.ID-Code2]..............................36
Meaning of the IO code for digital slaves ........................................................................36
Meaning of the ID code (selection).................................................................................37
Description of the extended ID code 1............................................................................37
Description of the extended ID code 2............................................................................37
Valid combinations IO code / ID code / extended ID code 2 ...........................................38

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
Contents
4
Slave profile for slaves with combined transmission.......................................................41
Combined transmission: Use of analogue channels in the controlleredepending on the
slave profile.....................................................................................................................42
5.2.4 Data distribution of slaves in the M4 controllere(depending on the profile) ...........43
Data distribution of the single slave with profile S-0.1 in the M4 controllere....................43
Data distribution of the A slave with profile S-0.A.E in the M4 controllere.......................44
Data distribution of the B slave with profile S-0.A.E in the M4 controllere.......................45
Data distribution of the single slave with profile S-1.1 in the M4 controllere....................46
Data distribution of the single slave with profile S-3.1 in the M4 controllere....................47
Data distribution of the A slave with profile S-3.A in the M4 controllere..........................48
Data distribution of the B slave with profile S-3.A in the M4 controllere..........................49
Data distribution of the single slave with profile S-6.0.x in the M4 controllere(transpar.
mode)..............................................................................................................................50
Data distribution of the single slave with profile S-6.0.x in the M4 controllere(analogue
mode)..............................................................................................................................51
Data distribution of the single slave with profile S-7.3.4 in the M4 controllere.................52
Data distribution of the single slave with profile S-7.3.5 in the M4 controllere.................53
Data distribution of the single slave with profile S-7.3.6 in the M4 controllere.................54
Data distribution of the single slave with profile S-7.3.C in the M4 controllere................55
Data distribution of the single slave with profile S-7.3.D in the M4 controllere................56
Data distribution of the single slave with profile S-7.3.E in the M4 controllere................57
Data distribution of the single slave with profile S-7.4.0 in the M4 controllere.................58
Data distribution of the single slave with profile S-7.4.4 in the M4 controllere.................59
Data distribution of the single slave with profile S-7.4.5 in the M4 controllere.................60
Data distribution of the single slave with profile S-7.4.6 in the M4 controllere.................61
Data distribution of the single slave with profile S-7.4.C in the M4 controllere................62
Data distribution of the single slave with profile S-7.4.D in the M4 controllere................63
Data distribution of the single slave with profile S-7.4.E in the M4 controllere................64
Data distribution of the single slave with profile S-7.5.5 in the M4 controllere.................65
Data distribution of the A slave with profile S-7.A.5 in the M4 controllere.......................67
Data distribution of the B slave with profile S-7.A.5 in the M4 controllere.......................69
Data distribution of the A slave with profile S-7.A.7 in the M4 controllere.......................71
Data distribution of the B slave with profile S-7.A.7 in the M4 controllere.......................72
Data distribution of the A slave with profile S-7.A.8 in the M4 controllere.......................73
Data distribution of the B slave with profile S-7.A.8 in the M4 controllere.......................75
Data distribution of the A slave with profile S-7.A.9 in the M4 controllere.......................77
Data distribution of the B slave with profile S-7.A.9 in the M4 controllere.......................79
Data distribution of the A slave with profile S-7.A.A in the M4 controllere.......................81
Data distribution of the B slave with profile S-7.A.A in the M4 controllere.......................82
Data distribution of the A slave with profile S-B.A.5 in the M4 controllere.......................83
Data distribution of the B slave with profile S-B.A.5 in the M4 controllere.......................85
6Installation .....................................................................................................................................87

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
Contents
5
6.1 87
7Electrical connection....................................................................................................................88
7.1 Terminals on the controllere.................................................................................................89
7.2 The AS-i power supply .........................................................................................................90
7.3 Wiring and set-up of the slaves............................................................................................91
7.3.1 Connecting slaves ...................................................................................................91
7.3.2 Switching on the controllereagain...........................................................................91
8Operating and display elements..................................................................................................92
8.1 Diagnostic LEDs...................................................................................................................92
8.2 Display..................................................................................................................................94
8.2.1 What is what in the text/graphics display?...............................................................94
Normal menu screen.......................................................................................................94
Error screen ....................................................................................................................95
8.2.2 Text/graphics display: language selection...............................................................96
8.2.3 Text/graphics display: contrast setting ....................................................................97
8.3 Key functions........................................................................................................................97
9Menu...............................................................................................................................................98
9.1 Menu overview .....................................................................................................................98
9.2 Main menu [Quick Setup].....................................................................................................99
9.3 Main menu [PLC Setup] .....................................................................................................100
9.4 Main menu [Slave Lists] .....................................................................................................101
9.5 Main menu [slave address].................................................................................................102
9.6 Main menu [Diagnostics]....................................................................................................103
9.7 Main menu [Master Setup] .................................................................................................105
9.8 Main menu [Fieldbus Setup]...............................................................................................106
9.9 Main menu [Slave Info].......................................................................................................107
9.10 Main menu [Slave Setup] ...................................................................................................108
9.11 Main menu [System Setup] ................................................................................................110
9.12 Main menu [System Info]....................................................................................................114
10 Operating modes.........................................................................................................................115
10.1 Which operating modes are available for the AS-i master?...............................................115
10.2 How are the operating modes for the AS-i master selected?.............................................116
10.3 Which operating modes are available for the PLC in the controllere?...............................118
10.4 How are the operating modes for the PLC selected? ........................................................119
11 Set-up ...........................................................................................................................................121
11.1 Set the baud rate of the serial interface .............................................................................121
11.1.1 Install target for the controllere..............................................................................123
11.1.2 Connect the programming device..........................................................................124
RS-232C.......................................................................................................................124
Ethernet (option) ...........................................................................................................125

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
Contents
6
11.2 Configuration ......................................................................................................................126
11.2.1 Permissible slave addresses.................................................................................126
11.2.2 Automatic addressing of individual slaves.............................................................127
11.2.3 Manual slave addressing.......................................................................................130
11.2.4 Finish configuration................................................................................................134
Enter detected slaves in the configuration list...............................................................136
11.3 Change slave parameter data............................................................................................138
11.4 Password protection...........................................................................................................141
11.4.1 General..................................................................................................................141
11.4.2 Password levels.....................................................................................................141
11.4.3 Password setting ...................................................................................................142
11.5 Reset to factory settings.....................................................................................................144
11.6 Firmware update.................................................................................................................146
11.7 Character sets ....................................................................................................................146
12 Programming...............................................................................................................................147
12.1 Deviations from the indications in the programming manual .............................................147
12.2 Online changes in the PLC.................................................................................................147
12.3 Boot project / source code..................................................................................................148
12.3.1 Create boot project................................................................................................148
12.3.2 Transmit source code from the PC to the controllere............................................149
12.3.3 Transmit source code from the controllere to the PC............................................150
12.4 Remanent PLC data (flags)................................................................................................151
12.5 System variables ................................................................................................................151
12.6 Overview PLC addresses...................................................................................................152
12.6.1 Example pushbutton module.................................................................................152
12.6.2 IEC addresses in the PLC of the controllere.........................................................153
For the digital slave inputs and outputs.........................................................................153
For the analogue slave inputs and outputs ...................................................................153
For flags........................................................................................................................155
For configuration data (slaves 0…31B)........................................................................156
For parameter data (slaves 1(A)…31B) .......................................................................158
For the slave list LAS (list of active slaves)...................................................................159
For the slave list LDS (list of detected slaves)...............................................................159
For the slave list LPF (list of slaves with periphery faults).............................................159
For the slave list LPS (list of projected slaves)..............................................................160
For the slave telegram error counters...........................................................................161
For the configuration error counter................................................................................162
For the AS-i cycle counter.............................................................................................162
For the master flags......................................................................................................163
For the fieldbus data from/to the PLC of the controllere................................................164
For the extended data from/to the PLC of the controllere.............................................164

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
Contents
7
12.6.3 Examples for addressing.......................................................................................165
12.6.4 Further examples...................................................................................................166
12.7 Access digital slave inputs/outputs via PLC.......................................................................167
12.7.1 Access via addresses............................................................................................167
12.7.2 Access via function calls........................................................................................167
12.7.3 Indexed data access via the table of pointers .......................................................168
12.8 Read and write slave parameters via PLC.........................................................................169
12.9 Read in AS-i slave lists via PLC.........................................................................................170
12.10 Configure AS-i slaves via PLC ...........................................................................................171
12.11 Overview system blocks.....................................................................................................172
12.11.1 ifm_Asi_Utils_xxxxxx.lib blocks .............................................................................172
13 Operation .....................................................................................................................................176
13.1 Selection of the PLC operating mode.................................................................................176
13.2 Information about the stored PLC program........................................................................176
13.3 Display of detected slaves (list)..........................................................................................178
13.4 Display of projected slaves (list).........................................................................................180
13.5 Display of active slaves (list) ..............................................................................................183
13.6 Display of slaves with periphery fault (list) .........................................................................186
13.7 Display of slave with periphery fault...................................................................................189
13.8 Detection of an unknown slave address.............................................................................190
13.9 Number of AS-i voltage failures on the AS-i master...........................................................191
13.10 Number of the configuration errors on the master .............................................................193
13.11 AS-i telegram errors on the master ....................................................................................195
13.12 Number of disturbed telegrams on the master (from noisy slaves)....................................198
13.13 Reset error counter.............................................................................................................200
13.14 Display of the longest cycle time........................................................................................202
13.15 Read states of the safety monitor.......................................................................................204
13.16 Read states of safety slaves ..............................................................................................207
13.17 Set AS-i address(es) of the safety monitor(s) ....................................................................210
13.18 Reset the AS-i address(es) of the safety monitor(s) ..........................................................213
13.19 Set the diagnostic characteristics of the safety monitor.....................................................216
13.20 Reset diagnostic states of safety devices ..........................................................................219
13.21 Change operating mode of the AS-i master.......................................................................221
13.22 Display of slave data ..........................................................................................................222
13.23 Set output values................................................................................................................226
13.23.1 Set digital output....................................................................................................229
13.23.2 Set analogue output...............................................................................................231
13.24 Display system parameters................................................................................................233
14 Scale drawing ..............................................................................................................................235
14.1 235

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
Contents
8
15 Technical data .............................................................................................................................236
15.1 General data.......................................................................................................................236
15.2 Data AS-i master ................................................................................................................236
15.3 Data serial interface RS-232C............................................................................................237
15.4 Data PLC............................................................................................................................237
16 Error description .........................................................................................................................239
16.1 Boot errors: error codes B00...B11.....................................................................................240
16.2 AS-I system errors: error codes E10...E32.........................................................................242
16.3 FAT errors: Error codes F01...F10 .....................................................................................246
16.4 Flash errors: error codes F20...F30....................................................................................248
16.5 Information errors: error code I01.......................................................................................250
16.6 AS-i master command errors: error codes M01...M44.......................................................251
16.7 RTS errors: error codes R01...R46 ....................................................................................256
16.8 Timeout errors: error codes T00...T13 ...............................................................................264
16.9 List of errors........................................................................................................................267
16.10 How does the controllerereact in case of an error? ..........................................................269
16.11 Hardware error, exception error .........................................................................................270
17 Maintenance, repair and disposal .............................................................................................271
18 Terms and abbreviations............................................................................................................272
19 Table of keywords................................................................................................................. 19-277

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
On this manual What do the symbols and formats stand for?
9
1 On this manual
In this chapter you will find 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 depict our notes in this manual:
DANGER
Death or serious irreversible injuries are to be expected.
WARNING
Death or serious irreversible injuries may result.
CAUTION
Slight reversible injuries may result.
NOTICE
Property damage is to be expected or possible.
NOTE
The "i" in the square gives important information to help you handle the product or this manual
correctly.
►…
Request for action
> …
Reaction of device or software
→ …
Stands for "see"
abc
Cross-reference (link)
[…]
[Designation] ] of key, signalling lamp, button, menu item ....
For several menu items to be selected consecutively we write:
[1st step] > [2nd step] > [3rd step]
ABC
DESIGNATION of parameters (inputs, outputs, flags, function blocks)
Abc
Names of files are written in Monospace font.

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
On this manual What devices are described in this manual?
10
1.2 What devices are described in this manual?
This manual describes the AS-i controllerefamily of ifm electronic gmbh
with master profile M4
with AS-i version 3.0 masters
with a firmware from version RTS 2.2
with the target from V.15.
In the "programming manual CoDeSys®2.3" more information about the use of the programming
system "CoDeSys for Automation Alliance" is given. This manual can be downloaded free of charge
from ifm's website at:
→www.ifm.com > Select country/language > [Service] > [Download] > [Bus system AS-Interface]
Description of the corresponding fieldbus or Ethernet programming interface
→separate supplementary manual for 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 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.
With the index at the end of the manual you can quickly find the term you are looking for.
At the beginning of a chapter we will give you a brief overview of its contents.
In the header of each page you can find the title of the current chapter in bold. Below is the
current title of the second order.
In the footer of each page you can find the chapter-related number of the page.
Abbreviations and technical terms
→chapter Terms and abbreviations, page 272.
We reserve the right to make alterations which can result in a change of contents of the manual. You
can find the current version on ifm's website at:
→www.ifm.com > Select country/language > [Service] > [Download] > [Bus system AS-Interface]
Nobody is perfect. Send us your suggestions for improvements to this manual and 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 reproduced and used
without the consent of ifm electronic gmbh.

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
On this manual Overview: where is what?
11
1.4 Overview: where is what?
metal housing IP20
Key to unlock the device from a rail
Status LEDs of the fieldbus
interface
(option)
Text/graphics display
Option: fieldbus interface
(here: Ethernet)
4 operating keys
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-232C
as programming interface
Figure: overview controllere

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
Safety instructions General
12
2 Safety instructions
In this chapter you will 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 provided in this manual.
The drawings, representations and examples imply no responsibility for the system and no application-
specific particularities.
The manufacturer of the machine/equipment is responsible for ensuring the safety of the
machine/equipment.
WARNING
Property damage or bodily injury possible 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 device.
►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 install, 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

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
Safety instructions Warnings mounting
13
2.3 Warnings mounting
NOTICE
Danger by moisture, dust, shocks, overheating.
Damage or failure of the device possible!
Moisture can destroy the electronics.
►Use the device in a condensation-free environment.
Dust deposits prevent the necessary air circulation for heat dissipation.
►If possible, do not expose the device to a dusty environment. If this cannot be avoided, you must
clean the device frequently.
→ page 271, chapter Maintenance, repair and disposal.
Shocks and vibrations can damage the unit.
►Adhere to the technical specifications.
►The air circulation through the vents must not be hampered. Allow about 30 mm of clear space
above and below the device when installing it.
According to the technical specifications (→"Technical data") you can operate the device in a wide
operating temperature range. Because of the additional internal heating the housing walls can have
higher perceptible temperatures when touched in hot environments. This is normal and no cause for a
complaint.

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
Safety instructions Warnings installation
14
2.4 Warnings installation
NOTICE
Short circuit, incorrect wiring possible.
Consequence: Malfunction of the machine/plant in which the device is installed!
►The unit must be installed and connected 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. Therefore never connect
the minus terminal to the FE terminal or to another terminal of the device.
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 without further measures to supply the
connected controller, the sensors and the actuators.
The wiring of all signals in connection with the SELV circuit of the device must also comply with the
SELV criteria (safety extra-low voltage, safe electrical separation from other electric circuits).
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
these operating instructions refer to the device the SELV voltage of which is not grounded.
The connection terminals may only be supplied with the signals indicated in the technical data or on
the device label or only the approved accessories of ifm electronic may be connected.

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
System requirements Information concerning the device
15
3 System requirements
3.1 Information concerning the device
This manual describes the AS-i controllerefamily of ifm electronic gmbh
with master profile M4
with AS-i version 3.0 masters
with a firmware from version RTS 2.2
with the target from V.15.
3.2 Information concerning the software
The controllereoperates with CoDeSys®as from version 2.3. The minimum system requirements of
this software are as follows:
CPU Pentium II, 500 MHz
working memory (RAM) 128 MB, recommended: 256 MB
free hard disc memory (HD) 100 MB
operating systems Windows®98 / NT4.0 / 2000 / XP
Windows®Vista is not yet supported!
CD-ROM drive
In the "programming manual CoDeSys®2.3" more information about the use of the programming
system "CoDeSys for Automation Alliance" is given. This manual can be downloaded free of charge
from ifm's website at:
→www.ifm.com > Select country/language > [Service] > [Download] > [Bus system AS-Interface]
3.3 Required accessories
In addition to a controllereyou need the following accessories (not supplied) to run the system:
24 V power supply (e.g. order no. DN2011) and
one AS-i power supply per AS-i master (e.g. article no. AC1216)
as well as AS-i slaves.
Description of the corresponding fieldbus or the Ethernet programming interface
→separate supplementary manual for 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.

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
Intended use Allowed use
16
4 Intended use
NOTICE
Danger when device is overloaded or incorrectly used.
The device and / or the related machine/equipment can be damaged or destroyed or function
incorrectly when the limit values of the technical data for this device are exceeded or the device is
not used as intended.
►Use the device only within the specified technical data
→ page 236, chapter Technical data.
►Use the device only as intended.
4.1 Allowed use
You may use the device for the following purposes (= intended use):
as fieldbus gateway between the actuator/sensor interface network and a higher level controller
(fieldbus master = host, e.g. PLC) via a fieldbus connection (optional)
as an independent controller for devices via the actuator/sensor interface with/without data
exchange to a PC for visualisation of the plant states
4.2 Prohibited use
The controlleremust NOT be used for the following applications:
outdoors
in wet environments
outside the specified technical data
→ page 236, chapter Technical data
Tampering with the device can seriously affect the safety of operators and machinery. This is not
permitted and leads to an exclusion of liability and warranty.

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
Function Data management
17
5 Function
5.1 Data management
The controllereconsists of different units:
The CPU (central processing unit) ensures the data transfer between the subsystems. It
manages the remanent flash memory and the volatile RAM memory.
The flash memory is 1 Mbyte large and stores non volatilely...
-the system configuration including the AS-i configurations,
-the runtime system (RTS),
-the PLC program (must be explicitly 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 device.
The AS-i masters feature a separate microcontroller and communicate with the connected slave
modules on the AS-i bus according to the AS-i specification.
A text/graphics display in the controllere enables a detailed system diagnosis. Operating the
device with the four keys is easy to learn.
→ page 92, chapter Operating and display elements
-The bilingual structure of the menus and messages simplifies worldwide use of this device
family. → page 96, chapter Text/graphics display: language selection
-An intelligent message management generates priority-controlled diagnostic and error
messages and considerably supports the user during set-up and fault-finding. → page 239,
chapter Error description
The PLC is a real-time software core in the central unit. The core cyclically polls the user
program. This user program is created using the software CoDeSys® and tested.
t
te
ex
xt
t/
/g
gr
ra
ap
ph
hi
ic
cs
s
d
di
is
sp
pl
la
ay
y
A
AS
S-
-i
i
m
ma
as
st
te
er
r
1
1
A
AS
S-
-i
i
m
ma
as
st
te
er
r
2
2
(
(o
op
pt
ti
io
on
na
al
l)
)
S
SR
RA
AM
M
m
me
em
mo
or
ry
y
f
fl
la
as
sh
h
m
me
em
mo
or
ry
y
f
fi
ie
el
ld
db
bu
us
s
i
in
nt
te
er
rf
fa
ac
ce
e
(
(o
op
pt
ti
io
on
na
al
l)
)
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
(
(o
op
pt
ti
io
on
na
al
l)
)
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
CP
PU
U
P
PL
LC
C

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
Function Introduction AS-i data
18
The serial programming interface (RS-232C with RJ11 socket) enables easy projection and
programming of the AS-i masters and the PLC via a personal computer with a transmission rate of
up to 115 kBd.
→ page 121, chapter Set the baud rate of the serial interface
→ page 124, chapter RS-232C
With the optional Ethernet programming interface, (10/100 MBd, twisted pair), the device can,
in addition to even faster programming and diagnosis, also be networked to other controllere
devices.
→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 Introduction AS-i data
The AS-i master and the AS-i slaves make a large amount of data available to the user. The user can
request information, such as the status of the master and the configuration data of the slaves. This
data is summarised in several data fields and can be accessed via standard IEC addresses.
→ page 152, chapter Overview PLC addresses
The data structures and their contents are described in the following sections.

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
Function Introduction AS-i data
19
5.2.1 Table of pointers
The AS-i data of the controllereis summarised in several data fields which are described in the
following sections. Each of these fields can be addressed via a 32-bit pointer and can be read or
written by the user program. The pointer list has the basic address FFB00h.
No.
Address
offset
Points to data type
Name
Length
in words
Comment
0
0h
strCmdChannel
→ page 29
pstM1_CmdResp
18
command channel inputs
1
4h
pstM1_CmdOut
18
command channel outputs
2
8h
strMasterFlags
→ page 22
pstM1_StateFlags
32
master 1 status flags
3
Ch
strSlavePara
→ page 24
pstM1_SvPRJPara
16
image of the projected slave
parameters,
copy from _PCO_PRJ_PARA
4…8
10h
…
20h
reserved
reserved
0
reserved
9
24h
strSlaveCyc
→ page 23
pstM1_SvInCyc
32
digital slave inputs
10
28h
strFbusInCyc
→ page 24
pstM1_FbInCyc
16
digital fieldbus inputs
11
2Ch
strAnalogSlave
→ page 27
pstM1_AngInPar
155
analogue slave inputs
12
30h
UINT16_T
pwM1_AngInSer
2
analogue slave inputs,
serial access
13
34h
strSlaveCDI
→ page 25
pstM1_SvCDI0_31
32
slaves 0…31(A),
current CDI data
14
38h
pstM1_SvCDI1b_31b
32
slaves 1B...31B,
current CDI data
15
3Ch
strSlavePara
→ page 24
pstM1_SvParaImage
16
image of slave parameters
16
40h
strSlaveList
→ page 26
pstM1_LiLAS
4
slave list LAS
17
44h
pstM1_LiLDS
4
slave list LDS
18
48h
pstM1_LiLPF
4
slave list LPF
19
4Ch
pstM1_LiLPS
4
slave list LPS
20
50h
strSlavePrj
→ page 25
pstM1_SvPRJ0_31
32
slaves 0…31(A), image of
projected CDI data
21
54h
pstM1_SvPRJ1b_31b
32
slaves 1B...31B, image of
projected CDI data
22
58h
strSlavePara
→ page 24
pstM1_SvRefPara
16
reflected slave parameters
23
5Ch
strSlaveErrCtr
→ page 26
pstM1_SvERRCtr1_62
62
transmission error counter / slave
24
60h
UINT16_T
pwM1_CFG_ERR_CTR
1
configuration error counter / master
25
64h
pwM1_ASI_CYL_CTR
1
AS-i cycle counter
26
68h
strSlaveCyc
→ page 23
pstM1_SvOutCyc
32
digital slave outputs
27
6Ch
strFbusOutCyc
→ page 24
pstM1_FbOutCyc
16
digital fieldbus outputs
28
70h
strAnalogSlave
→ page 27
pstM1_AngOutPar
155
analogue slave outputs
29
74h
UINT16_T
pwM1_AngOutSer
2
analogue slave outputs, serial
access
30
78h
strSlavePrj
→ page 25
pstM1_OutSvPRJ0_31
32
slaves 0...31(A), output of
projected CDI data
31
7Ch
pstM1_OutSvPRJ1b_31b
32
slaves 1B...31B, output of
projected CDI data
32
80h
strSlavePara
→ page 24
pstM1_OutPrjSvPara
16
output of projected slave
parameters

ifm Basic Device Manual AS-i ControllerE M4 Target V15 2015-10-30
Function Introduction AS-i data
20
No.
Address
offset
Points to data type
Name
Length
in words
Comment
33
84h
strCmdChanne
→ page l29
pst3S_M1_CmdResp
1
3S command channel inputs
34
88h
pst3S_M1_CmdOut
1
3S command channel outputs
35
...
39
8Ch
...
9Ch
reserved
reserved
0
reserved
40
A0h
strCmdChannel
→ page 29
pstM2_CmdResp
18
command channel inputs
41
A4h
pstM2_CmdOut
18
command channel outputs
42
A8h
strMasterFlags
→ page 22
pstM2_StateFlags
32
master 2 status flags
43
ACh
strSlavePara
→ page 24
pstM2_SvPRJPara
16
image of projected slave
parameters,
copy from _PCO_PRJ_PARA
44
…
48
B0h
…
C0h
reserved
reserved
0
reserved
49
C4h
strSlaveCyc
→ page 23
pstM2_SvInCyc
32
digital slave inputs
50
C8h
strFbusInCyc
→ page 24
pstM2_FbInCyc
16
digital fieldbus inputs
51
CCh
strAnalogSlave
→ page 27
pstM2_AngInPar
155
analogue slave inputs
52
D0h
UINT16_T
pwM2_AngInSer
2
analogue slave inputs, serial
access
53
D4h
strSlaveCDI
→ page 25
pstM2_SvCDI0_31
32
slaves 0...31(A), current CDI data
54
D8h
pstM2_SvCDI1b_31b
32
slaves 1B...31B, current CDI data
55
DCh
strSlavePara
→ page 24
pstM2_SvParaImage
16
image of slave parameters
56
E0h
strSlaveList
→ page 26
pstM2_LiLAS
4
slave list LAS
57
E4h
pstM2_LiLDS
4
slave list LDS
58
E8h
pstM2_LiLPF
4
slave list LPF
59
ECh
pstM2_LiLPS
4
slave list LPS
60
F0h
strSlavePrj
→ page 25
pstM2_SvPRJ0_31
32
slaves 0...31(A), image of
projected CDI data
61
F4h
pstM2_SvPRJ1b_31b
32
slaves 1B...31B, image of
projected CDI data
62
F8h
strSlavePara
→ page 24
pstM2_SvRefPara
16
reflected slave parameters
63
FCh
strSlaveErrCtr
→ page 26
pstM2_SvERRCtr1_62
62
transmission error counter / slave
64
100h
UINT16_T
pwM2_CFG_ERR_CTR
1
configuration error counter / master
65
104h
pwM2_ASI_CYL_CTR
1
AS-i cycle counter
66
108h
strSlaveCyc
→ page 23
pstM2_SvOutCyc
32
digital slave outputs
67
10Ch
strFbusOutCyc
→ page 24
pstM2_FbOutCyc
16
digital fieldbus outputs
68
110h
strAnalogSlave
→ page 27
pstM2_AngOutPar
155
analogue slave outputs
69
114h
UINT16_T
pwM2_AngOutSer
2
analogue slave outputs, serial
access
70
118h
strSlavePrj
→ page 25
pstM2_OutSvPRJ0_31
32
slaves 0...31(A), output of
projected CDI data
71
11Ch
pstM2_OutSvPRJ1b_31b
32
slaves 1B...31B, output of
projected CDI data
72
120h
strSlavePara
→ page 24
pstM2_OutPrjSvPara
16
output of projected slave
parameters
73
124h
strCmdChannel
→ page 29
pst3S_M2_CmdResp
1
3S command channel inputs
74
128h
pst3S_M2_CmdOut
1
3S command channel outputs
This manual suits for next models
18
Table of contents
Other IFM Controllers manuals

IFM
IFM ecomatController CR0708 User manual

IFM
IFM EC2121 User guide

IFM
IFM Ecomat 300 AC1307 Application guide

IFM
IFM ecomatController User manual

IFM
IFM Ecomat 200 S 200 User manual

IFM
IFM CR711S Owner's manual

IFM
IFM AE1300 User manual

IFM
IFM AC1403 Application guide

IFM
IFM CR710S User manual

IFM
IFM Ecomat 100 Mobile CR0301 Owner's manual

IFM
IFM Ecomat 100 CR0303 Application guide

IFM
IFM CR7132 User manual

IFM
IFM AC1433 Application guide

IFM
IFM ecomat100 CS0015 User manual

IFM
IFM DX2011 User manual

IFM
IFM CR7032 User manual

IFM
IFM SmartPLC DataLine AC1423 Application guide

IFM
IFM ecomat 100 R 360 Series User guide

IFM
IFM CR720S User manual

IFM
IFM CR710S User manual