15
White Paper: Commissioning a G120 Drive with a S7-1200 or S7-1500 PLC TODD MOGENSEN, PCC

White Paper: Commissioning a G120 Drive with a S7-1200 or ... · PDF fileGOAL: Connect a G120 drive configured with “Telegram 352” to be controlled by the PLC Items needed: S7-1200

  • Upload
    vokiet

  • View
    284

  • Download
    23

Embed Size (px)

Citation preview

Page 1: White Paper: Commissioning a G120 Drive with a S7-1200 or ... · PDF fileGOAL: Connect a G120 drive configured with “Telegram 352” to be controlled by the PLC Items needed: S7-1200

White Paper: Commissioning a G120 Drive with a S7-1200 or S7-1500 PLC

TODD MOGENSEN, PCC

Page 2: White Paper: Commissioning a G120 Drive with a S7-1200 or ... · PDF fileGOAL: Connect a G120 drive configured with “Telegram 352” to be controlled by the PLC Items needed: S7-1200

 

Commissioning a G120 Drive with an S7-1200 or S7-1500 PLC Copyright 2017 | Professional Control Corporation | www.pccweb.com | 262-251-3000

1  

Commissioning a G120 Drive with an S7-1200 or S7-1500 PLC

GOAL: Connect a G120 drive configured with “Telegram 352” to be controlled by the PLC

Items needed: S7-1200 or S7-1500 PLC and any G120, G120C, or the MM4 series Siemens drives. You will also need the archived library (G120 Faceplate_V14.zal14) that goes with this paper. For our example, we will be using an S7-1515F-2PN PLC and a G120 with a CU240E-2PN-F control unit. I will not be using any safety functionality, so the overall takeaway is the V14 Library of the Telegram 352 Faceplate. Also included is this application (S71x00 to g120_1.zap14) To request these files, click here.

Step 1: Create a project in Portal V14. Once open change to Project view then add YOUR processor.

Page 3: White Paper: Commissioning a G120 Drive with a S7-1200 or ... · PDF fileGOAL: Connect a G120 drive configured with “Telegram 352” to be controlled by the PLC Items needed: S7-1200

 

Commissioning a G120 Drive with an S7-1200 or S7-1500 PLC Copyright 2017 | Professional Control Corporation | www.pccweb.com | 262-251-3000

2  

Step 2: Once inserted you must set up a Profinet network. To do this, click once on the double port 1 that shows up in the graphical version of the PLC. You may have to adjust the tabs at the bottom to look like these do. Create a new network and assign an IP address to the PLC. It should look similar to the following graphic:

Page 4: White Paper: Commissioning a G120 Drive with a S7-1200 or ... · PDF fileGOAL: Connect a G120 drive configured with “Telegram 352” to be controlled by the PLC Items needed: S7-1200

 

Commissioning a G120 Drive with an S7-1200 or S7-1500 PLC Copyright 2017 | Professional Control Corporation | www.pccweb.com | 262-251-3000

3  

Step 3: Next switch over to the network view so you can add your drive to the system. Make sure to select your proper drive along with the correct version. This drive is V4.7 as can be seen under Information in the lower right of this graphic.

Once in the graphical pane, you can click on the drive Ethernet (green box) and drag it over to the PLC Ethernet port (green box with PN/IE_1 on it). This will not only connect your drive to the PN/IE_1 network automatically, but assign it to the Profinet I/O controller in the PLC.

à

Page 5: White Paper: Commissioning a G120 Drive with a S7-1200 or ... · PDF fileGOAL: Connect a G120 drive configured with “Telegram 352” to be controlled by the PLC Items needed: S7-1200

 

Commissioning a G120 Drive with an S7-1200 or S7-1500 PLC Copyright 2017 | Professional Control Corporation | www.pccweb.com | 262-251-3000

4  

Step 4: Now we must set up the IP address, the Subnet, the Subnet Mask, and select the proper power module being used. (This will be dependent on the drive you are using. This drive has a separate control unit from the power module and has to be configured.)

Now that the drive’s Profinet connection is all set up, we just need to select telegram 352 to transfer data to and from the drive. Click on “Cyclic data exchange” and select the telegram 352 in the list then press the save project icon at the top.

If you are using a Profibus drive, it will set up with the same telegrams, your hardware configuration will just change for Profibus instead of Profinet.

Page 6: White Paper: Commissioning a G120 Drive with a S7-1200 or ... · PDF fileGOAL: Connect a G120 drive configured with “Telegram 352” to be controlled by the PLC Items needed: S7-1200

 

Commissioning a G120 Drive with an S7-1200 or S7-1500 PLC Copyright 2017 | Professional Control Corporation | www.pccweb.com | 262-251-3000

5  

Step 5: We need to create a program in the PLC to run this drive over Profinet. The first step will be to install the Library for the block interface to your project.

Right click in the global library window and select Retrieve Library.

Then direct it to the “G120 Faceplate_V14.zal14” library that came with this paper and open it. It will prompt you for a location to save the Libraries. You can store these on your local laptop, or on a company server if you want to create an open library for your company to use on any project.

Once open it will look as follows:

Page 7: White Paper: Commissioning a G120 Drive with a S7-1200 or ... · PDF fileGOAL: Connect a G120 drive configured with “Telegram 352” to be controlled by the PLC Items needed: S7-1200

 

Commissioning a G120 Drive with an S7-1200 or S7-1500 PLC Copyright 2017 | Professional Control Corporation | www.pccweb.com | 262-251-3000

6  

Now drag that “PZD_G120_Tel352 V14” object and set it on your Program blocks location in your main system component tree. When you are done it should look like the following:

Page 8: White Paper: Commissioning a G120 Drive with a S7-1200 or ... · PDF fileGOAL: Connect a G120 drive configured with “Telegram 352” to be controlled by the PLC Items needed: S7-1200

 

Commissioning a G120 Drive with an S7-1200 or S7-1500 PLC Copyright 2017 | Professional Control Corporation | www.pccweb.com | 262-251-3000

7  

Step 6: Now we need to add programming in order to use that block and run your drive. In the tree structure, open up OB1 and drag the library component to the first network to call it. When it gets placed in the OB1 block, it will need a data block attached to it in order to maintain all it’s declared variables. This will just automatically create a block for you and assign it to the FB you just inserted.

It will look like the following:

Page 9: White Paper: Commissioning a G120 Drive with a S7-1200 or ... · PDF fileGOAL: Connect a G120 drive configured with “Telegram 352” to be controlled by the PLC Items needed: S7-1200

 

Commissioning a G120 Drive with an S7-1200 or S7-1500 PLC Copyright 2017 | Professional Control Corporation | www.pccweb.com | 262-251-3000

8  

You can see that this block has all the inputs needed to control the drive and provides you with all the information back from the drive to determine what is happening in the drive. You will then need to assign control to the bits you will be using.

I will put in a bit for “OFF1”. I will then put in a real number variable for my reference_speed_setpoint”. Other values that need to be taken from the drive parameter set is the “reference_speed_P2000”, the “reference_current_P2002”, and the “reference_torque_P2003” These values will scale the drive feedback to match the values being sent from the drive.

To see these P parameter values in the drive, you must double click on the parameter icon below the drive, select the Parameter View tab, drop down the parameter filter to “Display extended Parameters”, and click on “All parameters”. You can then scroll down to P2000. In our drive, we see that P2000=1800.00 rpm, P2002=0.43A, and P2003=1.22Nm. These values along with our variables listed above must be entered on the block.

Page 10: White Paper: Commissioning a G120 Drive with a S7-1200 or ... · PDF fileGOAL: Connect a G120 drive configured with “Telegram 352” to be controlled by the PLC Items needed: S7-1200

 

Commissioning a G120 Drive with an S7-1200 or S7-1500 PLC Copyright 2017 | Professional Control Corporation | www.pccweb.com | 262-251-3000

9  

You must also give the block an address that points to that drive. To find out this address, you do the following: Double click on Show all tags, select the System constants tab, and scroll down to the telegram 352 for that drive. You can see our address for this application is 266.

Page 11: White Paper: Commissioning a G120 Drive with a S7-1200 or ... · PDF fileGOAL: Connect a G120 drive configured with “Telegram 352” to be controlled by the PLC Items needed: S7-1200

 

Commissioning a G120 Drive with an S7-1200 or S7-1500 PLC Copyright 2017 | Professional Control Corporation | www.pccweb.com | 262-251-3000

10  

Your OB1 will then look like this for the bare minimum needed for the drive.

Save and compile the full project and download to the PLC, and to the Drive. It is assumed you already have the drive configured with Startdrive. You can look in the attached project for the settings of the drive, but they are not covered in here. Commissioning a drive will be hopefully covered in another paper.

Page 12: White Paper: Commissioning a G120 Drive with a S7-1200 or ... · PDF fileGOAL: Connect a G120 drive configured with “Telegram 352” to be controlled by the PLC Items needed: S7-1200

 

Commissioning a G120 Drive with an S7-1200 or S7-1500 PLC Copyright 2017 | Professional Control Corporation | www.pccweb.com | 262-251-3000

11  

Step 8: When you are done, more than likely, you will still have a communication issue with your drive. This is because you have not assigned the Profinet name to the drive device yet. To accomplish this, double click on “online & diagnostics” under your drive, click on “Assign name”, set up your online access to PN/IE and your interface to your ethernet port in your PC. At this point you should see that the device name is different on your drive. Highlight the drive in your list below, and select “Assign name”

After highlighting the drive below, the “Assign name” button becomes active. Once pressed, it should look like below:

There are various other ways to do this, but that is another discussion.

Page 13: White Paper: Commissioning a G120 Drive with a S7-1200 or ... · PDF fileGOAL: Connect a G120 drive configured with “Telegram 352” to be controlled by the PLC Items needed: S7-1200

 

Commissioning a G120 Drive with an S7-1200 or S7-1500 PLC Copyright 2017 | Professional Control Corporation | www.pccweb.com | 262-251-3000

12  

Step 9: Open OB1 again and monitor it. Then right click on the speed setpoint and modify it to 200.0rpm.

Page 14: White Paper: Commissioning a G120 Drive with a S7-1200 or ... · PDF fileGOAL: Connect a G120 drive configured with “Telegram 352” to be controlled by the PLC Items needed: S7-1200

 

Commissioning a G120 Drive with an S7-1200 or S7-1500 PLC Copyright 2017 | Professional Control Corporation | www.pccweb.com | 262-251-3000

13  

You can then right click on the “on off bit” and modify it to a 1 and your drive will run at 200.0 rpm till you change it back to a 0.

All of the information on the right side of the block can have variables assisgned to it, or you can just use the data that is being saved in DB2. If you open DB2, and monitor it, you can see the values coming back from the drive. These can be used anywhere in your program.

Page 15: White Paper: Commissioning a G120 Drive with a S7-1200 or ... · PDF fileGOAL: Connect a G120 drive configured with “Telegram 352” to be controlled by the PLC Items needed: S7-1200

 

Commissioning a G120 Drive with an S7-1200 or S7-1500 PLC Copyright 2017 | Professional Control Corporation | www.pccweb.com | 262-251-3000

14  

The other variables to the block can be set up as needed by the project such as acknowledge for clearing faults, reverse, OFF2, OFF3, ect.