(D0301)Profibus Quick Startup Guide V1.0

Download (D0301)Profibus Quick Startup Guide V1.0

Post on 28-Dec-2015

51 views

Category:

Documents

1 download

Embed Size (px)

TRANSCRIPT

  • Version 1.0 January 12, 2000 DROM-02068

    Quick Startup Guide for STEP-7S7-300 & S7-400 PROFIBUS

    CONNECTIVITY TO SIMOVERTMASTERDRIVES 6SE70

    Section 1: STEP 7 Hardware Configuration

    Section 2: Explanation of PZD & PKW

    Section 3: Configuring OB1

    Section 4: PZD Process Data Configuration

    Section 5: PKW Parameter Data Configuration

    Section 6: Summary

  • Page 2 DROM 02066 Version 2.0 October 1, 1999

    We reserve the right to modify functions, technical data, standards, drawings and

    parameters.

    We have checked the contents of this document to ensure that they coincide with the

    described hardware and software. However, deviations cannot be completely ruled-

    out, so we cannot guarantee complete conformance. However, the information in this

    document is regularly checked and the necessary corrections will be included in

    subsequent editions. We are thankful for any recommendations or suggestions.

    e-mail: GMC@sea.siemens.com

  • Version 1.0 January 12, 2000 DROM-02068 Page 3

    Note:

    This Quick Startup Guide is not an autonomous document, but is intended to direct users to the sectionin the Operating Instructions which are important for start-up. Thus, these brief instructions can onlybe completely valid when used in conjunction with the Operating Instructions. It is especially importantto observe the warning and information regarding potential hazards in the Operating Instructions.

    Warning:

    Electrical equipment has parts an components which are at hazardous voltage levels. If the warning information in the detailed Operating Instructions is not observed, this can result in

    severe bodily injury or material damage. Only appropriately qualified personnel may work with this equipment. These personnel must be knowledgeable with all of the warning information and

    service/maintenance measures of the Operating Instruction.

    Perfect and safe operation of this equipment assumes professional transport, storage, erection andinstallation as well as careful operating control and service.

    NOTE:

    These instructions do not purport to cover all details or variations in equipment, nor toprovide for every possible contingency to be met in connection with installation,operation or maintenance. Should further information be desired or should particularproblems arise which are not covered sufficiently for the purchasers purposes, pleasecontact your local Siemens office.

    Further, the contents of these instructions shall neither become a part of nor modifyany prior or existing agreement, commitment or relationship. The sales contractcontains the entire obligation of Siemens Energy & Automation. The warrantycontained in the contract between the parties is the sole warranty of Siemens Energy &Automation. Any statements contained herein do not create new warranties normodify the existing warranty.

  • Page 4 DROM 02066 Version 2.0 October 1, 1999

  • Version 1.0 January 12, 2000 DROM-02068 Page 5

    Step 7 Hardware ConfigurationSection 1 Table of Contents:

    1.1 Launch Step 7

    1.2 Hardware Configuration Editor

    1.3 Insert DP Master System

    1.4 Add MasterDrive CBP to DP Master System

  • Page 6 DROM 02066 Version 2.0 October 1, 1999

  • Version 1.0 January 12, 2000 DROM-02068 Page 7

    1.1 Launch Step 7

    ASelect New Project from the File Menu.Name the Project and click OK.

    C

    BBSelect Upload Station from the PLCMenu. This will Upload the HardwareConfiguration for the PLC connected viaMPI Network.

    Note: Offline Hardware Configuration isalso possible. If the HardwareConfiguration is not uploaded from thePLC, individual components for your PLCmust be chosen from the STEP 7Hardware Catalog.

    CVerify the MPI Address for the Stationthat you wish to Upload. By default thePLC MPI Address is 2.

  • Page 8 DROM 02066 Version 2.0 October 1, 1999

    1.2 Hardware Configuration Editor

    1.3

    A B

    A

    B

    Notice that after PLC Upload aSIMATIC 300 Station is now presentin the Project.Click on the SIMATIC 300 Stationto access the Hardware Icon.

    Double click the Hardware Icon tolaunch the Hardware ConfigurationEditor. This Editor will allow you toinsert MasterDrives onto a ProfibusDP Network

    C C

    DWithin the Hardware ConfigurationEditor select DP Master from theX2 Slot in the Rack. This Rackdisplays the Hardware Modules thatwere Uploaded previously.

    DRight Click on the DP Master andselect Insert DP Master System

  • Version 1.0 January 12, 2000 DROM-02068 Page 9

    1.3 Insert DP Master System

    A BA

    B

    Select New Network

    Select Network Settingsto Configure Profibus.

    CC

    Select the Transmission Rate and DPProfile for the new Network.

    D

    D

    Click OK with the new Networkselected.

  • Page 10 DROM 02066 Version 2.0 October 1, 1999

    1.4 Add MasterDrive CBP to DP Master System

    A

    CSelect the appropriate PPO Type. For ourexample we will use PPO Type 2.(This Window looks different without DVA-S7)The PPO Type allows the user to select the typeand amount of data that will be transmitted.

    PKW data consists of four words of data thatare used to change individual Parameters.

    PZD data is Process Data that can be used asControl Words and Setpoints. AdditionallyPZD can be utilized with MasterDrives BICOData System of Connectors and Binectors.

    C

    BAfter you drag the MasterDriveIcon onto the DP Network, ClickOK to confirm that you have theMasterDrive on the appropriateNetwork and it has the correctProfibus Address.

    B

    ASelect the appropriateMasterDrive CBP from theHardware Catalog.MasterDrives are listedunder:Profibus DP / SIMOVERT / MASTERDRIVE CBP.

    Drag the Icon up to thePROFIBUS DP MasterSystem.

    AIf DVA-S7 is not installeddifferent options will appearfor selecting theMASTERDRIVE CBP.The important thing is toselect the desired PPO Typeand configure the driveaccording to this.

  • Version 1.0 January 12, 2000 DROM-02068 Page 11

    D

    E

    DNote that STEP 7automatically lists out theI/O Peripheral OutputAddresses for both thePKW & PZD Data Areasin Decimal format. Thelength of the data is givenin bytes.

    The Hardware Configuration is now complete. At this point youhave created a project, upread an existing S7 Station, created aProfibus DP Master Network and configured that Network with aSimovert MasterDrive. Please proceed to the next sections forprogramming instructions that will easily allow you to interfacePLC and Drive.

    EClick the Hot-Button onthe Toolbar to downloadthe current HardwareConfiguration to the PLC.

    Close HardwareConfiguration Editorwindow when complete.

  • Page 12 DROM 02066 Version 2.0 October 1, 1999

  • Version 1.0 January 12, 2000 DROM-02068 Page 13

    Explanation of PZD and PKWSection 2 Table of Contents:

    2.1 PZD Process Data

    2.2 PKW Parameter Data

  • Page 14 DROM 02066 Version 2.0 October 1, 1999

  • Version 1.0 January 12, 2000 DROM-02068 Page 15

    2.1 PZD Process Data

    Process data interconnection involves the linking up of setpoints and control bits to the RAMinterface of the drive. The transferred process data only becomes effective when the used bits ofthe control words as well as the setpoints, status words and actual values are connected to thedual-port RAM interface.

    The CBP stores the received process data at fixed pre-determined addresses in the dual-portRAM. Each item of process data is assigned a connector. The connector is also used todetermine whether the PZD is a 16-bit value or a 32-bit value.

    With the help of selector switches, the setpoints or the individual bits of the control words canbe assigned to a particular PZD in the dual port RAM. In order to do this the connectorbelonging to the required PZD is assigned to the selector switch.

    YOU MUST ASSIGN BICO BINNECTORS AND CONNECTORS IN THE DRIVEPARAMETERS.

    See MASTERDRIVE Compendium function diagrams [120] (Receive) and [125] (Send) forBinnectors and Connectors in the Drive. If the first Word of data transmitted to the drive is tobe used as a Control Word, BICO programming must occur in Control Word 1 of theMasterDrive [180]. Please note that BIT 10 must be asserted. BIT 10 is the LIFE BIT and mustbe asserted for the Drive to receive control from Profibus. Note that to turn the drive on P554must be explicitly programmed. (e.g. P554 = B3100).

    Process Data Transfer must be programmed in PLC program. The rules of consistent data applyto transferring PZD data. Consistent data must be sent together. SFC14 and SFC15 are used tosend and receive the data in the PLC program. The PZD data is sent to the Peripheral Outputaddresses that were assigned during hardware configuration. This will be shown in thefollowing sections examples.

  • Page 16 DROM 02066 Version 2.0 October 1, 1999

    2.2 PKW Parameter Data

    PKW Parameter Data is used to monitor parameter values, as well as to transfer andacknowledge parameter changes. The parameter area always contains at least four words.

    The first word of the PKW Data is used to request a task and identify the parameter number.The second word indicates the parameter index. The third and fourth words are used to passparameter values. The following Tasks are possible with PKW Parameter Data.

    Task ID Significance Reply ID (Decimal ID #) positive negative0 No task 0 7 or 81 Request parameter value 1 or 2 2 Change parameter value (word) 1 3 Change parameter value (double word) 2 4 Request description element 3 5 Change description element (not with CBP) 3 6 Request parameter value (array) 4 or 5 7 Change parameter value (array, word) 4 8 Change parameter value (array, double word) 5 9 Request the number of array elements 6 10 Reserved - 11 Change parameter value (array, double word) and store in the EEPROM 5 12 Change parameter value (array, word) and store in the EEPROM 4 13 Change parameter value (double word) and store in the EEPROM 2 14 Change parameter value (word) and store in the EEPROM 1 15 Read or change text (not with CBP) 15 7 or 8Table Task IDs (master -> converter)

    Parameter Data Transfer must be programmed in PLC program. The rules of consistent dataapply to transferring PKW data. SFC14 and SFC15 are used to send and receive the data in thePLC program. The PKW data is sent to the Peripheral Output addresses that were assignedduring hardware configuration. This will be shown in the following sections examples.

  • Version 1.0 January 12, 2000 DROM-02068 Page 17

    Configuring OB1Section 3 Table of Contents:

    3.1 Create OB1

    3.2 Edit OB1

    3.3 Enter PZD Process Data in OB1

    3.4 Enter PKW Parameter Data in OB1

    3.5 Save and Download OB1

  • Page 18 DROM 02066 Version 2.0 October 1, 1999

  • Version 1.0 January 12, 2000 DROM-02068 Page 19

    3.1 Create OB1

    A B

    CA

    Within SIMATIC Manager therewill be a Program File for theUploaded Station. Go into theBlocks Folder. This foldercontains all of the Objects in thePLC program as well as theSystem Data. System Datacontains the HardwareConfiguration if it was saved.You may choose to delete SFCsthat were Uploaded because theseare automatically reside in thePLC and do not need to beprogrammed.

    BRight Click in this window and choose to insert an Organizational Block.

    C By numbering the new Organizational Block OB1 this becomes the master block of theprogram. For simplicity we will program our communication interface from within OB1.We will program the drive data transfer for both PZD and PKW data areas within OB1.

    DDouble Click the new Icon for OB1 to launch into the LAD/STL/FBD Editor.

  • Page 20 DROM 02066 Version 2.0 October 1, 1999

    3.2 Edit OB1

    A

    B

    ASelect Program Elementsfrom the Hot button on theToolbar.

    BCreate four networks withtwo containing SFC15 andtwo containing SFC14. Thefirst pair (SFC15 & SFC14)will be used to program PZDdata transfer and the secondpair will be used to programPKW data transfer.

    Note: SFC15 & 14 arelocated in Program Elements /Libraries / Standard Libraries/ System Functions.

    Reference Table: Decimal and Hexadecimal Number Format

    Decimal (Dec) 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15Hexadecimal (Hex) 0 1 2 3 4 5 6 7 8 9 A B C D E F

    Place Value 4th 3rd 2nd 1st

    Decimal (Dec) 103 102 101 100

    Decimal Value 1000 100 10 1

    Hexadecimal (Hex) 212 28 24 20

    Decimal Value 4096 256 16 1

    Examples256 (Dec) = 100 Hex264 (Dec) = 108 Hex12 (Dec) = C Hex

    Note: Most Scientific Calculators Facilitate DEC/HEX Number Conversion.

    Example: Decimal to Hex340 Decimal

    340 256*1 = 84 3rd Place Hex = 184 16*5 = 4 2nd Place Hex = 54 1*4 = 0 1st Place Hex = 4

    340 Dec = 154 Hex

    Example: Hex to Decimal287 Hex

    2 * 256 = 5128 * 16 = 1287 * 1 = 7( 512 + 128 + 7 ) = 647 Decimal

    287 Hex = 647 Dec

    Right Click to insert Networks. Select LAD from the View Window

  • Version 1.0 January 12, 2000 DROM-02068 Page 21

    3.3 Enter PZD Process Data in OB1

  • Page 22 DROM 02066 Version 2.0 October 1, 1999

    3.4 Enter PKW Parameter Data in OB1

  • Version 1.0 January 12, 2000 DROM-02068 Page 23

    3.5 Save and Download OB1

    A

    A Save and Download OB1 to the PLCwith the Hot-buttons in the Toolbar.

    The OB1 is now configured for communication. Please proceed to thespecific section on PZD and PKW to learn how to appropriately pass datato the drives.

  • Page 24 DROM 02066 Version 2.0 October 1, 1999

  • Version 1.0 January 12, 2000 DROM-02068 Page 25

    PZD Process DataConfiguration

    Section 4 Table of Contents:

    4.1 Configure MASTERDRIVES

    4.2 Create VAT1

    4.3 Control Drive PZD Data via VAT Table

  • Page 26 DROM 02066 Version 2.0 October 1, 1999

  • Version 1.0 January 12, 2000 DROM-02068 Page 27

    4.1 Configure MASTERDRIVES

    A Parameterize Base Drive settings for the MASTERDRIVES.For VC (Vector Control) see Compendium.For MC (Motion Control) see Quick Startup Guide or Compendium.

    B See Function Diagrams [120] Profibus Receiving, [125] ProfibusTransmitting, and [180] Control Word 1. All Function Diagrams are in theCompendium for MASTERDRIVES.

    Receive WordsK Connectors =1 word (16 Bit)KK Connectors = 2 words (32 Bit)

    Receive BitsBinnector = 1 Bit

  • Page 28 DROM 02066 Version 2.0 October 1, 1999

    Control Word 1 is used to start andstop the drive. The Life Bit sent tothis Control Word MUST be highfor Profibus Connection to work.Life Bit (LB) is Bit 10 on [180].P554 is for ON/OFF1

    Output WordsDouble Words should beconnected in consecutivepairs. (K Connectors)

  • Version 1.0 January 12, 2000 DROM-02068 Page 29

    C Select ON/Off1 Command. P554 = B3100 [180] [120]Set Main Speed Setpoint. P443 = KK3033 [300] [120]Set Profibus Address P918 = 1 Note: P60 = 4 to change.

    DNote: P734.01 = K0032 (Status Word 1) by Default [125] [200]

    Set Transmit Double Word 3 to the Actual Speed Connector (KK091).P734.03 = KK0091 [360] [125]P734.04 = KK0091

  • Page 30 DROM 02066 Version 2.0 October 1, 1999

    4.2 Create VAT Table

    ARight Click in the Blocks Window from SIMATIC Manager and choose toinsert a Variable...

Recommended

View more >