Transcription of Getting Started S7 Graph for S7-300/400 Programming ...
1 First StepsThe Getting Started for This product is not a is a part of the manual and can be called via "First Steps".SIMATICS7 Graph for S7-300/400 Programming Sequential Control SystemsGetting StartedEdition 10/2002 First StepsCopyright Siemens AG 2002 All rights reservedThe reproduction, transmission or use of this document or itscontents is not permitted without express written will be liable for damages. All rights, including rightscreated by patent grant or registration of a utility model or design,are AGBereich Automation and DrivesGeschaeftsgebiet Industrial Automation SystemsPostfach 4848, D- 90327 NuernbergDisclaimer of LiabilityWe have checked the contents of this manual for agreement withthe hardware and software described. Since deviations cannot beprecluded entirely, we cannot guarantee full agreement. However,the data in this manual are reviewed regularly and any necessarycorrections included in subsequent editions.
2 Suggestions forimprovement are welcomed. Siemens AG 2002 Technical data subject to AktiengesellschaftA5E00178395-01 Safety GuidelinesThis manual contains notices intended to ensure personal safety, as well as to protect the products andconnected equipment against damage. These notices are highlighted by the symbols shown below andgraded according to severity by the following texts:!Dangerindicates that death, severe personal injury or substantial property damage will result if properprecautions are not taken.!Warningindicates that death, severe personal injury or substantial property damage can result if properprecautions are not taken.!Cautionindicates that minor personal injury can result if proper precautions are not that property damage can result if proper precautions are not your attention to particularly important information on the product, handling the product, or to aparticular part of the PersonnelOnly qualified personnel should be allowed to install and work on this equipment.
3 Qualified persons aredefined as persons who are authorized to commission, to ground and to tag circuits, equipment, andsystems in accordance with established safety practices and UsageNote the following:!WarningThis device and its components may only be used for the applications described in the catalog or thetechnical description, and only in connection with devices or components from other manufacturerswhich have been approved or recommended by product can only function correctly and safely if it is transported, stored, set up, and installedcorrectly, and operated and maintained as , SIMATIC HMI and SIMATIC NET are registered trademarks of SIEMENS parties using for their own purposes any other names in this document which refer to trademarks mightinfringe upon the rights of the trademark Started S7 Graph for S7-300/400 Programming Sequential Control SystemsA5E00178395-011 Designing a Sequential Control System Based onthe Example of a DrillWelcome to the S7 Graph Beginner's ExampleIf you take an hour to work through the beginner's example.
4 You will learn how tocreate a sequential control system for automating the drill as described first learn how to configure a sequential control system efficiently and will thenbe guided step by step through the tasks you need to perform in the SIMATICM anager and in S7 Graph so that you can create the sequential control system, download it to the CPU and test correctly programmed sample is supplied with S7 Graph as a project called"ZEn02_01_S7 Graph_Drill".Designing a Sequential Control System Based on the Example of a DrillGetting Started S7 Graph for S7-300/400 Programming Sequential Control Systems2A5E00178395-01 RequirementsTo allow you to program and test the "drill" example, you require the followinghardware and software: Programming device/PC with- STEP 7 standard package and the S7 Graph optional package- MPI connection to the programmable logic controller A programmable logic controller (in our example an S7-300) consisting of thefollowing: standard rail, 24V power supply, CPU 314, and a digital input/outputmodule (8DI + 8DO) As an alternative to the PLC: The "PLC Simulation" S7 optional packageProcedure for Creating a Sequential Control SystemThe flow diagram illustrates the procedure for creating the sequential controlsystem for the drill example.
5 Create symbol tableSpecify structure of sequencerand define signals for systemCreate drill project in theSIMATIC ManagerCreate sequencer: create and open S7 Graph FB1 inthe SIMATIC Manager Program sequencerProgram OB1 with FB1 call andcorresponding instance DB (DB1)Download sample program (DB1, FB1,OB1) to the CPU in the SIMATICM anager and test the sequencerSymbolicprogrammingyesnoDesigni ng a Sequential Control System Based on the Example of a DrillGetting Started S7 Graph for S7-300/400 Programming Sequential Control SystemsA5E00178395-013 Technological Task and Functional DiagramTaskYou want to program a sequential control system to automate a drill. The setup ofthe drill is shown by a technological drawing and the process sequence in the formof a function Drawing - Set Up of the DrillThe drill consists of the following elements: Drill motor with feedback signals for drill running/stopped Start button and coolant switch Cooling pump with feedback signal for coolant pressure reached Clamping device with feedback signal for selected clamp pressure reached Carriage raise/lower drill with limit switches for drill up/downRaise drillDrill motor onFeedback signal:- Drill running- Drill stoppedCooling pump onFeedback signalCoolant pressure reachedStart buttonFeedback signal:Selected clamping pressurereachedLimit switch:Drill upLimit switch.
6 Drill downCoolant switchDrill motorCarriageClamp deviceCooling pumpLower drillDesigning a Sequential Control System Based on the Example of a DrillGetting Started S7 Graph for S7-300/400 Programming Sequential Control Systems4A5E00178395-01 Initial StateThe initial state of the drill is defined as follows: The drill motor and cooling pump are stopped The carriage/drill is in the upper position There is no work piece in the clamping deviceFunctional Diagram - Drilling SequenceThe entire drilling sequence can be divided into the following sections: Insert work piece ( manual ) If required, set switch for coolant (depending on the material) Start the machine with the start button (drill motor starts up) Clamp the work piece with the selected clamp pressure Start the cooling pump (if coolant selected) Lower drill and carriage to the bottom target position (drill) Wait seconds at lower target position (drill) Raise drill with carriage to upper target position Remove work piece, turn off drill motor and cooling pump Remove work piece ( manual )
7 MotorrunningstoppedCarriageupdownElement StateClampingdeviceOnOffStartDesigning a Sequential Control System Based on the Example of a DrillGetting Started S7 Graph for S7-300/400 Programming Sequential Control SystemsA5E00178395-015 Selecting the Structure of the SequencerBefore you create the program for the sequencer, you should include a conceptphase in which you break down the drilling operation into single steps. The basis ofthe concept design is the technological drawing and the the Drilling Process into Individual Steps - Structure of the SequencerThe drilling process is described by S7 Graph in the form of a sequencer. Asequencer represents a sequence of single steps and conditions that control howthe process moves on to the next single step. To specify the structure of thesequencer, follow the steps outlined below:1. Break down the drilling process into steps and specify the order of the steps(for example "step S2 follows S1" or "step S3 follows either step S4 or S7").
8 2. For each step, specify the actions that must be performed in the step (forexample in S1 the action "Drill ready" or in S3 the action "Turn on drill motor").3. Then decide for every step which conditions must be met so that the processcan move on to the next step (for example for T1 the condition "Drill Started -start button pressed" or for T5 the condition "Drill in upper position").Designing a Sequential Control System Based on the Example of a DrillGetting Started S7 Graph for S7-300/400 Programming Sequential Control Systems6A5E00178395-01T2S2T8T3T7S3S1T4T1 T6S7S4 Drill ready (initial step)Clamp work pieceTurn on drill motorTurn on cooling pumpLower drill (start drilling)Drill program Started (start buttonpressed)Work piece clamped with selectedpressureDrill motor running at selected speed(without coolant)Coolant pressure reachedDrill in lower positionDrill motor running at selected speed(with coolant)S5S6T5T6S1 Raise drillRelease work piece, turn off drill motorand cooling pumpDrill in upper positionWork piece is released, coolingpump stopped, drill motor stoppedWaiting time 500 msS = stepT = transitionMonitor clampingDesigning a Sequential Control System Based on the Example of a DrillGetting Started S7 Graph for S7-300/400 Programming Sequential Control SystemsA5E00178395-017 Defining the System SignalsOnce you have broken down the drilling operation into individual steps, you shouldthen define the input and output parameters for each step.
9 The basis of theconcept design is the technological drawing and the Inputs and OutputsList the inputs and outputs for the drill in the form of a you want to program symbolically, enter the required symbolic names (forexample input I "Cl_press_ok") for the absolute inputs and outputs and anycomments that will make the program easier to understand (for example"Workpiece clamping pressure reached").In the drill example, it is assumed that the switches and contactors of the drill arecontrolled via the inputs and outputs of the digital input/output module of theS7-300 programmable controller. The input/output module has 8 inputs and 8outputs. The default values of the input and output addresses of the moduleinserted in slot 4 are as follows: I 0 to I and Q = to Q AbsoluteAddresses Symbolicaddresses ExplanationInputsin the program (I)I signal for drill running at selected speedI signal for drill stoppedI switch for drill in lower positionI switch for drill in upper positionI signal for work piece clamping pressurereachedI for coolant (dependent on work piece)I signal for coolant pressure reachedI button of the drillOutputsin the program (Q)Q on drill motorQ on cooling pump (dependent on work piece)
10 Q drill and carriage to bottom limit positionQ drill and carriage to the upper limit positionQ work piece at required pressureDesigning a Sequential Control System Based on the Example of a DrillGetting Started S7 Graph for S7-300/400 Programming Sequential Control Systems8A5E00178395-01 Creating the Drill Project in the SIMATIC ManagerCreating a ProjectProjects for sequential control systems do not differ from other projects in STEP create a new project in the SIMATIC Manager, follow the steps outlined below:1. Select the menu command File > Name the project "Drill".Inserting an S7 ProgramIn this example, hardware configuration is unnecessary since the defaultaddressing of the input/output module in slot 4 is used. You can thereforeimmediately insert an S7 program in the project folder in the SIMATIC S7 program serves as a folder for the blocks of the user program, the sourcefiles and the symbols. Follow the steps below:1.