28
abb Commissioning Examples AC500 Scalable PLC for Individual Automation Master: PM581 with CM575 Slave: DC505-FBP with DNP21-FBP DeviceNet

DeviceNet - · PDF fileIntroduction . The following example will guide you through the installation and the configuration of a small DeviceNet fieldbus. There were used an AC500-CPU

  • Upload
    lexuyen

  • View
    237

  • Download
    1

Embed Size (px)

Citation preview

abb

Commissioning Examples AC500

Scalable PLC for Individual Automation

Master: PM581 with CM575 Slave: DC505-FBP with DNP21-FBP

DeviceNet

Content

Introduction........................................................................................................................2

Required Products.............................................................................................................3

Preparations.......................................................................................................................4

Configuration .....................................................................................................................5

General Information ................................................................................................................... 5

Starting the Programming Software......................................................................................... 5

Specifying the Hardware Configuration................................................................................... 7

Configuring the Decentralized S500-FBP I/O Station Using EDS Configurator and SYCON.net Fieldbus Configurator............................................................................................ 9

Configuring Using EDS File Configurator ................................................................................ 9 Starting the Configuration .................................................................................................................. 9 Description of the Elements and Their Functions ............................................................................ 10

Information Part........................................................................................................................... 10 S500 Module Selection ............................................................................................................... 11 Protocol Display and EDS File Specific Command Buttons ....................................................... 11 Configuration Controls and FBP-DC505-Cluster ........................................................................ 12

Configuring DC505-AX521-DI524-DC522 (Example)...................................................................... 13 Configuring Using SYCON.net Fieldbus Configurator ........................................................... 14

Starting the Configuration ................................................................................................................ 14 Reloading EDS File .......................................................................................................................... 14 Connecting the Master to the CPU .................................................................................................. 15 Changing the Bus Parameters ......................................................................................................... 16 Connecting the Slave to the Master ................................................................................................. 17 Changing and Activating the Modul Parameters.............................................................................. 18 Specifying the Symbolic Variable Names ........................................................................................ 19

Loading the Configuration from SYCON.net to Communication Module ........................... 22

Commissioning Examples 1 DeviceNet AC500/Issue: 11.2008

Introduction The following example will guide you through the installation and the configuration of a small DeviceNet fieldbus.

There were used an AC500-CPU PM581 as DeviceNet master with Communication Module CM575 and a DC505-FBP as DeviceNet slave with FieldBusPlug DNP21-FBP.

This commissioning example will help you to develop your own application.

NOTICE

Further information you will find in the dedicated user manual: Hardware AC500, System Technology, AC500 programming software.

Commissioning Examples 2 DeviceNet AC500/Issue: 11.2008

Required Products

NOTICE

For installation of a DeviceNet fieldbus system you need AC500 PS501 Control Builder Version 1.2 or higher.

For the configuration of a DeviceNet fieldbus system, the following products are required:

Amount Product description Order number

1 PM581-ETH, CPU 1SAP 140 100 R0170

1 CM575, Communication Module DeviceNet master 1SAP 170 500 R0001

1 TB521-ETH, CPU Terminal Base AC500, 1x CPU Slot, 2x Communication Module Slots, Ethernet RJ45 Connector

1SAP 112 100 R0170

1 TA524, Dummy Communication Module 1SAP 180 600 R0001

1 TK501, Programming Cable D-Sub / D-Sub 1SAP 180 200 R0001

1 DNF11.FBP.050 Adapter (field bus + power supply), cable length 0.5m,

1SAJ 923 002 R0005

1 DNP21-FBP.050 DeviceNet-FBP 0.5 m, modular (FieldBusPlug) 1SAJ 230 000 R1005

1 DNR11-FBP.120 Terminating resistor 120 Ohm 1SAJ 923 007 R0001

1 DC505-FBP with 8DI/8DC 1SAP 220 000 R0001

1 DC522 with 16DC 1SAP 240 600 R0001

1 DI524 with 32 DI 1SAP 240 000 R0001

2 AX521 with 4AI/4AO 1SAP 250 100 R0001

1 TU506 FBP Terminal Unit, Spring Terminals 1SAP 210 000 R0001

4 TU516 I/O Terminal Unit, 24 VDC, Spring Terminals 1SAP 212 000 R0001

1 PS501 Control Builder AC500, Programming Software 1SAP 190 100 R0002

Commissioning Examples 3 DeviceNet AC500/Issue: 11.2008

Preparations Use the previous installation instructions to assemble and mount the system.

Make the wiring and provide supply power to the system (process supply) and to the FieldBusPlug.

Set the slave address of the FBP to 4 with the front rotary switches of the S500 FBP-Interface module (chosen for this example; see also S500-FBP Getting started).

Install the AC500 Control Builder programming software for AC500 PLCs.

Install the SYCON.net fieldbus configurator.

Connect the programming cable TK501 from the PC (COM1) to the AC500 CPU (COM2).

Prior to beginning the system configuration with the AC500 Control Builder programming software review all of the hardware instructions for your specific system to be sure you have completed all of the required preliminary steps.

Power up the system.

Commissioning Examples 4 DeviceNet AC500/Issue: 11.2008

Configuration

General Information The configuration of decentralized systems connected by network is done in two steps:

The CPU has to be informed about which Communication Modules are assigned to it (internal and/or external Communication Modules).

The Communication Modules have to be informed about which peripheral devices are connected to them.

How to do this, it is discribed on the following pages.

Starting the Programming Software 1. Start the AC500 Control Builder programming software.

2. Select File > New to create a new project.

3. In the appearing window select the desired CPU. In our example, select PM581 V1.2.

NOTICE

Only CPUs from version V1.2 or higher can be DeviceNet masters!

4. In the appearing window click on OK.

Commissioning Examples 5 DeviceNet AC500/Issue: 11.2008

A window will open where you can select the POU name, type and language.

5. Keep the settings PLC_PRG and Program for the name and the type. Select ST for the language.

6. Click on OK.

The ST editor is opened.

7. Select the menu item File > Save as to save the project under a specific name.

Commissioning Examples 6 DeviceNet AC500/Issue: 11.2008

8. Select the desired directory and enter the project name (in our example: Test2).

9. Complete your input with Save.

Specifying the Hardware Configuration The software has to be informed about the hardware configuration, i.e. the hardware configuration has to be specified in the software.

1. Click on .

2. Double click the object PLC Configuration.

3. If the AC500 folder in the PLC configuration tree is closed, click on the symbol.

Commissioning Examples 7 DeviceNet AC500/Issue: 11.2008

4. First enter the I/O devices connected directly to the I/O bus of the CPU: In the configuration tree, click on I/O-Bus[FIX] and press the right mouse button.

5. Select Append Subelement > DC532 and click to append the element.

The Communication Module is appended to the tree.

6. Repeat this procedure to append the analog module AX522.

Now append the DeviceNet Communication Module:

7. In the configuration tree, click on Couplers[FIX] and press the right mouse button.

8. Select Append Subelement > CM575 and click to append the element.

Commissioning Examples 8 DeviceNet AC500/Issue: 11.2008

The Communication Module is appended to the tree.

9. As the CPU also comprises an integrated Ethernet Communication Module replace Couplers > Internal - none by an Ethernet Communication Module PM5x1-ETH.

The tree looks now as follows:

Configuring the Decentralized S500-FBP I/O Station Using EDS Configurator and SYCON.net Fieldbus Configurator

Configuring Using EDS File Configurator

Starting the Configuration Now the decentralized S500-FBP I/O station has to be configured. Proceed as follows:

1. In the left-hand window, click on the symbol in front of the Tools folder.

2. Double click the entry EDS configurator.

Commissioning Examples 9 DeviceNet AC500/Issue: 11.2008

The EDS file configurator is opened. With the help of EDS configurator you can generate an I/O station specific EDS file, you later need for changing parameters, creating symbolic variable names and do a configuration download to the CM575 Communication Module in SYCON.net fieldbus configurator.

Description of the Elements and Their Functions

Information Part Menu Bar (contains also all commands which are on screens command boxes)

ONLINE help window (leads user through EDS file creation functions)

Logo und version information

Commissioning Examples 10 DeviceNet AC500/Issue: 11.2008

S500 Module Selection S500-I/O-Modules for configuration:

Here you can select a module, to insert or append to the configuration (by mouse click on a module).

Selected Module: Here the selected module is displayed.

You can add the selected module to the FBP-DC505-cluster by using the configuration control buttons (see Configuration Controls).

Protocol Display and EDS File Specific Command Buttons

Fieldbus Protocol: Fieldbus protocol selection.

Commissioning Examples 11 DeviceNet AC500/Issue: 11.2008

Protocol I/O-Amount-Info: Amount of protocol specific digital und analogue Input/Output bytes. The line Max shows the maximum of I/O-Bytes per S500-FBP-E/A-Station. The line Used shows the actual used number of I/O-Bytes. An analogue I/O-value needs an amount of 2 Bytes (lowbyte and highbyte of one analogue value). The EDS configurator checks automatically, that the maximum will not be exceeded during configuration of the station. If maximum will be exceeded, an error message will be displayed.

I/O-Mapping-List: Independend of the physical arrangement of the I/O modules in DC505-Cluster, the DeviceNet-Protocol transmits first all digital I/O-Bytes, then all analogue I/O-Bytes. The FBP additionally transmits 16 diagnosis bytes after the last input byte. To make it easier to give to the I/O bytes symbolic variable names in SYCON.net, the I/O mapping list shows, which I/O byte belongs to what module. Use this list when working with the tool SYCON.net.

Command Buttons:

New Project: Open a new project

Load Existing Project: Open an existing project

Save Actual Project: Save the actual project

Create EDS and Save: Create and save an EDS file

Export EDS to SYCON.net: Export the created EDS file to specific SYCON.net directory

Show EDS: View contents of EDS file

Configuration Controls and FBP-DC505-Cluster Configuration Controls:

Add to DC505-Cluster: Add the selected module to cluster (after last module in cluster)

Remove gaps: Remove gaps in the cluster, if you have deleted a module within the cluster

Clear all: Delete all modules. Only DC505 will rest.

Clear selected: Select a module within the cluster by clicking on it. If you now click command button Clear selected, this module will be cleared in DC505-cluster.

Insert before selected: Insert a module before the selected module by clicking on it.

FBP-DC505-Cluster: Display decentralized FBP station with the S500 module configuration. To module DC505 there can be added a maximum of seven S500-I/O-modules. The maximum of modules is also determined by the maximum of I/O-Bytes in the DeviceNet-protocol.

Commissioning Examples 12 DeviceNet AC500/Issue: 11.2008

Configuring DC505-AX521-DI524-DC522 (Example) 1. After starting EDS configurator, click on command button New Project.

2. Select module AX521 in the list S500-I/O-Modules for configuration and click on the module.

It will be displayed in the box Selected Module.

3. Click on Add to DC505 Cluster in the Configuration Controls.

It will be added to DC505 cluster.

4. Do the same with the modules DI524 und DC522.

You have got following DC505 cluster:

The I/O mapping list looks as follows:

If this is also your result the configuration is correct.

5. Save now your project by clicking Save Actual Project.

Commissioning Examples 13 DeviceNet AC500/Issue: 11.2008

6. Enter TestDNet as project name and click on Save.

7. Create now an EDS file for your configuration by clicking Create EDS and Save.

8. Enter TestDNet as EDS file name and click on Save.

9. Export now your EDS file, for use in fieldbus configurator SYCON.net: Click on command button Export EDS to SYCON.net.

The window EDS-Info will open.

10. Click on Yes.

A further window EDS-Info will open.

11. Click on OK.

12. Do not exit EDS configurator, because you will need the I/O mapping list, when giving I/O bytes symbolic variable names in SYCON.net.

Configuring Using SYCON.net Fieldbus Configurator

Starting the Configuration Now the decentralized S500-FBP I/O station has to be configured. Proceed as follows:

1. In the left-hand window, click on the symbol in front of the Tools folder.

2. Double click the entry SYCON.net.

The SYCON.net fieldbus configurator is opened.

Reloading EDS File In SYCON.net do following steps:

1. In the menu bar click on Network.

2. In the pull-down menu click on Device Catalog….

The following window will open:

Commissioning Examples 14 DeviceNet AC500/Issue: 11.2008

3. Click Reload to get your created EDS file TestDNet.eds into the Device Catalog….

4. After the reload click OK.

Connecting the Master to the CPU

1. In the Fieldbus tab, click on the symbol to open the folder DeviceNet.

2. In the same way open the folder Master.

3. Click on CM575-DNM and keep the mouse button pressed.

Commissioning Examples 15 DeviceNet AC500/Issue: 11.2008

4. Drag the object into the left window to append it to the green line (this line represents the connection to the CPU) and release the mouse button.

5. In the appearing window, leave the Board No. 1 unchanged (counting mode: CPU-internal Communication Module = Board No. 0, first Communication Module left of the CPU = Board No. 1, second Communication Module = Board No.2).

6. Click on Accept.

The Communication Module is now connected to the CPU.

Changing the Bus Parameters You can easily modify the parameter settings of the Communication Module:

1. Double click on the Communication Module symbol (surrounded by a blue line).

A window will open.

2. Click on Configuration > Bus Parameters.

Commissioning Examples 16 DeviceNet AC500/Issue: 11.2008

With that you can change the parameters.

3. Change the desired parameters and click on OK.

NOTICE

For this example the default values can be used, there must be no changes for bus parameters.

Connecting the Slave to the Master Now you use the same procedure to append a slave to the DeviceNet master CM575-DNM:

1. In the Fieldbus tab, click on the symbol to open the folder Slave.

2. Drag the DeviceNet slave with your created EDS file S500-DC505+AX521+DI524+DC522 (TestDNet.eds) into the left window to append it to the orange line (this line represents the DeviceNet fieldbus).

In the beginning you set the slave address of the FBP to 4 with the front rotary switches of the S500 FBP-Interface module.

Now you have to adjust the slave address for the master:

3. Double click on the DeviceNet master CM575.

4. In the appearing window click on Configuration > MAC ID Table.

5. In the table change MAC ID to value 4.

6. Click on OK.

Commissioning Examples 17 DeviceNet AC500/Issue: 11.2008

Changing and Activating the Modul Parameters 1. In the window netDevice double click on the DeviceNet slave.

Configuration window will open.

2. In the left window, click on Parameter.

A list will be displayed with all parameters of the FBP-I/O station, beginning with those of DC505, then AX521 parameters and so on.

Example: Adjusting the analogue input channel 0 to analogue input 0…20 mA.

3. Move the cursor to the line of the desired parameter and click on it.

The line is highlighted.

4. Double click onto the highlighted line.

5. Click on to display the values available.

6. Click on the desired value.

7. Click into the area with the empty lines.

Thus the change has been adopted.

After you have changed all the desired parameters, all parameters have to be marked as activated. (Activated means these parameters will be transmitted from the Communication Module to the S500 modules.)

8. For activating all parameters click on the command button left below.

Commissioning Examples 18 DeviceNet AC500/Issue: 11.2008

9. After you have changed all the desired parameters and activated all, click on OK to exit the parameter configuration.

The configuration of the fieldbus modules is finished.

Specifying the Symbolic Variable Names Now the names of the communication variables used for data exchange between Communication Module and CPU program have to be specified. These variables are automatically forwarded to the AC500 Control Builder software in order to have them available there. Proceed as follows:

1. In SYCON.net open the netConnect window.

The upper part of the netConnect area contains a tree structure showing the master Communication Module CM575-DNM and the slave (S500-DC505+…) with the sorted list appended.

2. Click on the symbol in front of the entry S500-DC505+… to open this branch of the tree.

Two folders for Poll_Input and Poll_Output are displayed.

3. Click on Poll_Input.

4. In the row Name of variable click on the corresponding entry to give to the input bytes their symbolic names.

Commissioning Examples 19 DeviceNet AC500/Issue: 11.2008

5. Use the I/O mapping list (EDS configurator) to see how the input bytes and output bytes are assigned to the S500 modules.

Commissioning Examples 20 DeviceNet AC500/Issue: 11.2008

TIP

For the planning of your plant we recommend to use symbolic names according to your plant.

In this example, there were used module specific names to make it easier to understand the I/O mapping.

If you have given to the input bytes their symbolic names, now do the same with the output bytes:

6. In the netConnect window click on the symbol in front of the entry S500-DC505+… to open this branch of the tree.

Two folders for Poll_Input and Poll_Output are displayed.

7. Click on Poll_output.

8. In the row Name of variable click on the corresponding entry to give to the output bytes their symbolic names.

9. Use the I/O mapping list (EDS configurator) to see how the input bytes and output bytes are assigned to the S500 modules.

After completion of the variables configuration, the fieldbus configuration is finished.

10. Store the project via File > Safe.

If you change now to AC500 Control Builder (CoDeSys), you can see the variables under Resources > Global Variables > Slot 1 (Communication Module slot) > Slot1_Slave4<R>.

Commissioning Examples 21 DeviceNet AC500/Issue: 11.2008

Loading the Configuration from SYCON.net to Communication Module

Now the configuration has to be loaded from SYCON.net to the Communication Module CM575-DNM. Proceed as follows:

1. In netDevice window, double click on the Communication Module CM575 and select Settings > Driver > 3S Gateway Driver.

Commissioning Examples 22 DeviceNet AC500/Issue: 11.2008

2. Click on Gateway configuration.

3. In Communication Parameters click on New….

4. Enter a name for the new channel (e.g. RS232_DNet).

5. In row Name choose Serial (RS232) as Device.

6. Click on OK.

7. In the Communication Parameters window, set the parameters for the communication between the PC and the PLC (port: serial interface of the PC): Change the values by double click on them.

Commissioning Examples 23 DeviceNet AC500/Issue: 11.2008

8. Click on OK to confirm the settings.

9. Select Settings > Driver > Device Assignment and click on Scan.

The configuration tool SYCON.net searches for DeviceNet Communication Modules connected to the stated interface.

NOTICE

To do the following steps, the CPU must be in Stop state.

10. Select the device CM575-DNM and click on OK.

11. Click with the right mouse button on the icon of the Communication Module CM575-DNM and select Download.

Commissioning Examples 24 DeviceNet AC500/Issue: 11.2008

A safety inquiry is displayed.

12. Click on Ja (Yes).

This downloads the configuration to the Communication Module.

Progress of data transfer is displayed.

13. After the download is completed, disconnect SYCON.net: Press the right mouse button and select Disconnect.

Commissioning Examples 25 DeviceNet AC500/Issue: 11.2008

14. In SYCON.net, save the configuration to a file: Select File > Save.

The system adopts the project name (in our example: Test2).

15. Exit SYCON: Select File > Exit.

Now you can use the symbolic variable names of the DeviceNet slave in your PLC program.

You can also load the example program Test2.pro and test the function of your system.

Commissioning Examples 26 DeviceNet AC500/Issue: 11.2008

Man

ual N

o. 2

CD

C 1

25 0

53 M

0201

abb

ABB STOTZ-KONTAKT GmbH Eppelheimer Straße 82 Postfach 101680 69123 Heidelberg, Germany 69006 Heidelberg, Germany Telephone (06221) 701-0 Telefax (06221) 701-240 E-Mail [email protected] Internet http://www.abb.de/stotz-kontakt