metal housing IP20 device to unlock the unit from a rail
status LEDs ofthe
fieldbus interface
(option)
option: fieldbus interface
(here: Ethernet)
terminals for the voltage supply 24 V, AS-i
interface(s) and FE wire
photo: overview of controllere devices
option:Ethernet programming interface
text/graphics display
4 pushbuttons
status LEDs
6-pole RJ11 socketof RS-232 C
as programming interface
1-3
Safety instructions
General
2 Safety instructions
In this chapter you can find general safety instructions such as
• general rules
• required previous knowledge
• safety instructions for mounting and installation
• When are you allowed to use this device and when not?
2.1 General
→ separate basic instructions of the device manual
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 the safety of the
machine/equipment.
Danger
Property 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 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 mount, connect and set up the
controllere according 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.
2.3 Functions and features
→ basic instructions of the device manual
2-1
System requirements
Information concerning the device
3 System requirements
3.1 Information concerning the device
→ separate basic instructions of the device manual
3.2 Information concerning the software
→ separate basic instructions of the device manual
3.3 Required accessories
Basic functions → separate basic instructions of the device manual
For configuration and programming you also need:
•the software "CoDeSys for Automation Alliance™" version 2.3 or higher
(→ CD)
•In case of direct connection of the controllere to a PC with Ethernet interface
(LAN):
a cross-over CAT5 Ethernet patch cable with RJ45 plug on both sides:
2 m article no. EC2080
5 m article no. E30112
•In case of connection of the controllere to a PC with Ethernet interface (LAN)
via a hub or switch:
a common CAT5 Ethernet patch cable with RJ45 plug on both sides
•In case of direct connection of the controllere to a PC with serial interface:
programming cable article no. E70320
3-1
Getting started
4 Getting started
4.1
Connection ► Connect the functional earth
► Connect the yellow AS-i cable for every master
► Connect the 24 V supply
Set up the AS-i
master
Set up ProfibusDP
► Connect the Profibus cable to the fieldbus master
► Connect the addressed AS-i slaves to the yellow AS-i cable
► Power on
► If correctly addressed slaves are connected:
controllere menu: "Config All (→basic manual)
► If no slave is connected:
controllere menu "Easy Startup“ (→ basic manual)
► Controllere menu "Fieldbus Setup": set the Profibus address
(→ page
7-1, chapter "Set the parameters of the fieldbus interface in the
controllere")
► Copy the GSD file from the ifm CD (folder "gateway") to the suitable directory
of the corresponding fieldbus configuration program
► Define the I/O areas and the system behaviour in the fieldbus configuration
program
► Save the configuration
► Transfer the configuration to the DP-master
► Start the DP-master
4-1
Function
Data management
5 Function
Basic functions → separate basic instructions of the device manual
Ethernet programming interface → separate complementary device manual
5.1 Data management
The controllere consists of different units:
text/graphics
display
AS-i master 1
fieldbus
interface
AS-i master 2
CPU
PLC
Ethernet
programming interface
SRAM memory
RS-232C
flash memory
programming interface
This manual exclusively describes the following subject:
• The optional fieldbus interface operates independently and exchanges data
with the central system via a "Dual port RAM" interface or a DMA transfer.
For the AS-i controllers with Profibus interface the Profibus-DP data management
is handled in the operating system (firmware) of the device. A special driver in the
PLC user program in the controllere is not required. In the mode Run/Stop the
digital and analogue output data is not transferred to the outputs of the AS-i slaves.
Therefore this data must be recopied in the PLC user program of the controller
.
e
More information concerning the addresses and assigment to the Profibus modules
is provided in → chapter
7 "Set-up".
5-1
Menu
Main menu "Quick Setup"
6 Menu
i
6.1 Main menu "Quick Setup"
Note
In this manual the menu text is always in English.
Basic functions → separate basic instructions of the device manual
Quick setting of the AS-i and fieldbus parameters, reading of the parameter data
(password level 1 required).
Details → page
Menu tree Explanation
8-62, chapter "Read fieldbus parameters"
Quick Setup
Fieldbus Setup
> Display of the current fieldbus address
► Change the fieldbus addresss using
the pushbuttons [▲] / [▼]
► After pressing [OK]:
> The controllere negotiates the quickest
baudrate with the fieldbus master
► Always after pressing [OK]:
> Display of the data saved in the
fieldbus master via the data packages
for communication with the AS-i
controllere:
•Digital inputs in the fieldbus master
from single or A-slaves on AS-i master
1
•Digital outputs in the fieldbus master to
single or A-slaves on AS-i master 1
•Digital inputs in the fieldbus master
from single or A-slaves on AS-i
master 2
•Digital outputs in the fieldbus master to
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
•Digital inputs in the fieldbus master
from B-slaves on AS-i master 2
•Digital outputs in the fieldbus master to
B-slaves on AS-i master 2
•Analogue multiplex inputs in the
fieldbus master
•Analogue multiplex outputs in the
fieldbus master
•Fieldbus data command channel
6-1
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
•Analogue inputs in the fieldbus master
from AS-i master 2
•Analogue outputs in the fieldbus
master to AS-i master 2
• Fieldbus data diagnosis
• Fieldbus master command channel
• Digital inputs in the fieldbus master
from single or A-slaves on AS-i master
1
(cycle starts again)
6.2 Main menu "Fieldbus Setup"
Setting of the fieldbus parameters, reading of the parameter data (password level 1
required).
Details → page
Menu tree Explanation
Fieldbus Set-up > Display of the current fieldbus address
8-62, chapter "Read fieldbus parameters"
► Cancel with [ESC]
► Change the fieldbus addresss using
the pushbuttons [▲] / [▼]
► After pressing [OK]:
> The controllere negotiates the quickest
baudrate with the fieldbus master
► Always after pressing [OK]:
> Display of the data saved in the
fieldbus master via the data packages
for communication with the AS-i
controllere:
•Digital inputs in the fieldbus master
from single or A-slaves on AS-i master
1
6-2
•Digital outputs in the fieldbus master to
single or A-slaves on AS-i master 1
•Digital inputs in the fieldbus master
from single or A slaves on AS-i
master 2
•Digital outputs in the fieldbus master to
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
•Digital inputs in the fieldbus master
from B-slaves on AS-i master 2
•Digital outputs in the fieldbus master to
B-slaves on AS-i master 2
•Analogue multiplex inputs in the
fieldbus master
•Analogue multiplex outputs in the
fieldbus master
• Fieldbus data command channel
• Fieldbus data PLC inputs in the
fieldbus master
•Fieldbus 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
•Analogue inputs in the fieldbus master
from AS-i master 2
•Analogue outputs in the fieldbus
master to AS-i master 2
• Fieldbus data diagnosis
• Fieldbus master command channel
• Digital inputs in the fieldbus master
from single or A-slaves on AS-i master
1
(cycle starts again)
► Cancel with [ESC]
6-3
Set-up
Parameter setting of the controllere
7 Set-up
This chapter shows you how to get the Profibus interface started quickly.
7.1 Parameter setting of the controllere
Parameter setting of slaves in the controllere
Set the parameters of the slaves in the AS-i controllere as described in the basic
device manual.
Set the parameters of the fieldbus interface in the controllere
1.
MMEENNUU
Quick Setup
2.
PLC Setup
Slave lists
OOKK
Diagnostics
3.
Master setup
Fieldbus Setup
OOKK
0
1
▲▼
1
▲▼
UUSSEERR
EESSCC
EESSCC
► Press [ MENU ]
► Scroll to "Fieldbus Setup" with [▼]
► Select "Fieldbus Setup" with [OK].
7-1
Set-up
Connect the controllere to the Profibus host
Fieldbus Address
4.
0
87
OOKK
▲ ▼
Fieldbus Address
5.
32
87
OOKK
▲ ▼
Fieldbus Baudrate
6.
#### KBaud
88
OOKK
▲ ▼
► Scroll to the requested address with [▲] / [▼].
EESSCC
► Save the fieldbus address with [OK].
EESSCC
> If there is communication with the fieldbus master:
display of negotiated baudrate
► Press OK to confirm.
> If there is no communication yet with the fieldbus
EESSCC
master: all possible baudrates move through the
display
► Cancel with [ESC].
7.2 Connect the controllere to the Profibus host
► Connect the Profibus cable to the controllere.
7.3 Parameter setting of the Profibus host
Device master
file
→ Refer to the description of the Profibus interface on the host
(host = fieldbus master = in most cases higher-level PLC)
The GSD file on the ifm CD (e.g. ifm304D8.gsd) contains different possible
definitions (indications of length) for each of the 12 modules adapted to the
controllere.
→ Hardware catalogue of the Profibus configuration software in the folder
gateway.
► Copy this file to the suitable directory of the corresponding fieldbus
configuration program (→ its description).
7-2
Set-up
Parameter setting of the Profibus host
Programming
software
The data of the controllere or the connected AS-i systems to be transferred can be
defined (by indicating the length of up to 12 modules) in the programming 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:
•all single and A-slaves on AS-i
master 1
(length = 16 bytes)
•single and A-slaves with the
addresses 1(A)...23(A) on ASi master 1
(length = 12 bytes)
•single and A-slaves with the
addresses 1(A)...15(A) on ASi master 1
(length = 8 bytes)
•single and A-slaves with the
addresses 1(A)...7(A) on AS-i
master 1
(length = 4 bytes)
•no single or A-slaves on AS-i
master 1
(length = 0 byte)
If the parameters for a smaller number of slaves than indicated in the selection
point are to be set, you have created free reserve in the host.
Example: 5 single and/or A-slaves are connected to the AS-i master 1.
You have selected on the host:
"single and A-slaves with the addresses 1(A)...7(A) on AS-i master 1"
You have then created an address area reserve of 1 byte in the host which is not
used for the time being. The first 3 bytes of the reserved address area are used to
exchange data.
7-3
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.
Modules are placeholders for certain addess quantities within these areas.
The following IEC addresses are the designations for the PLC addresses in the
controllere:
IEC address area
Description
from to
%IB1.1 %IB1.31 master1, slaves1A...31A, digital inputs
%IB2.1 %IB2.31 master2, slaves1A...31A, digital inputs
%IB11.1 %IB11.31 master1, slaves1B...31B, digital inputs
%IB12.1 %IB12.31 master2, slaves1B...31B, digital inputs
%IW21.1.x %IW21.31.x
%IW22.1.x %IW22.31.x
master1, slaves1...31,
analogue inputs x = channel *)
master2, slaves1...31,
Analogue inputs x = channel *)
%IW0.0 %IW0.63 DP-outputs for signal preprocessing
%IB0.128 %IB0.143
%IB0.144 %IB0.159
%IB0.160 %IB0.175
%IB0.176 %IB0.191
DP-outupts for master1, slaves1A...31A,
digital outputs
DP-outputs for master1, slaves1B...31B,
digital outputs
DP-outputs for master2, slaves1A...31A,
digital outputs
DP-outputs for master2, slaves1B...31B,
digital outputs
Data flow
AS-i – host
→
→
→
→
→
→
←
←
←
←
←
DP-
module
1 input
2 inputs
3 inputs
4 inputs
5 and 10
5 and 10
9
1 output
3 outputs
2 outputs
4 outputs
%IW0.96 %IW0.219
%IW0.224 %IW0.347
%IB0.704 %IB0.719
%IB0.720 %IB0.735
%IB0.736 %IB0.751
%IB0.752 %IB0.767
%QB1.1 %QB1.31
7-4
DP-outputs for master1, slaves1...31,
analogue outputs
DP-outputs for master2, slaves1...31,
analogue outputs
DP-parameters for master1,
slaves1A...31A, parameter data
DP-parameters for master1,
slaves1B...31B, parameter data
DP-parameters for master2,
slaves1A...31A, paramter data
DP-parameters for master2,
slaves1B...31B, parameter data
master1, slaves1A...31A,
←
←
←
←
←
←
→
11
11
DP-
parameter
s
DP-
parameter
s
DP-
parameter
s
DP-
parameter
s
–
Set-up
Parameter setting of the Profibus host
IEC address area
Description
from to
digital outputs
%QB2.1 %QB2.31
%QB11.1 %QB11.31
%QIB12.1 %QB12.31
%QW21.1.x %QW21.31.x
%QW22.1.x %QW22.31.x
master2, slaves1A...31A,
digital outputs
master1, slaves1B...31B,
digital outputs
master2, slaves1B...31B,
digital outputs
master1, slaves1...31,
analogue outputs x = channel *)
master2, slaves1...31,
analogue outputs x = channel *)
%QW0.0 %QW0.63 signal preprocessing outputs for DP-data
*) Channel numbers:
x = 0 → analogue channel 1
x = 1 → analogue channel 2
x = 2 → analogue channel 3
x = 3 → analogue channel 4
Data flow
AS-i – host
→
→
→
→
→
→
DP-
module
–
–
–
–
–
8
i
Tip
All outputs are reset in the PLC operating mode "Stop"!
Analogue outputs = 0
Digital outputs = FALSE
7-5
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
module list of the hardware catalogue starting with "1:" are options of the first
module in the device definition.
The first module for example defines the number of the binary I/O data bytes of
single or A slaves of AS-i master 1 in the controllere which are to be transferred to
the Profibus master via Profibus-DP.
i
Important!
The maximum data length of all 12 modules must not exceed 156 input bytes and
156 output bytes.
7-3, section "Programming software"). So all options in the
Example:
Siemens S7
For the advanced Profibus-DP user it is also possible to use length codes other
than those indicated as long as the maximum lengths of the modules are not
exceeded.
7-6
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
1 flags master 1 slave1(A)
2 slave2(A) slave3(A)
3 slave4(A) slave5(A)
4 slave6(A) slave7(A)
5 slave8(A) slave9(A)
6 slave10(A) slave11(A)
7 slave12(A) slave13(A)
8 slave14(A) slave14(A)
9 slave16(A) slave15(A)
10 slave18(A) slave19(A)
11 slave20(A) slave21(A)
12 slave22(A) slave23(A)
13 slave24(A) slave25(A)
14 slave26(A) slave27(A)
15 slave28(A) slave29(A)
16 slave30(A) slave31(A)
The flags in the first input byte contain status information of the AS-i master 1:
Bit 7 Bit 6 Bit 5 Bit 4
PLC running in the
controllere
configuration error
in the AS-i system
no AS-i slave
detected
peripheral fault
The flags in the first output byte contain control information of the AS-i master 1:
Bit 7 Bit 6 Bit 5 Bit 4
reserved reserved reset of the stored
diagnostic data
activate transfer of
the stored
diagnostic data
If bit 4 of the control information is TRUE, the controllere transmits the stored
peripheral faults and configuration errors in the device-specific diagnosis. The flags
remain TRUE even if the fault or error is no longer present. Bit 5 in the control
information resets this information.
7-7
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
1 flags master 2 slave1(A)
2 slave2(A) slave3(A)
3 slave4(A) slave5(A)
4 slave6(A) slave7(A)
5 slave8(A) slave9(A)
6 slave10(A) slave11(A)
7 slave12(A) slave13(A)
8 slave14(A) slave14(A)
9 slave16(A) slave15(A)
10 slave18(A) slave19(A)
11 slave20(A) slave21(A)
12 slave22(A) slave23(A)
13 slave24(A) slave25(A)
14 slave26(A) slave27(A)
15 slave28(A) slave29(A)
16 slave30(A) slave31(A)
The flags in the first input byte contain status information of AS-i master 2:
Bit 7 Bit 6 Bit 5 Bit 4
PLC running in the
controllere
configuration error
in the AS-i system
no AS-i slave
detected
peripheral fault
The flags in the first output byte contain control information of the AS-i master 2:
Bit 7 Bit 6 Bit 5 Bit 4
reserved reserved reset of the stored
diagnostic data
activate transfer of
the stored
diagnostic data
If bit 4 of the control information is TRUE, the controllere transmits the stored
peripheral faults and configuration errors in the device-specific diagnosis. The flags
remain TRUE even if the fault or error is no longer present. Bit 5 in the control
information resets this information.
7-8
Loading...
+ 92 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.