(d0301)profibus quick startup guide v1.0

43
Version 1.0 January 12, 2000 DROM-02068 Quick Startup Guide for STEP-7 S7-300 & S7-400 PROFIBUS CONNECTIVITY TO SIMOVERT MASTERDRIVES 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

Upload: mr3478

Post on 28-Dec-2015

72 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: (D0301)Profibus Quick Startup Guide V1.0

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: (D0301)Profibus Quick Startup Guide V1.0

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: [email protected]

Page 3: (D0301)Profibus Quick Startup Guide V1.0

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 purchaser’s 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: (D0301)Profibus Quick Startup Guide V1.0

Page 4 DROM 02066 Version 2.0 October 1, 1999

Page 5: (D0301)Profibus Quick Startup Guide V1.0

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: (D0301)Profibus Quick Startup Guide V1.0

Page 6 DROM 02066 Version 2.0 October 1, 1999

Page 7: (D0301)Profibus Quick Startup Guide V1.0

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: (D0301)Profibus Quick Startup Guide V1.0

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”

Page 9: (D0301)Profibus Quick Startup Guide V1.0

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: (D0301)Profibus Quick Startup Guide V1.0

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 MasterDrive’s 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.

Page 11: (D0301)Profibus Quick Startup Guide V1.0

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: (D0301)Profibus Quick Startup Guide V1.0

Page 12 DROM 02066 Version 2.0 October 1, 1999

Page 13: (D0301)Profibus Quick Startup Guide V1.0

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: (D0301)Profibus Quick Startup Guide V1.0

Page 14 DROM 02066 Version 2.0 October 1, 1999

Page 15: (D0301)Profibus Quick Startup Guide V1.0

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 section’s examples.

Page 16: (D0301)Profibus Quick Startup Guide V1.0

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 section’s examples.

Page 17: (D0301)Profibus Quick Startup Guide V1.0

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: (D0301)Profibus Quick Startup Guide V1.0

Page 18 DROM 02066 Version 2.0 October 1, 1999

Page 19: (D0301)Profibus Quick Startup Guide V1.0

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 the“Blocks” 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: (D0301)Profibus Quick Startup Guide V1.0

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

Page 21: (D0301)Profibus Quick Startup Guide V1.0

Version 1.0 January 12, 2000 DROM-02068 Page 21

3.3 Enter PZD Process Data in OB1

Page 22: (D0301)Profibus Quick Startup Guide V1.0

Page 22 DROM 02066 Version 2.0 October 1, 1999

3.4 Enter PKW Parameter Data in OB1

Page 23: (D0301)Profibus Quick Startup Guide V1.0

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: (D0301)Profibus Quick Startup Guide V1.0

Page 24 DROM 02066 Version 2.0 October 1, 1999

Page 25: (D0301)Profibus Quick Startup Guide V1.0

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: (D0301)Profibus Quick Startup Guide V1.0

Page 26 DROM 02066 Version 2.0 October 1, 1999

Page 27: (D0301)Profibus Quick Startup Guide V1.0

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: (D0301)Profibus Quick Startup Guide V1.0

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)

Page 29: (D0301)Profibus Quick Startup Guide V1.0

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: (D0301)Profibus Quick Startup Guide V1.0

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 Table.

Name the VAT Table. Example = VAT1.

B Double Click the VAT Table Icon to launch the “Monitor and Modify” VATEditor.

Page 31: (D0301)Profibus Quick Startup Guide V1.0

Version 1.0 January 12, 2000 DROM-02068 Page 31

C D

CEnter the Variables that you wish to observe. Remember for this exampleMW16 – MW26 are used for the PZD Transmit Data and MW36 – MW46 areused for PZD Receive Data.Note: The Symbol Editor can be used to name your variables.

D Select “Establish Online Connection” from the Hot Buttons.Select “Monitor Online” Eyeglass Icon from the Hot Buttons.Note that the PLC selection switch should be in the RUN-P Mode.

EObserve the Online values returned from the drive. The Status Word Codewill be displayed in HEX. To display numbers in Binary or decimal, rightclick on the Format Column.

Note that returned value error codes can be evaluated by looking at MW50 &MW52 as programmed in OB1. Selecting the OB1 Network in question andpressing the F1 key will launch the STEP 7 help menu that lists error codes.

Page 32: (D0301)Profibus Quick Startup Guide V1.0

Page 32 DROM 02066 Version 2.0 October 1, 1999

4.3 Control Drive PZD Data Via VAT Table

A

B

AInsert values to be modified in the Modify Column.MW16 was selected as Control Word 1. In order to turn the drive on Bit 0 and Bit10 must be asserted. Bit 10 is the Life Bit. Note that the right most bit is the leastsignificant (Bit 0). To view the Binary format of MW16 right-click the Formatcolumn and select Binary.

The 3rd and 4th words that are transmitted are used as the speed reference. The 3rd

word is the high word and the 4th word is the low word. Note that 4000 Hexrepresents 100% speed and 1000 Hex represents 25% speed in the 3rd word. Thefourth word is of lower significance, however it can be used to set very slow speeds.

B Assert the Modified Values by clicking the “Modify” Hot Button. This looks like alighting bolt. CAUTION: THE DRIVE WILL TURN ON AND THE MOTORWILL TURN AT THE SETPOINT SPEED.

PZD Data Modification is now complete. This demonstration outlines how toconfigure the drive, soft-wire binectors and connectors, create a VAT table, andmodify values. Note that for applications, modifications would be written into thePLC code to change the appropriate Memory Words and Memory Bits.

Page 33: (D0301)Profibus Quick Startup Guide V1.0

Version 1.0 January 12, 2000 DROM-02068 Page 33

PKW Parameter DataConfiguration

Section 5 Table of Contents:

5.1 Configure MASTERDRIVES

5.2 PKW Telegraph Word Format

5.3 Create VAT2

5.4 Change PKW Parameters via VAT Table

Page 34: (D0301)Profibus Quick Startup Guide V1.0

Page 34 DROM 02066 Version 2.0 October 1, 1999

Page 35: (D0301)Profibus Quick Startup Guide V1.0

Version 1.0 January 12, 2000 DROM-02068 Page 35

5.1 Configure MASTERDRIVE

Verify that Profibus Address is set.

P918 = 1 (Address) Note: P60 = 4 to change.

Set Operator Control Rights

P53 = 1 allows Parameterization by CBP Profibus Board.P53 = 7 allows Parameterization by CBP Profibus Board,

PMU Operator Interface and Serial Comm Interface.

Page 36: (D0301)Profibus Quick Startup Guide V1.0

Page 36 DROM 02066 Version 2.0 October 1, 1999

5.2 PKW Telegraph Word FormatPKW 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)

Word 1 Consists of the Task ID and the Parameter Number.

For this example we choose Task 12 (Decimal). This will change a single word parameter andstore the results in the MASTERDRIVE EEPROM. Note that if the EEPROM Task is notselected the changes will only occur in RAM and this state will not exist after a power cycle. Ifa parameter is going to be continuously changed by the program the parameter should be storedin the drive’s RAM because the EEPROM can only be written to a limited amount of times.

The Task and Parameter Number will be passed over via a VAT Table. We will need to convertthis into Hexadecimal format.

Word 1 Format:Bits 0 to 10 represent the Parameter Number.Bit 11 is the toggle bit for parameter change reports.Bits 12 to 15 contain the task ID and reply ID

Bits 15 14 13 12 ~ 11 10 9 8 ~ 7 6 5 4 ~ 3 2 1 0Decimal ---- 12 ----- ------------- P554 ------------Binary 1 1 0 0 ~ 0 0 1 0 ~ 0 0 1 0 ~ 1 0 1 0HEX ---- C ------ ---- 2 ---- ~ --- 2 --- ~ --- A---

Therefore for PKW Word 1 will transmit C22A Hex to change P554 in the drive’s EEPROM.

Page 37: (D0301)Profibus Quick Startup Guide V1.0

Version 1.0 January 12, 2000 DROM-02068 Page 37

Word 2 Consists of the Array Sub-Index and the MASTERDRIVE specific Page Select.

For cyclical communication by means of PPOs the following word arrangement is used.Bits 0 to 7 are used for Page SelectionBits 8 to 15 are used for the Parameter Index.

Page Selection:

Parameter designation Serial Required addressing of the(acc. to parameter list) parameter parameter via PROFIBUS

number PNU PNU Bit #0 [decimal] [hex.] P000 - P999 (r000 - r999) 0 - 999 0 - 999 0 - 3E7 = 0H000 - H999 (d000 - d999) 1000 - 1999 1000 -1999 3E8 - 7CF = 0U000 - U999 (n000 - n999) 2000 - 2999 0 - 999 0 - 3E7 = 1L000 - L999 (c000 - c999) 3000 - 3999 1000 - 1999 3E8 - 7CF = 1

For our example we are changing P554, therefore the Page Selection Bit #0 = 0 and Bits 0 to 7 = 0.

Parameter Index:

P554 is an indexed parameter. The MASTERDRIVE has BICO Data Sets to change it’sconfiguration without reprogramming. This utilizes index parameters. By default the first index isthe active Data Set, therefore we must select index one of P554.

Indexed parameters may range from 0 to 255 Decimal, 0 to FF Hex. To indicate the Index = 1, the8th bit =1. (Example: If the Index = 2, then 9th bit = 1 and 8th bit = 0)

Word 2Bits 15 14 13 12 ~ 11 10 9 8 ~ 7 6 5 4 ~ 3 2 1 0Binary 0 0 0 0 ~ 0 0 0 1 ~ 0 0 0 0 ~ 0 0 0 0HEX ---- 0 ------ ---- 1 ---- ~ --- 0 --- ~ --- 0---

PKW Word 2 is 0100 Hex. This represents the first index of a Parameter in the range of 0 – 1999.

Word 3 & Word 4 Consists of the data to be transferred.

The parameter value (PWE) is always transferred as a double word (32 bit).PWE is split into PWE1 and PWE2 (16 bit).

PWE1 (Most Significant Word, 3rd Word)PWE2 (Least Significant word, 4th Word).

A 32-bit parameter value is composed of PWE1 and PWE2.A 16 bit parameter value is transferred in PWE2, in the case that you have set PWE1 to 0.

Hex values are used to set the parameter value. This Example passes two different 16 bit parameter.PWE1 (3rd Word) =HEX ---- 0 ------ ---- 0 ---- ~ --- 0 --- ~ --- 0--- -- 0 ---- ---- 0 --- ~ --- 0 --- ~ --- 0---PWE2 (4th Word) = ORHEX ---- 3 ------ ---- 1 ---- ~ --- 0 --- ~ --- 0--- -- 0 ---- ---- 0 --- ~ --- 2 --- ~ --- 0---

Therefore PKW Words 3 & 4 will transmit either 3100 Hex or 0020 Hex to change P554 On/Offcommand from the Profibus Receive OR Digital Input 6.

Page 38: (D0301)Profibus Quick Startup Guide V1.0

Page 38 DROM 02066 Version 2.0 October 1, 1999

PKW Reply ID

The reply from the drive after requesting a parameter or changing a parameter is significant because aReply ID code is generated that will indicate if the Task was successfully completed. In the TaskTable Positive and Negative IDs are indicated.

The significance of the reply is listed in the tables below. Please note that the returned values fromthe drive are in Hexadecimal and will need to be converted back to decimal.

Reply ID (Decimal) Significance 0 No reply1 Transfer parameter value (word)2 Transfer parameter value (double word)3 Transfer description element4 Transfer parameter value (array, word)5 Transfer parameter value (array, double word)6 Transfer the number of array elements7 Task cannot be executed (with error number)8 No operator change rights for the PKW interface9 Parameter change report (word)10 Parameter change report (double word)11 Parameter change report (array, word)12 Parameter change report (array, double word)13 Reserved14 Reserved15 Transfer text (not with CBP)

Error Number Significance Cause (Decimal)0 Non-admissible parameter No. (PNU) If the PNU does not exist1 Parameter value cannot be changed If the parameter is a visualization parameter2 Upper or lower limit exceeded −3 Erroneous subindex −4 No array −5 Incorrect data type −6 Setting not allowed (can only be reset) −7 Description element cannot be changed Generally not possible for MASTERDRIVES11 No operator control rights Check P5312 Key word missing Drive converter parameter "access key" and/or

"parameter special access" not correctly set15 No text array available −17 Task cannot be executed due to operating Drive converter status does not permit the present

status task101 Parameter number deactivated at present Specific to MASTERDRIVES102 Channel width too small Specific to MASTERDRIVES: only for short channels103 Incorrect number of PKWs Specific to MASTERDRIVES: only for G-SST1/2

and SCB interface (USS)104 Parameter value not admissible Specific to MASTERDRIVES105 The parameter is indexed e.g. task: "PWE, change word" for indexed

parameters106 Task not implemented

Error Number corresponding to ID Code 7

Page 39: (D0301)Profibus Quick Startup Guide V1.0

Version 1.0 January 12, 2000 DROM-02068 Page 39

5.3 Create VAT2

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

Name the VAT Table. Example = VAT2.

B Double Click the VAT Table Icon to launch the “Monitor and Modify” VATEditor.

Page 40: (D0301)Profibus Quick Startup Guide V1.0

Page 40 DROM 02066 Version 2.0 October 1, 1999

C D

CEnter the Variables that you wish to observe. Remember for this exampleMW8 – MW14 are used for the PKW Transmit Data and MW28 – MW34 areused for PKW Receive Data.Note: The Symbol Editor can be used to name your variables.

D Select “Establish Online Connection” from the Hot Buttons.Select “Monitor Online” Eyeglass Icon from the Hot Buttons.

EObserve the Online values returned from the drive.

Note that returned value error codes can be evaluated by looking at MW54 &MW56 as programmed in OB1. Selecting the OB1 Network in question andpressing the F1 key will launch the STEP 7 help menu that lists error codes.

Page 41: (D0301)Profibus Quick Startup Guide V1.0

Version 1.0 January 12, 2000 DROM-02068 Page 41

5.4 Change PKW Parameters via VAT Table

A

B

AInsert values to be modified in the Modify Column.MW 8 is PKW Transmit Word 1 = C22A HexMW 10 is PKW Transmit Word 2 = 0100 HexMW 12 is PKW Transmit Word 3 = 0000 HexMW 14 is PKW Transmit Word 4 = 3100 Hex OR 0020 Hex

BAssert the Modified Values by clicking the “Modify” Hot Button. This looks like alighting bolt. The selected Parameter will change. Verify that you get the correctReply ID Code back from the drive. Turn the drive on using either the PZD VATTable 1 from the previous example or Digital Input 6.

CPKW Parameter Data Modification is now complete. This demonstration outlineshow to configure the drive, construct PKW Transmit Words, evaluate error codes,create a VAT table and modify values. Note that for applications, modificationswould be written into the PLC code to change the appropriate Memory Words andMemory Bits.

Page 42: (D0301)Profibus Quick Startup Guide V1.0

Page 42 DROM 02066 Version 2.0 October 1, 1999

Page 43: (D0301)Profibus Quick Startup Guide V1.0

Version 1.0 January 12, 2000 DROM-02068 Page 43

Summary

Section 6:As shown in this Quick Startup Guide, SIMATIC S7-300 & S7-400 PLCs can easily be connected tothe Simovert MASTERDRIVE Series Drives. This Guide was designed to guide the user in simpleProfibus Connectivity. All communication and control between the drive and PLC can beaccomplished using the simple methods outline within this guide.

For more complete information refer to the operating instructions for the PLC and the compendium forthe drive.

More complex control schemes are available for communication between drive and PLC. These controlscheme utilize predefined Data Blocks written into the PLC operation. For larger integrated systemsthese programs may be worth investigating. The DVA-S7 communication package is available forSTEP 7 & MASTERDRIVE interface. GMC – Basic communications package is available for theMotion Control MASTERDRIVES. These communication packages allow the user to program severaldrive parameter sets that are organized into Data Blocks.

To launch Simovis from within STEP7 the DVA-S7 Package or GMC Basic package is required.

For simple applications in communication and drive control it is recommended to use the connectivitymethod outlined within this guide.

Documentation and Software

General Motion Control CD Part # DRMS-02053 No ChargeIncludes: MASTERDRIVE MC Compendium

MASTERDRIVE MC Hardware ManualMASTERDRIVE MC Quick Startup GuideGMC BASIC Software (Includes Object Manager, DPV1 Services for MC)SIMOVIS Software

MASTERDRIVE VC CD Part # DRMS-02051 No ChargeIncludes: MASTERDRIVE VC Compendium

MASTERDRIVE VC Hardware ManualSIMOVIS Software

DVA-S7 Software Package Part # 6SX70050CB00 Charge

Documentation can be ordered through Innotrac @ (678) 584-4000 or email: [email protected] of charge. The DVA-S7 Package must be purchased.