siemens s7 plc and fc 300 profibus - files.· siemens s7 plc and fc 300 profibus mn.33.a1.02 - vlt

Download Siemens S7 PLC and FC 300 Profibus - files.· Siemens S7 PLC and FC 300 Profibus MN.33.A1.02 - VLT

Post on 20-Jul-2018

303 views

Category:

Documents

6 download

Embed Size (px)

TRANSCRIPT

  • VLT AutomationDrive FC 300

    Rev. 2005-04-28

    www.danfoss.com/drives

    175R1023 MN33A102

    *MN33A102*

    Application Note

    Siemens S7 PLC and FC 300 Profibus

  • Siemens S7 PLC and FC 300 Profibus

    1MN.33.A1.02 - VLT is a registered Danfoss trademark

    IntroductionThis application note describes how to setup a PROFIBUS system between a DanfossDrives FC 300 frequency converter and S7PLC 315-2 from Siemens.It is assumed that you are already familiarwith the Simatic S7 system.Only the steps which are required in orderto establish communication between the FC300 Profibus and the Simatic S7-315-2 DPPLC are shown.

    NOTE!:The examples do not describe all thefunctions needed for a real application, forexample error handling.

    This note describes: System description Configuring the Profibus network Downloading and troubleshooting Check of communication Simatic project for download

    Details of some of the components/software:FC 300 with PROFIBUS interface - sw.version 2.xx.FC 300 GSD version 2.00PLC S7-315-2 DP (6ES7 315-2AG10-0AB0 /V2.0)SIMATIC Manager version 5.3 + SP1

    System descriptionThe drawing shows the system in thisapplication note.On the PROFIBUS network the stations areprogrammed in the following way:S7 PLC 315-2 DP: Address number 1.FC 300: Address number 5 PPO Type 2Module consistent.

    www.infoPLC.net

  • MN.33.A1.02 - VLT is a registered Danfoss trademark2

    Siemens S7 PLC and FC 300 Profibus

    Configuring the Profibus networkStart the SIMATIC Manager and create anew project.Open Hardware configuration in S7 Managerto configure the system.

    In order to configure a PROFIBUS system,the configuration tool needs a GSD file foreach type of slave on the network. TheGSD file is a PROFIBUS DP "standard" textfile containing the necessary communica-tions setup data for a slave.Download the necessary GSD files athttp://www.danfoss.com/BusinessAreas/DrivesSolutions

    The first step in configuration of thePROFIBUS Master is to import the GSD file inthe configuration tool. The steps outlinedbelow show how to add a new GSD file tothe Simatic Manager software tool. Foreach drive series, a GSD file is typicallyimported once only, following the initialinstallation of the software tool.

    Using the browser for the GSD file, chooseto install the needed GSD files. Both theGSD file and a bitmap for the device will beimported into the Hardware catalogue.

    www.infoPLC.net

  • Siemens S7 PLC and FC 300 Profibus

    3MN.33.A1.02 - VLT is a registered Danfoss trademark

    Configuring the Profibus networkThe GSD file is now imported and will beaccessible via the following path in theHardware catalogue.

    Note that the GSD revision should display arevision higher than 2.00.

    Insert a Profibus network and add aPROFIBUS Master system. Setup theProfibus network to a baud rate from 9.6kbaud to 12 Mbaud.Select FC 300 from the Hardware catalogueand drag and drop it to the PROFIBUSnetwork.A window for the address of the FC 300now appears. Select the address from thescroll-down list. Note that this addresssetting must match the address setting inpar. 9-18 Node address.

    www.infoPLC.net

  • MN.33.A1.02 - VLT is a registered Danfoss trademark4

    Siemens S7 PLC and FC 300 Profibus

    Configuring the Profibus networkThe next step is to set up the peripheralinput and output data via a PPO type. Inthe peripheral area data is transmittedcyclically via PPO types. In the examplebelow, a PPO type 2 Module consistent isdragged and dropped to the first slot.The choice of PPO type is made in themaster configuration, and is then automati-cally recorded in the frequency converter.No manual setting of PPO types in the FC300 is required.The current PPO type can be read in par.9-22 Telegram selection.

    In addition, all PPO types can be set up asword consistent or module consistent.For FC 300, the process data area can beword or module consistent, whereas theparameter channel must always be moduleconsistent. Module consistent data istransmitted as sets of interrelated wordstransferred simultaneously between the PLCprogram and the Profibus master. Wordconsistent data is transmitted as individualindependent words between the PLC andthe Profibus master.

    www.infoPLC.net

  • Siemens S7 PLC and FC 300 Profibus

    5MN.33.A1.02 - VLT is a registered Danfoss trademark

    Configuring the Profibus networkThe system is now set up to use the PPOtype 2 in the following peripheral I/O area:

    Parameter Characteristic (PCA), i.e. readand write to parameters.

    Process data, i.e. write a Control word andReference and receiving a Status word andMain Actual Value.

    PQW means the data from the Master tothe Slave. By PCA the output data willcontain the request of a parameter read orwrite. By Process data the first word ofoutput data is the Control word of the FC300 and the next is the Reference. The restof the words can be freely configured totransmit different kind of data to the FC300 in parameter 915 PCD Write Configu-ration.

    PIW means the data from the Slave to theMaster. By PCA the input data will containthe response of a parameter read or write.By Process data the first word of input datais the Status word of the FC 300 and thenext is the Main Actual Value. The rest ofthe words can be freely configured totransmit different kind of process data inparameter 916 PCD Read Configuration. Seeexample on next page.

    Master to Slave Parameter channel (PCA) Process channel (PCD) PCD 1 PCD 2 PCD 3 PCD 4 PCD 5 PCD 6 PCA Index High

    PVA Low PVA

    Control word

    Reference Torque limit

    Ramp 1 up time

    Empty Empty

    PQW 256

    PQW 258

    PQW 260

    PQW 262

    PQW 264 PQW 266 PQW 268 PQW 270

    PQW 272

    PQW 274

    Slave to Master

    Parameter channel (PCA) Process channel (PCD) PCD 1 PCD 2 PCD 3 PCD 4 PCD 5 PCD 6 PCA Index High

    PVA Low PVA

    Status word

    Main Actual Value

    Motor current

    Frequency Digital input

    Empty

    PIW 256

    PIW 258

    PIW 260

    PIW 262

    PIW 264 PIW 266 PIW 268

    PIW 270 PIW 272

    PIW 274

    www.infoPLC.net

  • MN.33.A1.02 - VLT is a registered Danfoss trademark6

    Siemens S7 PLC and FC 300 Profibus

    Configuring the Profibus networkNormally the setup of the PCD area is donein parameter 915 PCD Write Configurationand 916 PCD Read Configuration via the LCPor the MCT 10 Setup Software. In FC 300 itis possible to automatic configure the PCDarea in the PLC via the GSD file in SimaticManager. The configuration of parameter915 and 916 is done when either the PLC orthe VLT is being power up via theparameterise telegram.

    Note that to configure the PCD area via thePLC the FC 300 and the GSD file need tohave a software version higher than 2.00.

    Double click on the FC 300 and the click onParameter assignment:

    By Device-specific parameters it is possibleto use the Scroll down list to setup the PCDarea. Remember to chose "EnableAutoconfig" for automatic configuration ofPCD data.P915/0 to P915/9 is process data writtenfrom the PLC to the FC 300, PQW area.P916/0 to P916/9 process data from the FC300 to the PLC, PIW area.

    www.infoPLC.net

  • Siemens S7 PLC and FC 300 Profibus

    7MN.33.A1.02 - VLT is a registered Danfoss trademark

    Configuring the Profibus networkThe Parameter channel can only be accessas consistent data and there for SystemFunction Call (SFC) are needed. In Simaticyou should use SFC 14 for reading data andSFC 15 for writing data.The Process channel can be access asmodule or word consistent. In this examplemodule consistent is used and thereforeagain SFC 14 / 15 is needed.If a PPO type 2 Word consistent waschosen the peripheral I/O area can beaccess in each word.

    www.infoPLC.net

  • MN.33.A1.02 - VLT is a registered Danfoss trademark8

    Siemens S7 PLC and FC 300 Profibus

    Downloading and troubleshootingSet the PLC in stop with the key on the PLCprocessor and download the program.Note that the FC 300 will show a Fieldbusfault while the PLC is in Stop mode.Before the PLC can be set in RUN modeensure that the node address in par. 918match the corresponding address in theprogram. Note that a change of parameter918 is first active at next power up.After the download of the PLC program theLED marked as "NS" on the Profibus cardshould be solid green when the key on theS7 master is set in RUN. This indicate thatthe master and slave is communicating.

    The LED marked "MS" indicates the modulestatus, i.e. acyclical DP V1 communicationfrom either a PROFIBUS master class 1(PLC) or a master class 2 (MCT 10, FDTtool). When this light shows constantgreen, then DP V1 communication frommaster classes 1 and 2 is active.

    If the "NS" LED on the FC 300 Profibus cardisn't solid green the fault could be:- Wrong address setting in parameter 918 Node address according to the master.- After changing the parameter 918 Node address the power hasnt been cycle.- Wrong cable connection, check the cable by the master and the FC 300. 62 = RxD/TxD-P Red cable 63 = RxD/TxD-N Green cable- The termination of the Profibus network isn't correct done.- Wrong GSD file. Check that the used GSD file is for FC 300.

    See the FC 300 Profibus OperatingInstruction for a more comprehensivetroubleshooting.

    Check of the communicationTo easily check the communication betweena Master and the FC 300 in the SimaticManager a Variable Table (VAT) can becreated.Go to S7 Programs and Blocks and create aVAT table.

    www.infoPLC.net

  • Siemens S7 PLC and FC 300 Profibus

    9MN.33.A1.02 - VLT is a registered Danfoss trademark

    Check of the communicationOpen the VAT table and insert a range ofvariable from PIW 256 of 10 word

Recommended

View more >