You are on page 1of 8

Page 1 of 8

03/11/2010
Technote:

technote_101103_IntegratedPLCextendedWithProfibusCoupler

Title:

Configuration of Integrated PLC with additional


profibus coupler

Product Type:
Year Model:
Keywords:
Author:
Revision:

IRC5
M2004
Integrated PLC, PROFIBUS
Christian Goy
-

_______________________________________________
This technote describes how to extend the default Integrated PLC project with a profibus coupler CM572 and
connect a profibus slave to it.
(Observe: the needed profibus coupler needs to be ordered from ABB STOTZ-KONTAKT directly)
Content
Hardware Setup................................................................................................................................................. 2
PLC ............................................................................................................................................................... 2
ET200S (used as profibus slave) ................................................................................................................... 2
Installation......................................................................................................................................................... 2
PLC project ....................................................................................................................................................... 2
Profibus configuration....................................................................................................................................... 2
Profibus coupler ............................................................................................................................................ 2
Coupler configuration in SYCON.NET ........................................................................................................ 3
Configure ET200S......................................................................................................................................... 3
Configure profibus coupler (and define slave address) ................................................................................. 4
Download configuration................................................................................................................................ 6
Coding and download of project ....................................................................................................................... 7
IO addressing ................................................................................................................................................ 7
Download ...................................................................................................................................................... 7
IRC5 controller configuration ........................................................................................................................... 8
PLC project file of this setup............................................................................................................................. 8

Robotics Product Management

Page 2 of 8
03/11/2010

Hardware Setup
PLC

PM582
DC532
Ethernet Coupler CM577 (slot 1, next to PLC CPU)
Profibus Coupler CM572 (slot 2)

ET200S (used as profibus slave)

Profibus coupler IM 151 (6ES7 151-1BA00-0AB0)


Power module PM-E DC 24V (6ES7 151-138-4CA01-0AA0)
4 DI 24 V (6ES7 131-4BD01-0AA0)
4 DO 24 V (6ES7 132-BD01-0AA0)
GSD file: si0180e0.gse

Installation

Connect IRC5 via Devicenet to fieldbus plug to PLC


Connect IRC5 service port to Ethernet switch CM577, connect PC to Ethernet switch
Connect ET200S via profibus to coupler CM572

PLC project

Copy default project from RobotWare \Utility\


Remove write protection for all folders and files
GSD file: si0180e0.gse, copy file to
C:\Program Files\Hilscher GmbH\SYCONnet\ABBPBGenericSlaveDTM\GSD\

Open default project of Integrated PLC with CoDeSys

Profibus configuration
Profibus coupler

Add profibus coupler

Robotics Product Management

Page 3 of 8
03/11/2010

Set Run on config fault to YES, to ensure that the coupler does not stop the profibus due to a
configuration error or when the PLC is stopped.

Coupler configuration in SYCON.NET

Open Sycon.net: Resources, Tools, Sycon.net


Add coupler
CM572 DPM (Profibus Master)
Select the slot number, where the coupler is mounted: here slot2 (2nd slot from PLC CPU to the left)

Add ET 200S slave to profibus

Configure ET200S

double click opens configuration window

Robotics Product Management

Page 4 of 8
03/11/2010

Append power module, DI module and DO module (in the order they are connected)

Configure profibus coupler (and define slave address)


A double click opens configuration
Check gateway setting (communicating via Ethernet coupler)

Robotics Product Management

Page 5 of 8
03/11/2010

Select the device assignment

Define the bus parameters

Define station address of profibus slave(s)

Robotics Product Management

Page 6 of 8
03/11/2010

Download configuration

Connect to coupler

Download

Robotics Product Management

Page 7 of 8
03/11/2010

Wait until download finished

Disconnect

Save project and close SYCON.NET

Observe:

the device assignment has to be selected again, when SYCON.NET is reopened

Coding and download of project


IO addressing

The IO of the connected slaves are addressed like this:


%IB2.0
input byte slot 2 (where the profibus master coupler is mounted), address 0
%IX2.0.0 -> input slot 2, address 0, bit 0
VAR_GLOBAL
ET200_IN_B1 AT %IB2.0 : BYTE; (*6ES7 131-4BD01-0AA0 4DI DC24V <Slot 2>*)
ET200_OUT_B1 AT %QB2.0 : BYTE; (*6ES7 132-4BD01-0AA0 4DO DC24V <Slot 3>*)
END_VAR

Download

Log onto the PLC (Online, Login)


Code and configuration is downloaded to RAM

Robotics Product Management

Page 8 of 8
03/11/2010

Create boot project (Online, Create boot project) to copy project to flash memory
After finalizing: Download source code to memory card to be able to reopen the project with any
CoDeSys PC (Online, SourcCode download)

IRC5 controller configuration

Create a system with RW5.13.01 and options Integrated PLC, suboption 1x DC532, Devicenet,

PLC project file of this setup


Please click the link below to view the result of the description above:
Integrated PLC_PBCoupler

Robotics Product Management

You might also like