西门子自动化课程 32Word格式文档下载.docx
《西门子自动化课程 32Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《西门子自动化课程 32Word格式文档下载.docx(35页珍藏版)》请在冰豆网上搜索。
2.NotestotheOperationoftheCPU315-2DP6
4.CommissioningtheProfibus(MasterCPU315-2DP/SlaveCPU315-2DP)7
Thefollowingsymbolsstandforthespecifiedmodules:
Information
Programming
Exampleexercise
Notes
1.forward
ThemoduleD6isassignedcontentwisetoIndustrialfieldbussystems.
IT-Communication
withSIMATICS7
1-2daysEmodules
Sequencer
Programming
2-3daysCmodules
Process
visualization
2-3daysFmodules
Additionalfunctionsof
STEP7-Programming
2-3daysBmodules
Industrialfieldbus
systems
2-3daysDmodules
BasicsofSTEP7-Programming
2-3daysAmodules
Learninggoal:
Inthismodule,thereadershouldlearnhowthePROFIBUSDPistakenintooperationwiththeCPU315-2DPasamasterandaCPU315-2DPasaslave.Themoduleshowstheprincipleprocedurebymeansofashortexample.
Requirements:
Forthesuccessfuluseofthismodule,thefollowingknowledgeisassumed:
KnowledgeintheuseofWindows95/98/2000/ME/NT4.0
BasicsofPLC-ProgrammingwithSTEP7(e.g.ModuleA3-‘Startup’
PLCprogrammingwithSTEP7)
BasicsofthePROFIBUSDP(e.g.AppendixIV–Basicsof
fieldbussystemswithSIMATICS7-300)
Requiredhardwareandsoftware
1PC,OperatingsystemWindows95/98/2000/ME/NT4.0with
-Minimal:
133MHzand64MBRAM,approx.65MBfreeharddiskspace
-Optimal:
500MHzand128MBRAM,approx.65MBfreeharddiskspace
2SoftwareSTEP7V5.x
3MPI-InterfaceforthePC(e.g.PC-Adapter)
4PLCSIMATICS7-300withtheCPU315-2DPwithatleastonedigitalin-andoutput.
Exampleconfiguration:
-Network:
PS3072A
-CPU:
CPU315-2DP
-Digitalinputs:
DI16xDC24V
-Digitaloutputs:
DO16xDC24V/0.5A
5PLCSIMATICS7-300withtheCPU315-2DPandatleastonedigitalin-andoutput.
-Powersupply:
DO16xDC24V/0.5A
6PROFIBUScablewith2PROFIBUSslots
1PC
2STEP7
5S7-300with
CPU315-2DP
4S7-300with
6PROFIBUScable
2.NotesfortheoperationoftheCPU315-2DP
TheCPU315-2DPisaCPUthatismadeavailablewithanintegratedPROFIBUSDPinterface.
FortheCPU315-2DP,thefollowingPROFIBUSprotocolprofilesareavailableatyourdisposal:
-DP-InterfaceasamasterorslaveinaccordancewithEN50170.PROFIBUS-DP(DistributedI/O)istheprotocolprofilefortheconnectionofdistributedI/O/Fieldequipmentwithfastreactiontime.
Afurthercharacteristicisthattheaddressesofthein-andoutputmodulescanbeparameterizedbythisCPU.
TheCPUcapabilityisgivenwiththefollowingdata:
-16Kstatements.48KbyteRAM(integrated)80KbyteRAM
-1024ByteDI/DO
-128ByteAI/AO
-0.3ms/1KInstructions
-64Counters
-128Timers
-2048memorybits
Note:
Here,thetwoCPUs315-2DPareappointedtothePROFIBUS.
Oneasamasterandoneasaslave.
4.commissioningtheProfibus(Mastercpu315-2DP/SlaveCPU315-2DP)
Inthefollowingexample,thecommissioningofamonomastersystemwiththeCPU315-2DPasamasterandanotherCPU315-2DPasaslaveisdescribed.
Forthetestingoftheconfiguration,aprogramwillbewritteninwhichaninput(SET)canbepresetineachPLC.ThisbyteistransferredoverthePROFIBUStotheotherPLCandcanthenbedisplayedoveradisplaybyte(DISPLAY).
AssignmentlistMaster-CPU:
IB0SETInputbyte
IB40Comm_IB1InputcommunicationByte1
QB4DISPLAYDisplaybyte
QB40Comm_QB1OutputcommunicationByte1
AssignmentlistSlave-CPU:
IB40Comm_EB1InputcommunicationByte1
FortheconnectionofthetwoCPU315-2DP,wherebyoneissetasamasterandtheotherasaslave,thefollowingstepsmustbefollowed.
1.ThecentraltoolinSTEP7istheSIMATICManager,whichisopenedherewithadoubleclick(®
SIMATICManager).
2.STEP7-Programsareadministeredinprojects.Suchaprojectwillbecreated(®
File®
New).
3.GivetheprojecttheNameCPU315_CPU315(®
CPU315_CPU315®
OK)
4.
HighlightyourprojectandinsertaPROFIBUSSubnet(CPU315_CPU315InsertSubnetPROFIBUS).
5.TheninsertaSIMATIC300-Station(®
Insert®
Station®
SIMATIC300-Station).
6.ModifythenameofthestationtoSlave(®
Slave).
7.OpentheconfigurationtoolfortheHardwarewithadoubleclick(®
Hardware).
8.Openthehardwarecatalogwithaclickonthesymbol
(®
).
Thereyouwillseethedirectoriesaredividedintothefollowing:
-PROFIBUS-DP,SIMATIC300,SIMATIC400andSIMATICPCBasedControl,
allmoduleracks,modulesandinterfacemodulesfortheconfigurationofyourhardwareconfigurationaremadeavailable.
InsertaRailwithadoubleclick(®
SIMATIC300®
RACK-300®
Rail).
Aftertheinsert,aconfigurationstablefortheconfigurationoftheRack0appearsautomatically.
9.Nowallmodulescanbechosenoutofthehardwarecatalogandinsertedintotheconfigurationtableandarealsoinsertedintoyourrack.
Toinsert,youmustclickonthenameoftherespectivemodule,holdthemousebuttonandDrag&
Dropthemoduleintoalineoftheconfigurationstable.WewillbeginwiththepowersupplyPS3072A(®
PS-300®
PS3072A).
Ifyourhardwarediffersfromwhatisshownabove,thenyoumustselecttheappropriatemodulesfromthecatalogandinsertthemintotherack.Thepartnumbersoftheindividualmodules,whicharefoundonthecomponents,areindicatedinthefooterofthecatalog.
10.Inthenextstep,wedroptheCPU315-2DPintothesecondcardlocation.ThisallowsforthepartnumberandversionoftheCPUtobereadoff.(®
CPU-300®
CPU315-2DP®
6ES7315-2AF03-0AB0®
V1.1).
11.BytheenteringoftheCPU,thefollowingwindowappears,inwhichyouassignaPROFIBUSaddresstotheCPU315-2DPandmustalreadychoosethefirstPROFIBUSnet.WhenyouwanttoaltertheparameterofthePROFIBUSnet,youmusthighlightitandthenclickonProperties
(Properties).
12.NowyoucanchoosetheHighestPROFIBUSAddress(here126),theTransmissionRate(here1,5Mbit/s)andtheProfile(hereDP).(®
OK).
13.Inthenextstepweseetheinputmodulefor16inputsonfourthslot.Theretheordernumberofthemoduleisreadoffthefront(®
SIMATIC300®
DI-300®
SM321DI16xDC24V).
Slotnumber3isreservedforinterfacemodulesandremainsempty.Theordernumberofthemoduleisdisplayedinthefooterofthecatalog.
14.Inthenextstepweseetheoutputmodulefor16outputsonfifthslot.Theretheordernumberofthemoduleisreadoffthefront(®
DO-300®
SM322DO16xDC24V/0.5A).
Theordernumberofthemoduleisdisplayedinthefooterofthecatalog.
15.ChoosethePROFIBUSinterface‘DP’withadoubleclickinordertochangeittoDP-Slave(DP).
16.ChooseOperatingModeandchangeDPtoDPslave(OperationModeDPslave).
17.Inthefollowingdialogthedatarangeforthecommunicationtothemastercanbeset.
Mode:
Master/Slave
Outputrange:
Q40;
Length1byte;
Consistencybytheunitofaword
Inputrange:
I40;
ThisadjustmentisthenacceptedwithOK(®
OK).
18.Theconfigurationtableshouldfirstbesavedandcompiledwithaclickon
.Thenthehardwareconfigurationisclosedwithaclickonx(®
®
x).
19.InSIMATICManager,afurtherSIMATIC300-Stationisinsertedforthemaster(®
SIMATICManager®
20.ModifythenameofthestationtoMaster.(®
Master)
21.OpentheconfigurationtoolfortheHardwarewithadoubleclick(®
22.Openthehardwarecatalogwithaclickonthesymbol
Thereyouwillseethedirectoriesaredividedintothefollowing:
-PROFIBUS-DP,SIMATIC300,SIMATIC400andSIMATICPCBasedControl,
allmoduleracks,modulesandinterfacemodulesfortheconfigurationofyourhardwareconfigurationaremadeavailable.
23.Nowallmodulescanbechosenoutofthehardwarecatalogandinsertedintotheconfigurationtableandarealsoinsertedintoyourrack.
PS3