热门文档
- 2022-09-12 21:57:50 《HVD100系列通用变频器简易手册》-〖中文〗
- 2022-09-12 21:57:50 《CP520系列变频器用户手册》
- 2022-09-12 23:38:53 《中型PLC编程软件使用手册》
- 2022-09-12 23:59:15 《SV660N系列伺服选型手册》
- 2022-09-14 23:13:11 阿尔法6000E&6000M系列 电流矢量变频器说明书中文版
- 2022-09-12 23:59:15 19010795《SV660P系列伺服设计维护使用手册》
- 2022-09-12 23:38:53 AM400系列可编程控制器(NPN输出)用户手册
- 2022-09-13 22:07:40 H5U&Easy系列可编程逻辑控制器指令手册-CN-A10
- 2022-09-12 23:41:04 《IT7000系列人机界面(电容屏)用户手册》
- 2022-09-12 23:24:32 汇川-H3U系列可编程逻辑控制器简易手册版本号:V1.0
- 2022-09-12 21:57:50 《MD500系列Profinet扩展卡说明书》-〖英文〗
- 2022-09-12 23:24:32 H5U系列可编程逻辑控制器用户手册(无CAN和凸轮)

1、本文档共计 0 页,下载后文档不带水印,支持完整阅读内容或进行编辑。
2、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
4、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。 免责声明: 版权:我们作为资源的整理方,所有资源均来自互联网的优秀作者们,版权归原作者或企业所有。
申明:任何使用本站收集的资源产生的不测后果,本站不对此负任何责任。
2、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
4、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。 免责声明: 版权:我们作为资源的整理方,所有资源均来自互联网的优秀作者们,版权归原作者或企业所有。
申明:任何使用本站收集的资源产生的不测后果,本站不对此负任何责任。
1 Introduction1.1 Overview1Introduction1.1OverviewWith the SIMATIC S7-PLCSIM Advanced virtual controllers for the simulation of aS7-1500 or ET 200SP CPU are created and used for the prehensive simulationof functions.Therefore no real controllers are required to test a STEP 7 program.The virtual controllers can also be tested and validated in the context of a systemor machine.The user interface (API)is used to connect the virtual controller to aplant/system or machine simulation (co-simulation).Figure 1-1:OverviewReal worldS7-1500PLCSIM AdvancedHardware ControllerVirtual S7-1500 Controller1d010010101110101011101001010101110100110111100APICo-SimulationAdvantages of the application exampleIntroduction to the use of APl.C#example code on which you can establish your own applicationsTopics not covered by this applicationThis application example does not contain a description of the following topics:Basics of object-oriented programmingBasics of programming environment,for example,Microsoft Visual Studio.Basics of TIA Portal configurationSufficient knowledge of these topics is assumed.S7-PLCSIM AdvancedEntry ID:109739660.V1.0,12/201641 Introduction1.2 Mode of OperationSTEP 7(TIA Portal)programA STEP 7 program created in STEP 7 V14(details see chapter 3.2.1)controls aconveyor system.For a prehensive function test,the STEP 7 program isloaded via S7-PLCSIM Advanced into a virtual S7-1500 controller.This controllerinteracts via the API with a co-simulation(system simulation),in order to validatethe STEP 7 program in the context of the system.The material handling system to be controlled consists of two transport belts andtwo robot arms.The following input and output tags are defined so that thecontroller municates with the material handling system:Table 1-1:Input and output tagsTagsDataTypeDescriptionty pesensorStartPosBOOLInputSensor signal:Starting positionsensorBeltStartPosBOOLInputSensor signal:Starting position transportbelt 1sensorBeltDestBOOLInputSensor signal:Target position transportbelt 1sensorEndPosBOOLInputSensor signal:End positionBOOLOutputControl signal:Enable robot arm 1moveBeltActiveBOOLOutputControl signal:Enable transport belt 1setOffBeltActiveBOOLOutputControl signal:Enable robot arm 2releaseActiveBOOLOutputControl signal:Enable transport belt 2BOOLOutputControl signal:Acknowledge errorrestartActiveBOOLOutputControl signal:Restart systemThe according control signal is activated based on the active sensor signals.Fortransport belt 1 (moveBeltActive)a monitoring time of 5 s is configured.If thepackage does not reach the target position within this time,an error for a fallendown package is shown ("Package down").You can then restart the system oracknowledge the error when you put the package back on the transport belt 1.Figure 1-3:Overview of the conveyor systemsensorBeltDestsensorEndPosRobot arm1Robot arm2moveBeltActivereleaseActiveTransport belt 1Transport belt 2setOffBeltActive(Package down)acknowledgeActiveS7-PLCSIM AdvancedEntry ID:109739660,V1.0.12/201661 Introduction1.2 Mode of OperationThe visualization of the system is simulated with WinCC Runtime.The system canbe monitored and controlled in WinCC Runtime via an HMI screen:Restart(restartActive)Acknowledge error (acknowledgeActive)C#programIn the external application (C#program)the following is programmed:Functions of the user interface (Runtime APl)in order to interact with thevirtual controller of S7-PLCSIM Advanced.System simulation of the conveyor system (co-simulation).The co-simulation reacts to the control signals (outputs)of the virtual controller andsimulates all required sensor signals (inputs)for the simulation of the sequentialcontrol (details chapter 3.2.2).For the exchange of the VO data the Runtime API writes and reads from thememory area that is synchronized on the cycle control point with the intemnalprocess image of the virtual S7-1500 controller.Table 1-2:Data exchangeVirtual ControllerData exchangeCo-SimulationsetOnBeltActivesetOnBeltActivemoveBeltActivemoveBeltActivesetOffBeltActivereleaseActivereleaseActiverestartActiverestartActivesensorStartPossensorStartPossensorBeltStartsensorBeltStartsensorBeltDestsensorBeltDestsensorEndPossensorEndPosWith the co-simulation you can simulate or remove errors,for example,drop apackage or place a dropped package back on transport belt 1.NoteThe machines of the conveyor system are simulated in a non-realistic way in theco-simulation.The movements are only simulated by a time constant.S7-PLCSIM AdvancedEntry ID:109739660,V1.0.12/201671 Introduction1.3 Components used1.3Components usedHardwareNoteNo real hardware is used in this application example.All hardware ponentsconfigured are simulated.Table 1-4:Hardware ponentsComponentNumbeArticle numberNoteCPU 1516-3 PN/DP16ES7516-3AN01-0AB0V2.0TP900 Comfort16AV2124-0JC01-0AX0V14.0.0.0SoftwareTable 1-5:Software ponentsComponentNumberArticle numberSTEP 7 Professional V146ES7822-1AE04-0YA5WinCC Advanced V14人6AV2102-0AA04-0AH5S7-PLCSIM Advanced V1.016ES7823-1FE00-0YA5Microsoft Visual Studio Ultimate 2013DownloadsTable 1-6:DownloadsFileContent109739660_PLCSIM_Advanced_DOC_V10_en.pdfThis document109739660_PLCSIM_Advanced_S7_PROJ_V10.zipTIA Portal project(systemcontrol)109739660_PLCSIM_Advanced_COSIM_APPL_V10.zipSystem simulation (applicationand Visual Studio Project)S7-PLCSIM AdvancedEntry ID:109739660,V1.0.12/201692 Engineering2.1 Configuration in the TIA Portal2Engineering2.1Configuration in the TIA PortalThe enclosed TIA Portal project does not require any further configuration.If youcreate your own project,make the following settings in order to simulate withS7-PLCSIM Advanced.Table 2-1:Setting in TIA PortalNo.Action1.Open the context menu for the project by right clicking it.2.Click on“Properties"Project treeDevicesAdd new deviceDevices worksAdd new devicePLC_1 [CPU 1516-3 PN/DP]Open blockiPLC data type...F7Ctrl-xp月Ungrouped devicesCopyCtrl-CCommon dataPasteCtrl+VDocumentation settingsGo onlineCtrl-KLanguages resourcesCtrl+MOnline accessSearch in projectXCross-referencesF11UpgradePrint...2Print previeAlt+Enter1.Enable the "Support simulation during block pilation"option box3Confirm with“oKGeneral8S7-PLCSIM AdvancedEntry ID:109739660,V1.0.12/2016102 Engineering2.2 Programming in Visual Studio2.2Programming in Visual StudioThe Visual Studio project included facilitates your access to programming aS7-PLCSIM Advanced application with a co-simulation.In the Visual Studio project some basic functions are already programmed,forexample,switching on virtual controller and exchanging l/O data.With this VisualStudio project you can develop your applications further.In chapter 2.2.2 to 2.2.4 you find an overview of the C#-and API functions that areprogrammed in this application example.2.2.1Integrating the API libraryNoteFor the path to be updated in the included project you have to delete the existingreference to the library "Siemens.Simatic.Simulation.Runtime.Api.x64"andintegrate it again.Table 2-2:Integrating the API libraryNo.ActionCreate a reference in the project for the S7-PLCSIM Advanced library.It islocated in the following directory inSet the property"Copy Local of the reference to"True".ReferencesMicrosoft.CSharpPresentationCoreSiemens.Simatic.Simulation Runtime.Api64System.DataProperties(Name)Siemens.Simatic.Simulation.RunCopy LocalTrueS7-PLCSIM AdvancedEntry ID:109739660,V1.0.12/2016112 Engineering2.2 Programming in Visual Studio2.2.2Overview user interfaceIn graphical user interface of the external application,mands (1)are integratedto interact with the virtual controller(PLC Instance)and the co-simulation.The list box(2)shows info and error messages.The text field(3)shows therespective status.PLCSIM ADVANCED COSIMULATIONEXITPLC InstanceCo-SimulationPOWER ONSTARTPOWER OFF①STOPRUNSIMULATE ERRORSTOPPACKAGE OK9/6/2016 10:27:39 AM:Instance registered:TransportControl2Table 2-3:CommandsNo.DescriptionOpen the project "CoSimulationPlcSimAdv"from the included download109739660 PLCSIM Advanced COSIM APPL V10.zip"2Open the view of the main window"MainWindow.xaml"in the project folderexplorer in the "Views"folder.b ReferencesHere,in the XAML code amongst others you will find the integrated mandsfor the buttons or the integrated data for the display fields.




请如实的对该文档进行评分-
-
-
-
-
0 分