powerflex 4 em profibus s7-300

Upload: sergio-albarracin

Post on 02-Mar-2016

274 views

Category:

Documents


14 download

TRANSCRIPT

  • Distribution: Related to: Open Inverter Use Rockwell Offices Options Use Drives Team Application Experience _________________(Name) only

    Page 1 of 12

    Generated by D.J.Withenshaw Date 02/08/2007

    Revision A

    x

    x

    !!

    Overall Description This document provides set-up and programming details of the PowerFlex 4 class drives in multi-drive mode with the 22-COMM-P Profibus-DP interface using the Siemens S7-315 DP platform. All the operations detailed below assumes the user is familiar with the programming of Siemens PLCs with Step7 software.

    This application note must be used in conjunction with the relevant PowerFlex 4 class drives user manuals (20a/b/c/d-UMxxx-EN-E), the 22-COMM-P Profibus adapter (22COMM-UM005x-EN-P), and the working Step7 program PF4_Mult.zip.

    Drive Control Overview The PowerFlex 4 class drives and the 22-COMM-P Profibus DP adapter, can be used in 2 different modes:

    Single drive mode whereby each drive has it own 22-COMM-P adapter and node address on the network. The mode jumper J2 on the 22-COMM-P card is set to x1.

    Multi-Drive mode whereby a PowerFlex40 drive with a 22-COMM-P is the host drive, which routes the control through to 4 additional PowerFlex 4 class drives. The mode jumper J2 on the 22-COMM-P card is set to x5.

    In Profibus, I/O messaging is used to transfer the data which controls the PowerFlex drive and sets its Reference. I/O messaging occurs cyclically at a rate defined in the PLC, and is governed by the speed of the network.

    The Logic Command word from the PLC contains 2 bytes of data, whereby each bit has a control significance. See User Manual 22-COMM-P Appendix C. So we can start / stop the drive by changing the relevant PLC output bits in the Logic Command word. In addition we can see what is happening to the drive by looking on the PLC input Logic Status word, for the condition of each bit.

    Up to 4 PowerFlex 4 s or 40s PowerFlex 40

    RS-485

    w/ 3rd party Terminating Resistor

    w/ 3rd Party Terminating

    Resistor

  • Distribution: Related to: Open Inverter Use Rockwell Offices Options Use Drives Team Application Experience _________________(Name) only

    Page 2 of 12

    Generated by D.J.Withenshaw Date 02/08/2007

    Revision A

    X

    x

    The drive reference is a 16 bit integer with sign, with units in 0.1Hz. So passing a value of 500 into the PLC output Reference word results in speed reference of 50.0Hz. Likewise the same scaling is applied to the PLC input word Feedback, so we can see what speed the drive is actually rotating.

    In addition to the I/O messaging, the PowerFlex drive has a parameter telegram for messaging. This non time critical message is used to read / write a specific parameter in a drive. This parameter telegram can also access each of the drives /adapters in a multi-drive configuration. The multi-drive example of the I/O image is shown below.

    N.B. If the drive is selected in single-drive mode, then the Input / Output words for Drives 0 to 4 will not be available.

    Application Note Equipment Description A PowerFlex40, 40P or 400 drive is needed as the host drive, which connects to the 22-COMM-P adapter. The slave drives can be any combination of PowerFlex 4, 4M, 40, 40P and 400 drives, selected according to the application.. Although multi-drive mode can be used to control up to 5 PowerFlex 4 class drives, the tests below detail just 2 drives being controlled.

    See 20COMM-UM005x-EN-P Page 7-4 for correct RJ45 plugs and wiring details.

    Up to 4 PowerFlex 4 s or 40s PowerFlex 40

    Modbus RTU add = 100

    RS-485

    Profibus DP

    Terminating Resistor

    Terminating Resistor

    Modbus RTU add = 101

    22-COMM-P

    Siemens S7-315DP

  • Distribution: Related to: Open Inverter Use Rockwell Offices Options Use Drives Team Application Experience _________________(Name) only

    Page 3 of 12

    Generated by D.J.Withenshaw Date 02/08/2007

    Revision A

    x

    x

    Unfortunately the power base 22-XCOMM-DC-BASE with a 22-COMM-P inside in multi-drive control CAN NOT be used for a Profibus configuration. Parameter access to the 22-COMM-P is not possible, so this configuration is NOT VALID.

    Drive Setup In order that the drives can be controlled on a network, they need to be setup for network control:

    Description PowerFlex 4, 40, 40P, 400 PowerFlex 4M Para Number Value Para Number Value

    Control scheme for logic P36 [Start Source] 5 = Comm Port P106 [Start Source] 5 = Comm Port Source of speed Ref P38 [Speed Ref] 5= Comm Port P108 [Speed Ref] 5= Comm Port Modbus rtu comms speed A103 [Comms data rate] 4 = 19.2kb C302 [Comms data rate] 4 = 19.2kb Host Modbus RTU address A104 [Comm Node Addr] Rtu add = 100 Not possible as a Host Slave Modbus RTU address A104 [Comm Node Addr] RTU Add = 101 C303 [Comm Node Addr] RTU Add = 101 Modbus rtu comms format A107 [Comm Format] 0 = RTU 8-N-1 C306 [Comm Format] 0 = RTU 8-N-1

    All the above parameters can be put into each of the drives using the keypad or software tool. It is important to identify which drive is the host, and which drive is the slave, so that the correct Modbus RTU addresses can be put into the correct drives.

    22-COMM-P Setup For this application note the drive will be setup as Profibus DP node address 3, so set up the card DIP switches as detailed in the user manual. Additionally the 22-COMM-P card has a byte swap capability. Check Jumper J3 is in the lower position, when you look at the card with the Profibus plug at the bottom.

    Now the parameters need to be setup on the 22-COMM-P adapter. Unfortunately the 22-COMM-P adapter parameters are not accessible through the in-built keypad, so you will need to have the adapter in single-drive mode, and use an external keypad or serial connector such as a 1203-USB or 22-SCM-232 with drive software to connect into the RS485 connector on the drive.

    N.B. Ensure that the Mode Jumper J2 on the 22-COMM-P is in single-drive mode (x1), and cycle the power of the drive if you need to change it. Access via keypad or serial connector will be denied in multi-drive mode.

    The following parameters need to be adjusted with an external keypad or DriveExplorer via the serial connection.

    RS-485 Terrminating Resistor

    Terminating Resistor

    Up to 4 PowerFlex 4 s or 40s

    PowerFlex 4 Modbus RTU add = 100

    Profibus DP

    Modbus RTU add = 101

    22-XCOMM-DC-BASE With 22-COMM-P

    Siemens S7-315DP

  • Distribution: Related to: Open Inverter Use Rockwell Offices Options Use Drives Team Application Experience _________________(Name) only

    Page 4 of 12

    Generated by D.J.Withenshaw Date 02/08/2007

    Revision A

    X

    x

    Description 22-COMM-P Para Number Value

    Profibus Addr 3 (read from SW1) DIP Switch 11000001 Defines how many drives P011 [DSI I/O Cfg] 1 = Drives 0-1 Modbus RTU addr host P017 [Drive 0 Addr] 100= Addr 100 Modbus rtu addr slave P018 [Drive 1 Addr] 101 = Addr 101

    DriveExplorer is used to access the 22-COMM-P with the 22-SCM-232 plugged into the drive RS485 connector

    When all the settings have been adjusted, power down the drives. Now put the Mode Jumper J2 back to multi-drive mode (x5), and remove the external keypad / serial connector. Now connect the multi-drive twisted pair cabling (as detailed on Page 7-4 of the 22COMM-UM005 user manual), to each of the host and slave RS485 ports on the drives. Now power up all the drives together, and all the communication baud rates and RTU addresses will be updated, and the 22-COMM-P adapter should see all the drives. It may be necessary on each drive to press the RED stop button to reset the faults.

    Setup the Controller and control the drive Power up the drives and PLC, and startup the Step7 programming software. Install the GSD file A_B_07FF.GSD into the hardware catalogue. Drag the 22-COMM-P from the hardware catalog, onto the Profibus DP master system. Provide the Profibus node address as 3. Drag the Ctrl/Stat&Ref/Fb for Drv0 and for Drv0-1. Also drag the parameter Access. Type in the Input and Output addresses as detailed.

  • Distribution: Related to: Open Inverter Use Rockwell Offices Options Use Drives Team Application Experience _________________(Name) only

    Page 5 of 12

    Generated by D.J.Withenshaw Date 02/08/2007

    Revision A

    x

    x

    Download the configuration to the controller. The program blocks below detail moving the control, status, speed reference and feedback words, for controlling the drive.

  • Distribution: Related to: Open Inverter Use Rockwell Offices Options Use Drives Team Application Experience _________________(Name) only

    Page 6 of 12

    Generated by D.J.Withenshaw Date 02/08/2007

    Revision A

    X

    x

    The significance of the Control & Status bits are detailed in the 22-COMM-P Profibus adapter user manual 22COMM-UM005x-EN-P App C. Although not shown here, block FC12 controls Drive#1 at address MW113

  • Distribution: Related to: Open Inverter Use Rockwell Offices Options Use Drives Team Application Experience _________________(Name) only

    Page 7 of 12

    Generated by D.J.Withenshaw Date 02/08/2007

    Revision A

    x

    x

  • Distribution: Related to: Open Inverter Use Rockwell Offices Options Use Drives Team Application Experience _________________(Name) only

    Page 8 of 12

    Generated by D.J.Withenshaw Date 02/08/2007

    Revision A

    X

    x

    The variable table below details the contents of the control / status words with the drives running at 37.6Hz.

    Use the Parameter telegram to read / write a value to the drive.

    The Parameter Messaging is used to transfer data that does not require continuous updates. With the Parameter Messaging, you can configure and monitor a host/slaves devices parameters on the Profibus network.

    To be able to use the parameter protocols in the 22-COMM-P, we added the Parameter Access words to the end of the drive assembly in the hardware configuration. This maps 4 words input and output to the end of the I/O configuration, which is used as the request/response in the parameter message format. As it is important that all 4 words are input as a block and output as a block, we make use of the SFC14 read consistent data with DB11, and SFC15 write consistent data with DB13.

    The structure of DB11 is shown below:

  • Distribution: Related to: Open Inverter Use Rockwell Offices Options Use Drives Team Application Experience _________________(Name) only

    Page 9 of 12

    Generated by D.J.Withenshaw Date 02/08/2007

    Revision A

    x

    x

    The structure of DB13 is shown below:

  • Distribution: Related to: Open Inverter Use Rockwell Offices Options Use Drives Team Application Experience _________________(Name) only

    Page 10 of 12

    Generated by D.J.Withenshaw Date 02/08/2007

    Revision A

    X

    x

    Now we need to organise the logic of hand-shaking for the Parameter Telegram. The example below details a parameter value of 38hex (56dec) on Port Index = 1 (Drive#1). We can access any Parameter on any of the drives / adapter by changing the Port Index. e.g. 0 = Drive#0, or 5 = the 22-COMM-P

  • Distribution: Related to: Open Inverter Use Rockwell Offices Options Use Drives Team Application Experience _________________(Name) only

    Page 11 of 12

    Generated by D.J.Withenshaw Date 02/08/2007

    Revision A

    x

    x

    The parameter number we intend to change is Para 27hex (39dec) the acceleration time 1 of the drive. Referring to the user manual, P039 [Accel Time 1] is in unit of 0.1sec. Therefore a value of 56 is 5.6 secs.

    As we intend to write to the drive, the Write command (M104.5) is true in the following:

  • Distribution: Related to: Open Inverter Use Rockwell Offices Options Use Drives Team Application Experience _________________(Name) only

    Page 12 of 12

    Generated by D.J.Withenshaw Date 02/08/2007

    Revision A

    X

    x

    Looking at the vaiable table for the parameter telegram, we can see the status of the telegram words when this value is being transmitted, and we can verify that the parameter has changed on the drive using the keypad.