Configuration of S7-300 with CP343-5img.gongkong.com/tech/class/file/713.pdf · Application Note...
Transcript of Configuration of S7-300 with CP343-5img.gongkong.com/tech/class/file/713.pdf · Application Note...
Application Note
Configuration of S7-300 with CP343-5
for PROFIBUS-FMS
Hilscher Gesellschaft für Systemautomation mbHRheinstraße 15
D-65795 HattersheimGermany
Tel. +49 (6190) 9907 - 0Fax. +49 (6190) 9907 - 50
Sales: +49 (6190) 9907 - 0Hotline and Support: +49 (6190) 9907 - 99
Sales email: [email protected] and Support email: [email protected]
Web: http://www.hilscher.com
List of Revisions 2
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Index Date Chapter Revision
1 16.05.98 all Created
2 28.12.00 all STEP7 V5.0
Although this documentation has been written with great care, Hilscher Gesellschaft fürSystemautomation mbH cannot guarantee the suitability of this documentation for anypurpose not confirmed by us in writing.
Guarantee claims shall be limited to the right to require rectification. Liability for anydamages which may have arisen from the use of this documentation shall be limited tocases of intent.
We reserve the right to modify our documentation, products and their specifications at anytime in as far as this contributes to technical progress. The version of the manual suppliedwith the program applies.
Table of Contents 3
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
1 INTRODUCTION.................................................................................................. 4
2 HINTS AND VALIDITY......................................................................................... 4
3 STEPS.................................................................................................................. 5
3.1 Project ......................................................................................................................................... 5
3.2 Stations ....................................................................................................................................... 53.2.1 S7-300 Station...................................................................................................................... 53.2.2 CIF in PC Station.................................................................................................................. 6
3.3 Subnet ......................................................................................................................................... 6
3.4 Other Station .............................................................................................................................. 7
3.5 Hardware Configuration S7 300 Station ................................................................................ 113.5.1 The Rail .............................................................................................................................. 123.5.2 The Power Supply .............................................................................................................. 133.5.3 The CPU............................................................................................................................. 143.5.4 The CP and the Bus Parameters ....................................................................................... 163.5.5 Download the Hardware Configuration .............................................................................. 203.5.6 Save and Exit the Hardware Configurator.......................................................................... 21
3.6 Data Blocks............................................................................................................................... 22
3.7 Symbols (Object Directory)..................................................................................................... 25
3.8 Connections (Communication Reference List)..................................................................... 30
3.9 Program Download .................................................................................................................. 38
4 DIAGNOSTIC ..................................................................................................... 39
4.1 CP Information ......................................................................................................................... 39
4.2 Diagnostic Buffer ..................................................................................................................... 40
4.3 Operating Mode........................................................................................................................ 41
4.4 Nodes ........................................................................................................................................ 42
4.5 Bus Parameters........................................................................................................................ 43
4.6 Statistics ................................................................................................................................... 44
4.7 Connections ............................................................................................................................. 454.7.1 FMS.................................................................................................................................... 464.7.2 FMS connection1 ............................................................................................................... 474.7.3 Reporting Variables............................................................................................................ 484.7.4 Variables Partner................................................................................................................ 494.7.5 Jobs.................................................................................................................................... 504.7.6 Details Requester............................................................................................................... 514.7.7 Details Responder.............................................................................................................. 52
Introduction 4
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
1 Introduction
This manual describes the configuration of an S7-300 PLC with CP 343-5 forPROFIBUS-FMS.
2 Hints and Validity
• This manual describes the S7-300 as Server on PROFIBUS-FMS
• STEP7 Version 5.0 SP 3 under Windows 95 (already installed)
• NCM Version 5.0 SP3 under Windows 95 (already installed)
Steps 5
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
3 Steps
3.1 Project
The first step is to create a project. To create a project selct menu File > New.Enter the name for the project, e.g. CIF
3.2 Stations
This manual describes the configuration for two stations, a S7-300 and a PCstation with a CIF communication interface inside.
The next steps are to insert these two stations.
3.2.1 S7-300 Station
To insert the S7-300 station select menu Insert > Station > SIMATIC 300Station.
Steps 6
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
3.2.2 CIF in PC Station
To insert the S7-300 station select menu Insert > Station > Other Station.
Assign the station name, e.g. PC-CIF.
3.3 Subnet
To create a PROFIBUS subnet select menu Insert > Subnet > PROFIBUS.
Assign the subnet name, e.g. PROFIBUS-FMS.
Station S7-300 and the PC-CIF station will be linked to the subnet PROFIBUS-FMS in later steps.
Steps 7
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
3.4 Other Station
To set the station address, to link the station to the subnet PROFIBUS-FMS andto set the bus parameters start in S7 manager
and select the menu Edit > Open Object or double click the icon of the stationPC-CIF (Other Station).
Select Interfaces.
Steps 8
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Select New.
Select the type PROFIBUS interfaces and press OK
Steps 9
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Select the subnet PROFIBUS-FMS. Assign the PROFIBUS station address, e.g.station address 2.
Select Properties.
Select Network Settings.
Steps 10
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Select the Transmission Rate, e.g. 1.5 Mbit/s and select the Profile, e.g. Profilestandard.
The bus parameters will be set later when configuring the S7-300 station.
Press several times OK.
Steps 11
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
3.5 Hardware Configuration S7 300 Station
Open the software for hardware configuration of the S7 station.
Select the icon Hardware. Then select the menu Edit > Open Object or doubleclick the Hardware icon to start the Hardware Configurator.
Select the menu View > Catalog.
Select now step by step the hardware components of the S7 300 station.
Steps 12
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
3.5.1 The Rail
Steps 13
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
3.5.2 The Power Supply
Steps 14
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
3.5.3 The CPU
Select for example CPU 315-2DP.
Because this CPU type is usable for PROFIBUS-DP the following windowappears.
Press OK.
Steps 15
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Press No and then again press No.
Press OK.
Steps 16
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
3.5.4 The CP and the Bus Parameters
Select the PROFIBUS subnet PROFIBUS-FMS that was created above.
Set the PROFIBUS address, e.g address 4.
Steps 17
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Select Properties to open the following window.
Steps 18
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Select Network Settings to open the following window.
Select the Transmission Rate, e.g. 1.5 Mbit/s.
Select the Profile, e.g. the standard profile. The profile standard is for networkswith multi masters and masters that are using ASICs like ASPC2.
Set the HSA (Highest Station Address).
Steps 19
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Select Bus Parameters to open the following window.
These values are important and have to be the same on all stations connected toa network! If you want to connect stations that needs other bus parameters thenyou have to select the Profile User-defined and set the bus parameterspropperly.
Close the window by pressing OK.
Steps 20
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Press several times OK to reach the following window.
3.5.5 Download the Hardware Configuration
Select the menu PLC > Download to Module.
Select All and press OK.
Steps 21
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Press OK.
The Download Window shows Module currently beeing processed [0/2/0] CPU315-2DP(1) and the Download Window shows Module currently beeingprocessed [0/4/0] CP 343-5(1).
3.5.6 Save and Exit the Hardware Configurator
Select menu Station > Save and the select the menu Station > Exit.
Steps 22
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
3.6 Data Blocks
The data block contains the values that are read and write over the PROFIBUS-FMS. First the data blocks have to be created.
Select Insert > S7 Block > Data Block. Enter the number of the data block, e.g.DB100.
Press OK.
Steps 23
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Now the data block appears in the block container.
Create also a data block DB110 here.
Select DB100 and then select the menu Edit > Open Object or double click theicon of DB100.
The software LAD/STL/FBD starts.
Press OK.
Steps 24
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Enter name, type and initial value of DB100. This data block is an example for asimple variable (object) for PROFIBUS-FMS. An example for an array will follow.
Select the menu File > Save.
A data block that contains an array is shown in the next window.
Select the menu File > Save.
Select the menu File > Exit.
Steps 25
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
3.7 Symbols (Object Directory)
To make the data blocks available for communication symbols have to becreated.
Select the icon symbols and then select the menu Edit > Open Object or doubleclick the icon Symbols.
The software Symbol Editor starts and you see an empty symbol table.
Enter the Symbol and the address. Enter for example the symbol Obj100 and theAddress DB 100. Enter for example the symbol Obj110 and the Address DB 110.
Then for each symbol select the menu Edit > Special Object Properties >Communication.
Steps 26
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Start to set the Communication properties for Obj100.
Set Use Symbol as Communication Variable to active.
Steps 27
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Select Structure. Set for simple variable Symbolic Access to To EntireVariable. Set the FMS Index that is the Object index on PROFIBUS-FMS to 100.Object 100 is now assigned to symbolic variable Obj100 that was assigned toDB100 before.
Press OK.
Steps 28
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
The set the Communication properties for Obj110.
Set Use Symbol as Communication Variable to active.
Steps 29
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Select Structure. Set for array variables Symbolic Access to To FirstStructure Level of a DB. Set the FMS Base Index that is the Object index onPROFIBUS-FMS to 110. Object 110 is now assigned to symbolic variable Obj100that was assigned to DB110 before. Set the Number of reserved indexes to 1.
Select the menu Symbol Table > Save.
Select the menu Symbol Table > Exit.
Steps 30
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
3.8 Connections (Communication Reference List)
To create connections
select the icon Connections and the menu Edit > Open Object or double clickthe icon Connection.
The NetPro software starts.
Steps 31
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Select Insert > New Connection.
Set the Connection Partner > Station to Station PC-CIF and set theConnection > Type to FMS Connection.
Communication reference 1 now appears in the table.
Select this line of the table and select the menu Edit > Object Properties.
Steps 32
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Select Station Profile to General FMS Master. Select Options.
Set the (Addresses) Local SAP, e.g. 2 and set the Remote SAP, e.g. 2.
Steps 33
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Select Details.
Set the Control Interval to 0. Press OK.
Steps 34
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Select Services.
Steps 35
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Select Partner Variables.
Set Read Communications Partner Variable Description to None.
Steps 36
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Select Reporting Variables.
There are no entries here.
Steps 37
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
Select Access.
Use the default settings.
Finally, press OK.
Select the menu Network > Save and Compile and then Compile and CheckEverything. There should be No errors.
Select the Station SIMATIC 300(1) and then select menu PLC > Download >Selected Stations.
Select the menu Network > Exit.
Steps 38
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
3.9 Program Download
Now download the data blocks and the program. Select blocks.
Select the menu PLC > Download.
The set the PLC and the CP into RUN mode.
Diagnostic 39
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
4 Diagnostic
To activate the diagnostic select in the project window the CP343-5 and selectEdit > Object Properties. A message appears that The data are read-only.
Then select Diagnostic and Run.
4.1 CP Information
Diagnostic 40
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
4.2 Diagnostic Buffer
Diagnostic 41
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
4.3 Operating Mode
Diagnostic 42
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
4.4 Nodes
Diagnostic 43
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
4.5 Bus Parameters
Diagnostic 44
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
4.6 Statistics
Diagnostic 45
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
4.7 Connections
Diagnostic 46
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
4.7.1 FMS
Diagnostic 47
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
4.7.2 FMS connection1
Diagnostic 48
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
4.7.3 Reporting Variables
Diagnostic 49
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
4.7.4 Variables Partner
Diagnostic 50
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
4.7.5 Jobs
Diagnostic 51
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
4.7.6 Details Requester
Diagnostic 52
Copyright * Hilscher Gesellschaft für Systemautomation * An:S7FMS#2E
4.7.7 Details Responder