西门子s7300手册集working with higraph_第1页
西门子s7300手册集working with higraph_第2页
西门子s7300手册集working with higraph_第3页
西门子s7300手册集working with higraph_第4页
西门子s7300手册集working with higraph_第5页
已阅读5页,还剩21页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、 该文档是极速PDF编辑器生成,如果想去掉该提示,请并:Important Information, ContentsProduct Overview and Installation12345678Designing a Program Using the Example of a DrillWorking with S7-HiGraphSIMATICProcess Error DiagnosisS7-HiGraph for S7-300/400STL Instruction DescriptionConfiguration NotesUser Program Run Behavior in

2、 the PLCManualTips and TricksGlossaryIndex01/2000C79000-G7076-C527Edition 01该文档是极速PDF编辑器生成,如果想去掉该提示,请并:Safety GuidelinesThis manual contains notices which you should observe to ensure your ownal safety, as well as toprotect the product and connected equipment. These notices are highlighted in the ma

3、nual by a warning triangleand are marked as follows according to the level of danger:!Dangerindicates that death, severe not taken.al injury or substantial property damage will result if proper precautions are!Warningindicates that death, severe not taken.al injury or substantial property damage can

4、 result if proper precautions are!Caution! indicates that minor al injury or property damage can result if proper precautions are not taken.Notedraws your attention to particularly important information on the product, handling the product, or to a particular part of the documentation.QualifiednelOn

5、ly qualifiednel should be allowed to install and work on this equipment Qualifieds are definedass who are authorized to commission, to ground, and to tag circuits, equipment, and systems inaccordance with established safety practices and standards.Correct UsagePlease note the following:!WarningThis

6、device and its components may only be used for the applications described in the catalog or the technical description, and only in connection with devices or components from other manufacturers which have been approved or recommended by Siemens.This product can only function correctly and safely if

7、it is transported, stored, set up, and installed correctly, andoperated and maintained as recommended.TrademarksSIMATIC, SIMATIC HMI and SIMATIC NET are trademarks of Siemens AG.Third parties using for their own purposes any other names in this document which refer to trademarks mightinfringe upon t

8、he rights of the trademark owners.Copyright Siemens AG 2000sDisclaimer of LiabilityWe have checked the contents of this manual for agreement with the hardware and software described. Since deviations cannot be precluded entirely, we cannot guarantee full agreement. However, the data in this manual a

9、re reviewed regularly and any necessary corrections included in subsequent editions. Suggestions for improvement are welcomed.The reproduction, transmission or use of this document or its contents is not permitted without express written authority. Offenders will be liablefor damages.s, including ri

10、ghts created by patent grant orregistration of a utility mor design, are.Siemens AGBereich Automatisierungs- und Antriebstechnik Geschaeftsgebiet Industrie-Automatisierungsysteme Postfach 4848, D- 90327 Nuernberg Siemens AG 2000Technical data subject to change.C79000-G7076-C527Siemens Aktiengesellsc

11、haft该文档是极速PDF编辑器生成,如果想去掉该提示,请并:2Designing a Program Using the Example of a Drill2.1Welcome to the Example for Getting Started in HiGraphThis example for getting started shows you in about an hour how to useS7-HiGraph in order to create a program for the automation of the following drilling machine.Y

12、ou first learn how to plan and structure an S7-HiGraph program efficiently and are then taken step-by-step through all the tasks that you have to carry out in the SIMATIC Manager and in S7-HiGraph in order tocreate the program, download it to the Cdebug it.ndThe correctly programmed example is inclu

13、ded in the scope of delivery as the project ZEn03_01_HiGraph_DrilMac. After the installation it is positioned in the directory STEP7Examples.S7-HiGraph for S7-300/400 C79000-G7076-C527-012-1该文档是极速PDF编辑器生成,如果想去掉该提示,请并:Designing a Program Using the Example of a Drill2.2PrerequisitesThe following hardw

14、are and software components are required to program the example program as described:A programming device/al computer on which the STEP 7 basic packageand the S7- HiGraph optional package are installed.In order to download and debug the example program you require:An automation system with a digital

15、 input-output module (8DI+8DO).In this example the S7-300 with CPU 314 is used. However, S7-HiGraph programs can also be executed on an S7-400 automation system.Or the S7-PLCSIM S7-optional package in order to simulate a CPU of the series S7-300 or S7-400.-S7-HiGraph for S7-300/400 C79000-G7076-C527

16、-012-2该文档是极速PDF编辑器生成,如果想去掉该提示,请并:Designing a Program Using the Example of a Drill2.3Automation Task Drilling MachineThe structure of the drilling machine, shown in the technical diagram, and the sequence of the drilling process, shown in the function diagram, are specified.Technical diagram: Structu

17、re of the drilling machineFeedLower drillDrill motorRaise drillDrill motor on Feedback:0- Drill running- Drill stationaryLimit switch: Drill at topLimit switch: Drill at bottomStart buttonViceFeedback :Set tension reachedBasic stateThe basic state of the drilling machine is defined as follows:Drill

18、motor standing still. Feed/Drill is in the upper position.No workpiece is clamped.Sequence during drillingThe drilling process is subdivided into the following steps:..Insert the workpiece and start the machine via the start pushbutton. Clamp the workpiece (until the set clamping press

19、ure is reached) The drill motor starts upUse the feed to lower the drill to the lower set position Use the feed to raise the drill to the upper set position Switch off the drill motorLoosen the workpieceRemove the workpieceS7-HiGraph for S7-300/400 C79000-G7076-C527-012-3该文档是极速PDF编辑器生成,如果想去掉该提示,请并:D

20、esigning a Program Using the Example of a DrillThe following function diagram shows the sequence of the drilling process:S7-HiGraph for S7-300/400 C79000-G7076-C527-012-4ElementStateStartViceOnOffMotorRunningStationaryFeedTopBottomStep12345678该文档是极速PDF编辑器生成,如果想去掉该提示,请并:Designing a Program Using the

21、Example of a Drill2.4Steps to Create the Drilling Machine Programming ExampleYesSymbolic programming?NoS7-HiGraph for S7-300/400 C79000-G7076-C527-012-5Download example program to the Cnd test itProgram OB1 with calling of the HiGraph FCProgram graph group- Create- Insert instances of state graphs-

22、Assign actual parameters- CompileProgram state graphs:- Create- Declare variable- Insert states and transitions- Enter actions and transition conditionsCreate symbol tableCreate HiGr_Bsp project in the SIMATIC managerProgram design- Design the structure of the complete program and of the individual

23、state graphs- Define plant signals该文档是极速PDF编辑器生成,如果想去掉该提示,请并:Designing a Program Using the Example of a DrillStep 1: Planning the Program StructureFirst define which state graphs are required for the drilling machine example. The following rules apply:One state graph is required per function unit or

24、 task.Usually one state graph is used for every mechanical component of a process. In addition there are further functions, such as for example, the control of the operating modes or the control of operation enables. These are also mapped to a state graph.The state graphs can be structured hierarchi

25、cally. It is thus possible to insert one or more state graphs which coordinate the other state graphs in a graph group.The drilling machine can be divided into the functional units Drill_motor“, “Feed and Vice“. The feed is realized by means of a valve with two limits.The state graphs Motor, Valve_2

26、I and Vice are required to control these functional units. The state graph for coordinating is to be called Drilling.S7-HiGraph for S7-300/400 C79000-G7076-C527-012-6DrillingFeed01131Drill motor11Drill motor onFeedback:2- Drill running0- Drill stationaryValve_2TMotor0101ViceStart button0311 11 31111

27、31121112Vice2State graphs for the individual functional units该文档是极速PDF编辑器生成,如果想去掉该提示,请并:Designing a Program Using the Example of a DrillStep 2: Designing the State GraphsFrom the function unit to the state graphIn this example for getting started the state graph Valve_2I is to be programmed. The fur

28、ther state graphs required already exist in the supplied example project ZEn03_01_HiGraph_DrilMac.The functional unit on which the “Valve_2I“ state graph is based is a valve unit with two limits. The valve unit consists of the following elements:A solenoid valve for the Up movement“A solenoid valve

29、for the Down movement“ A limit switch for the Top limitA limit switch for the Bottom limit.It is assumed that the solenoid valves only have to be operated for the movement phase and that the valve remains in the respective limit.Determining the statesThe valve can thus assume the following states:S7

30、-HiGraph for S7-300/400 C79000-G7076-C527-012-7No.StateDescription0InitializationA state for the initialization is required in every state graph.In the initial state it is possible to check whether the functional unit is in a defined initial position. If required, it can be brought to the initial po

31、sition.1Top limitDrill in the upper limit position2Down movementDrill travels downwards3Bottom limitDrill in the lower limit position 4Up movementDrill travels upwardsUpDownTop BottomState01234Movement upMovement downEnd positionTopBottom该文档是极速PDF编辑器生成,如果想去掉该提示,请并:Designing a Program Using the Examp

32、le of a DrillDetermining the state changeThe Drilling state graph determines when the valve unit changes from one state to the next. For this purpose it sends messages to the Valve_2I.When the valve reaches the limit, a message is returned to the Drilling state graph.Designing the state graphThe str

33、ucture of the Valve_2I state graph can now be specified on the basis of these specifications.S7-HiGraph for S7-300/400 C79000-G7076-C527-012-8State3Drill in lower end position:Action:Message “Drill at bottom” is sentto the coordinating graphStep enablingcondition:Is the message “Raise” received from

34、 the coordinating graph?State2Drill moves downwards:Action:Trigger feed.Step enablingcondition:Bottom end position reached?State1Drill in upper end position:Action:Message “Drill at top” is sent to the coordinating graphStep enablingcondition:Is the message “Lower” received from the coordinating gra

35、ph?State4Drill moves upwards:Action:Trigger feed Step enablingcondition:Top end position reached?State0Initialization:Action:NoneStep enablingcondition:None该文档是极速PDF编辑器生成,如果想去掉该提示,请并:Designing a Program Using the Example of a DrillStep 3: Defining the Plant SignalsAfter you have split the drilling p

36、rocess into its individual functions, you should define the corresponding inputs and outputs for each state. The concept is based on the technical diagram and the flow chart.List the corresponding inputs and outputs of the drilling machine in an assignment table.If you want to program your program s

37、ymbolically, enter the desired symbolic designations (for example, I0.4 Tension_reached) and any remarks required to understand the program better (for example, Feedback for workpiece set clamping pressure reached) in addition to the absolute inputs and outputs.In the drilling machine example we ass

38、ume that the switches and contactors of the drilling machine are controlled via the inputs and outputs of the digital input/output module of the S7-300 automation system. The input/output module has 8 inputs and 8 outputs. The default values of the input and output addresses of the module on Slot 4

39、are: I0.0 to I0.7 and O0.0 to O0.7.S7-HiGraph for S7-300/400 C79000-G7076-C527-012-9Address, absoluteAddress, symbolicDescriptionInputs in the programI 0.0Drill_motor_runningFeedback for Drill running with set speed“I 0.1Drill_motor_stoppedFeedback for Drill stopped“I 0.2Drill_at_bottomLimit switch

40、for Drill in bottom position“I 0.3Drill_at_topLimit switch for Drill in top position“I 0.4Tension_reachedFeedback for Workpiece set clamping pressure reachedI 0.7Start_buttonStart button of the drilling machineOutputs in the programQ 0.0Drill_motor_onSwitch drill motor onQ 0.1Lower_drillUse the feed

41、 to lower the drill to the lower limitQ 0.2Raise_drillUse the feed to raise the drill to the upper limitQ 0.3Clamp_workpieceClamp/fix workpiece with set pressure该文档是极速PDF编辑器生成,如果想去掉该提示,请并:Designing a Program Using the Example of a DrillStep 4: Creating the HiGr_Exp Example in the SIMATIC ManagerCrea

42、ting the projectPrerequisite for programming with S7-HiGraph is a project in which the data of the S7-HiGraph program is saved.Projects for state graph programming is not different to other projects in STEP 7. Proceed as follows in order to create a new project in the SIMATIC Manager.1. Select the F

43、ile New Project Wizard2. The STEP 7 Wizard which is now started supports you in creating the project. The Wizard prompts you to specify the following data:-Which Cre you using in your project?Specify your CPU. In the supplied example the CPU 314 is used.- Which block do you want to add?Select the OB

44、1.- What do you want to call your project?Enter the name HiGr_Exp.Project structureThe STEP 7 Wizard creates a folder for the station selected by you. This in turn contains a subfolder with the selected CPU. This contains the S7 program with folders for blocks, symbols and sources.When configuring t

45、he structure, an S7 Program directory is automatically created for each CPU you have provided for. This directory serves as the folder for the blocks, the sources and the symbols of the user program.Call the S7 program “Drilling machine“.The following figure shows the structure of the example projec

46、t.S7-HiGraph for S7-300/400 C79000-G7076-C527-012-10该文档是极速PDF编辑器生成,如果想去掉该提示,请并:Designing a Program Using the Example of a DrillStep 5: Creating a Symbol TableSince you want to program the program with symbolic addresses, it is advisable to create the symbol table as the next step.For this purpose op

47、en the symbol table in the Drilling machine directory by double-clicking on the Symbols folder and edit the table as shown in the following figure.The HiGraphErrEmitterFB (FB 20) and HiGraphMsgEmitterFC (FC 101) blocks as well as the system function blocks SFC 51, SFC 52 and SFC 64 are required for

48、diagnostic functions. The blocks are contained in the Standard library or in the HiGraph library.S7-HiGraph for S7-300/400 C79000-G7076-C527-012-11该文档是极速PDF编辑器生成,如果想去掉该提示,请并:Designing a Program Using the Example of a DrillStep 6: Creating a State Graph and Starting S7-HiGraphCreating a state graphOn

49、ly the state graph Valve_2I is to be programmed in this introductory example. The further state graphs required already exist in the supplied example project ZEn03_01_HIGRAPH_DrilMac.State graphs are saved in the Sources folder of the S7 program. Proceed as follows:1.2.3.Open the Sources folder in t

50、he S7 program in the SIMATIC Manager.Select the Insert S7 Software State GraphName the created state graph “Valve_2I“.command.Starting S7-HiGraphThe S7-HiGraph is started by double-clicking on the “Valve_2I“ state graph in the Sources folder. “Valve_2I“ is opened and already contains the first state

51、 (initial state) and the first transition which leads to this state.S7-HiGraph for S7-300/400 C79000-G7076-C527-012-12该文档是极速PDF编辑器生成,如果想去掉该提示,请并:Designing a Program Using the Example of a DrillStep 7: Declaring the VariablesNow define the variables which the state graph will use.1. Open the variable

52、 declaration window by using the command button2. The declaration sections are shown in the left-hand partial window. They.contain predefined variables, which S7-HiGraph enters automatically into the declaration when creating a state graph. Enter the following additional variables. To do so double-c

53、lick in the left-hand partial window on the desired declaration section and enter the variable name as well as the data type and the message type in the right-hand partial window.The following figure shows the filled-out variable declaration window. The IN_OUT declaration section is selected.S7-HiGr

54、aph for S7-300/400 C79000-G7076-C527-012-13Declaration sectionNameData typeMessageINTopBOOLBottomBOOLOUTUpBOOLDownBOOLIN_OUTIM_raiseBOOLInIM_lowerBOOLInOM_topBOOLOutOM_bottomBOOLOut该文档是极速PDF编辑器生成,如果想去掉该提示,请并:Designing a Program Using the Example of a DrillStep 8: Inserting the States and TransitionsNow insert the states and transitions in the editing window for state graphs as shown in the figure below.1.2.Select the Insert StateUse the Options

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论