SIMATIC Working With STEP 7 - Siemens

3y ago
23 Views
2 Downloads
1.74 MB
112 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Hayden Brunner
Transcription

sWelcome to STEP 7,ContentsSIMATICWorking with STEP 7Getting StartedIntroduction to STEP 71The SIMATIC Manager2Programming with Symbols3Creating a Program in OB14Creating a Program withFunction Blocks and Data Blocks5Configuring the Central Rack6Downloading and Debuggingthe Program7Programming a Function8Programming aShared Data Block9Programming a Multiple Instance10Configuring the Distributed I/O11AppendixAppendix AIndexThis manual is part of the documentationpackage with the order number:6ES7810-4CA08-8BW0Edition 03/2006C79000-P7076-C48-01A

Safety GuidelinesThis manual contains notices you have to observe in order to ensure your personal safety, as well as toprevent damage to property. The notices referring to your personal safety are highlighted in the manualby a safety alert symbol, notices referring to property damage only have no safety alert symbol. Thenotices shown below are graded according to the degree of danger.Danger!indicates that death or severe personal injury will result if proper precautions are not taken.!indicates that death or severe personal injury may result if proper precautions are not taken.!WarningCautionwith a safety alert symbol indicates that minor personal injury can result if proper precautions are nottaken.Cautionwithout a safety alert symbol indicates that property damage can result if proper precautions are nottaken.Noticeindicates that an unintended result or situation can occur if the corresponding notice is not taken intoaccount.If more than one degree of danger is present, the warning notice representing the highest degree ofdanger will be used. A notice warning of injury to persons with a safety alert symbol may also include awarning relating to property damage.Qualified PersonnelThe device/system may only be set up and used in conjunction with this documentation. Commissioningand operation of a device/system may only be performed by qualified personnel. Within the context ofthe safety notices in this documentation qualified persons are defined as persons who are authorized tocommission, ground and label devices, systems and circuits in accordance with established safetypractices and standards.Prescribed 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 Siemens.Correct, reliable operation of the product requires proper transport, storage, positioning and assemblyas well as careful operation and maintenance.TrademarksAll names identified by are registered trademarks of the Siemens AG.The remaining trademarks in this publication may be trademarks whose use by third parties for theirown purposes could violate the rights of the owner.Disclaimer of LiabilityWe have reviewed the contents of this publication to ensure consistency with the hardware andsoftware described. Since variance cannot be precluded entirely, we cannot guarantee full consistency.However, the information in this publication is reviewed regularly and any necessary corrections areincluded in subsequent editions.Siemens AGAutomation and DrivesPostfach 484890437 t Siemens AG 2006Technical data subject to change

Welcome to STEP 7.the SIMATIC standard software for creating programmable logic controlprograms in Ladder Logic, Function Block Diagram, or Statement List forSIMATIC S7-300/400 stations.About This Getting Started ManualIn this manual, you will get to know the basics of SIMATIC STEP 7. We will showyou the most important screen dialog boxes and the procedures to follow usingpractical exercises, which are structured so that you can start with almost anychapter.Each section is split into two parts: a descriptive part, marked in gray, and aprocess-oriented part, marked in green. The instructions start with an arrow in thegreen margin and may be spread out over several pages, finishing in a full stopand a box containing related topics.Previous experience of working with the mouse, window handling, pull-downmenus, etc. would be useful, and you should preferably be familiar with the basicprinciples of programmable logic control.The STEP 7 training courses provide you with in-depth knowledge above andbeyond the contents of this Getting Started manual, teaching you how entireautomation solutions can be created with STEP 7.Requirements for Working with the Getting Started ManualIn order to carry out the practical exercises for STEP 7 in this Getting Startedmanual, you require the following: A Siemens programming device or a PC The STEP 7 software package and the respective license key A SIMATIC S7-300 or S7-400 programmable controller(for Chapter 7 "Downloading and Debugging the Program").Additional Documentation on STEP 7 STEP 7 Basic Information STEP 7 Reference InformationAfter you have installed STEP 7, you will find the electronic manuals in the Startmenu under Simatic Documentation or alternatively, you can order them fromany Siemens sales center. All of the information in the manuals can be called up inSTEP 7 from the online help.Have fun and good luck!SIEMENS AGSTEP 7 Getting StartedC79000-P7076-C48-01iii

Welcome to STEP 7.ivSTEP 7 Getting StartedC79000-P7076-C48-01

Contents1Introduction to STEP 71.1What You Will Learn1-11.2Combining Hardware and Software1-31.3Basic Procedure Using STEP 71-41.4Installing STEP 71-52The SIMATIC Manager2.1Starting the SIMATIC Manager and Creating a Project2-12.2The Project Structure in the SIMATIC Managerand How to Call the Online Help2-4In Chapters 3 to 5, you create asimple program.3Programming with Symbols3.1Absolute Addresses3-13.2Symbolic Programming3-24Creating a Program in OB14.1Opening the LAD/STL/FBD Program Window4-14.2Programming OB1 in Ladder Logic4-44.3Programming OB1 in Statement List4-84.4Programming OB1 in Function Block Diagram4-115Creating a Program with Function Blocks and Data Blocks5.1Creating and Opening Function Blocks (FB)5-15.2Programming FB1 in Ladder Logic5-35.3Programming FB1 in Statement List5-75.4Programming FB1 in Function Block Diagram5-105.5Generating Instance Data Blocks and Changing Actual Values5-145.6Programming a Block Call in Ladder Logic5-165.7Programming a Block Call in Statement List5-195.8Programming a Block Call in Function Block Diagram5-21STEP 7 Getting StartedC79000-P7076-C48-01v

ContentsIn Chapters 6 and 7, youconfigure the hardware and testyour program.6Configuring the Central Rack6.1Configuring Hardware7Downloading and Debugging the Program7.1Establishing an Online Connection7-17.2Downloading the Program to the Programmable Controller7-37.3Testing the Program with Program Status7-67.4Testing the Program with the Variable Table7-87.5Evaluating the Diagnostic Buffer7-126-1In Chapters 8 to 11, you canextend your knowledge to includenew functions.8Programming a Function8.1Creating and Opening Functions (FC)8-18.2Programming Functions8-38.3Calling the Function in OB18-69Programming a Shared Data Block9.1Creating and Opening Shared Data Blocks10Programming a Multiple Instance9-110.1 Creating and Opening a Higher-Level Function Block10-110.2 Programming FB1010-310.3 Generating DB10 and Adapting the Actual Value10-710.4 Calling FB10 in OB110-911Configuring the Distributed I/O11.1 Configuring the Distributed I/O with PROFIBUS DP11-1Appendix AA-1Overview of the Sample Projects for the Getting Started ManualIndexviIndex-1STEP 7 Getting StartedC79000-P7076-C48-01

1Introduction to STEP 71.1What You Will LearnUsing practical exercises, we will show you how easy it is to program in LadderLogic, Statement List, or Function Block Diagram with STEP 7.Detailed instructions in the individual chapters will show you step-by-step themany ways in which you can use STEP 7.Creating a Program with Binary LogicIn Chapters 2 to 7, you will create a program with binary logic. Using theprogrammed logic operations, you will address the inputs and outputs of your CPU(if present).The programming examples in the Getting Started manual are based, among otherthings, on three fundamental binary logic operations.The first binary logic operation, which you will program later on, is the ANDfunction. The AND function can be best illustrated in a circuit diagram using twokeys.Key 1Key 2If both Key 1 and Key 2are pressed, the bulblights up.The second binary logic operation is the OR function. The OR function can also berepresented in a circuit diagram.Key 3Key 4STEP 7 Getting StartedC79000-P7076-C48-01If either key 3 or key 4is pressed, the bulblights up.1-1

Introduction to STEP 7The third binary logic operation is the memory element. The SR function reactswithin a circuit diagram to certain voltage states and passes these on accordingly.Memory ElementKey SSRKey RIf key S is pressed, the bulb lights upand remains lit until key R is pressed.1-2STEP 7 Getting StartedC79000-P7076-C48-01

Introduction to STEP 71.2Combining Hardware and SoftwareUsing the STEP 7 software, you can create your S7 program within a project. TheS7 programmable controller consists of a power supply unit, a CPU, and input andoutput modules (I/O modules).The programmable logic controller (PLC) monitors and controls your machine withthe S7 program. The I/O modules are addressed in the S7 program via theaddresses.Programmingdevice cableProgramming deviceTransferring a programSTEP 7 softwareMachine to becontrolledCPUPower supply moduleSTEP 7 Getting StartedC79000-P7076-C48-01Output moduleInput module1-3

Introduction to STEP 71.3Basic Procedure Using STEP 7Before you create a project, you should know that STEP 7 projects can be createdin different orders.Designing the solution to the automation taskCreating a project (Chapter 2)Option 1Option 2Configuring the hardware(Chapter 6)Creating a program(Chapters 3 to 5)Creating a program(Chapters 3 to 5)Configuring the hardware(Chapter 6)Transferring the program to the CPU and debugging(Chapter 7)If you are creating comprehensive programs with many inputs and outputs, werecommend you configure the hardware first. The advantage of this is that STEP 7displays the possible addresses in the Hardware Configuration Editor.If you choose the second option, you have to determine each address yourself, dependingon your selected components and you cannot call these addresses via STEP 7.In the hardware configuration, not only can you define addresses, but you can also changethe parameters and properties of modules. If you want to operate several CPUs, forexample, you have to match up the MPI addresses of the CPUs.Since we are only using a small number of inputs andoutputs in the Getting Started manual, we will skip thehardware configuration for now and start with theprogramming.1-4STEP 7 Getting StartedC79000-P7076-C48-01

Introduction to STEP 71.4Installing STEP 7Regardless of whether you want to start with programming or configuringhardware, you first have to install STEP 7. If you are using a SIMATICprogramming device, STEP 7 is already installed.When installing the STEP 7 softwareon a programming device or PCwithout a previously installed version ofSTEP 7, note the software andhardware requirements. You can findthese in the Readme.wri on theSTEP 7 CD under Drive :\STEP 7 \Disk1.If you need to install STEP 7 first,insert the STEP 7 CD in the CD-ROMdrive now. The installation programstarts automatically. Follow theinstructions on the screen.If the installation does not start automatically, you can also find theinstallation program on the CD-ROMunder Drive :\STEP 7 \Disk1\setup.exe.Once the installation is complete andyou have restarted the computer, the"SIMATIC Manager" icon will appearon your Windows desktop.If you double-click the "SIMATIC Manager" icon following installation, the STEP 7 Wizardwill be started automatically.You can find additional notes on installation in theReadme.wri file on the STEP 7 CD under Drive :\STEP 7 \Disk1\Readme.wri.STEP 7 Getting StartedC79000-P7076-C48-011-5

Introduction to STEP 71-6STEP 7 Getting StartedC79000-P7076-C48-01

22.1The SIMATIC ManagerStarting the SIMATIC Manager and Creating a ProjectThe SIMATIC Manager is the central window which becomes active when STEP 7is started. The default setting starts the STEP 7 Wizard, which supports you whencreating a STEP 7 project. The project structure is used to store and arrange allthe data and programs in order.Within the project, data are stored in theform of objects in a hierarchical structureThe SIMATIC station and the CPUcontain the configuration andparameter data of the hardwareThe S7 program comprises all theblocks with the programs necessary forcontrolling the machineDouble-click the SIMATIC Managericon on the Windows desktop, thenselect the File Wizard "NewProject" menu command if the wizarddoes not start automatically.In the preview, you can toggle the viewof the project structure being createdon and off.To move to the next dialog box, clickNext.STEP 7 Getting StartedC79000-P7076-C48-012-1

The SIMATIC ManagerFor the "Getting Started" sampleproject, select CPU 314. The examplehas been created in such a way thatyou can actually select the CPU youhave been supplied with at any time.The default setting for the MPI addressis 2.Click Next to confirm the settings andmove to the next dialog box.Every CPU has certainproperties; for example,regarding its memoryconfiguration or addressareas. This is why you haveto select the CPU before youstart programming.The MPI address (multipointinterface) is required in orderfor your CPU to communicatewith your programming deviceor PC.Select the organization block OB1 (ifthis is not already selected).Select one of the programminglanguages: Ladder Logic (LAD),Statement List (STL), or Function BlockDiagram (FBD).Confirm your settings with Next.OB1 represents the highestprogramming level and organizes theother blocks in the S7 program.You can change the programminglanguage again at a later date.2-2STEP 7 Getting StartedC79000-P7076-C48-01

The SIMATIC ManagerDouble-click to select the suggestedname in the "Project name" field andoverwrite it with "Getting Started."Click Make to generate your newproject according to the preview.When you click the Make button, the SIMATIC Manager will open with the window for the"Getting Started" project you have created. On the following pages, we will show you whatthe created files and folders are for and how you can work effectively with them.The STEP 7 Wizard is activated each time the program is started. You can deactivate thisdefault setting in the first dialog box for the Wizard. However, if you create projects withoutthe STEP 7 Wizard, you must create each directory within the project yourself.You can find more information underHelp Contents in the topic "SettingUp and Editing the Project."STEP 7 Getting StartedC79000-P7076-C48-012-3

The SIMATIC Manager2.2The Project Structure in the SIMATIC Manager and Howto Call the Online HelpAs soon as the STEP 7 Wizard is closed, the SIMATIC Manager appears with theopen project window "Getting Started." From here, you can start all the STEP 7functions and windows.Opening, organizing, and printingprojectsEditing blocks and inserting programcomponentsSetting the window display andarrangement, selecting thelanguage, and making settings forprocess dataDownloading the programand monitoring thehardwareCalling the STEP 7 online helpThe contents of the right-hand paneshow the objects and other foldersfor the folder selected on the leftThe contents of the left-hand paneshow the project structure2-4STEP 7 Getting StartedC79000-P7076-C48-01

The SIMATIC ManagerCalling the Help on STEP 7F1Option 1:Place the cursor on any menucommand and press the F1 key. Thecontext-sensitive help for the selectedmenu command will appear.Option 2:Use the menu to open the STEP 7online help.The contents page with various helptopics appears in the left-hand paneand the selected topic is displayed inthe right-hand pane.Navigate to the topic you want byclicking the sign in the Contents list.At the same time, the contents of theselected topic are displayed in theright-hand pane.Using Index and Find, you can entersearch strings and look for the specifictopics you require.Option 3:Click on the "Start page" icon in theSTEP 7 Online Help to open theinformation portal. This portal providescompact access to major topics of theOnline Help, e.g.: Getting Started with STEP 7Configuring & ProgrammingTesting & DebuggingSIMATIC on the InternetOption 4:Click on the question mark button inthe toolbar to turn your mouse into ahelp cursor. The next time you click ona specific object, the online help isactivated.STEP 7 Getting StartedC79000-P7076-C48-012-5

The SIMATIC ManagerNavigating in the Project StructureThe project you have just created isdisplayed with the selected S7 stationand CPU.Click the or – sign to open or close afolder.You can start other functions later onby clicking the symbols displayed inthe right-hand pane.Click the S7 Program (1) folder. Thiscontains all the necessary programcomponents.You will use the Symbols component inChapter 3 to give the addressessymbolic names.The Source Files component is used tostore source file programs. These arenot dealt with in the Getting Startedmanual.Click the Blocks folder. This containsthe OB1 you have already createdand, later on, all the other blocks.From here, you will start programmingin Ladder Logic, Statement List, orFunction Block Diagram in Chapters 4and 5.Click the SIMATIC 300 Station folder.All the hardware-related project dataare stored here.You will use the Hardware componentin Chapter 6 to specify the parametersof your programmable controller.If you require further SIMATIC software for your automation task; for example, the optionalpackages PLCSIM (hardware simulation program) or S7 Graph (graphic programminglanguage), these are also integrated in STEP 7. Using the SIMATIC Manager, for example,you can directly open the relevant objects such as an S7 Graph function block.You can find more information under Help Contents in the topics "WorkingOut the Automation Concept" and "Basics of Designing the Program Structure".You can find more information on optional packages in the SIMATIC catalogST 70, "Components for Completely Integrated Automation."2-6STEP 7 Getting StartedC79000-P7076-C48-01

3Programming with Symbols3.1Absolute AddressesEvery input and output has an absolute address predefined by the hardwareconfiguration. This address is specified directly; that is, absolutely.The absolute address can be replaced by any symbolic name you choose.Digital inputmoduleByte 0Bits 0 to 7011DC 5V22FRCE33RUN44STOP556667770011223344556677RUN PRUNONOFFSTOPM RESL NL ML MDigital inputmoduleByte 1Bits 0 to 7ML MAbsolute address:InputDigital outputmoduleByte 4Bits 0 to 70BATFSFIByte 10123450Digital outputmoduleByte 5Bits 0 to 712345671.5Bit 5You should only use absolute programming if you do nothave to address many inputs and outputs in your S7program.STEP 7 Getting StartedC79000-P7076-C48-013-1

Programming with Symbols3.2Symbolic ProgrammingIn the symbol table, you assign a symbolic name and the data type to all theabsolute addresses which you will address later on in your program; for example,for input I 0.1 the symbolic name Key 1. These names apply to all parts of theprogram and are known as global variables.Using symbolic programming, you can considerably improve the legibility of theS7 program you have created.Working with the Symbol EditorNavigate in the project window "GettingStarted" until you reachS7 Program (1) and double-click toopen the Symbols component.Your symbol table currently onlyconsists of the predefined organizationblock OB1.Click Cycle Execution and overwrite itwith "Main Program" for our example.Enter "Green Light" and "Q 4.0" inrow 2. The data type is addedautomatically.Click in th

STEP 7 Basic Information STEP 7 Reference Information After you have installed STEP 7, you will find the electronic manuals in the Start menu under Simatic Documentation or alternatively, you can order them from any Siemens sales center. All of the information in the manuals can be called up in STEP 7 from the online help.

Related Documents:

SITRAIN INDIA, KALWA. List of courses at SITRAIN-Kalwa & Authorized Training Centers (ATC) Sr. No. Title Days 1 PLC : SIMATIC S7-200 5 2 PLC : TIA Basic with SIMATIC S7-300 & Step7 8 3 PLC : TIA Advanced with SIMATIC S7-400 6 4 SIMATIC NET 5 5 SIMATIC WinCC 6 6 SIMATIC HMI Panels 3 7 DCS: SIMATIC PCS 7 Basic 8 8 DCS: SIMATIC PCS 7 Advanced 10

SIMATIC STEP 7-Micro/WIN V4.0 SP6 (or later) SIMATIC STEP 7 Basic V10.5 SP2 SIMATIC S7-200 to SIMATIC S7-1200 software conversion tool The STEP 7-Micro/WIN program that you want to convert must have these properties: The program must have been created using STEP 7-Micr

Power supply Article No. PM 1207 6EP1332-1SH71 System accessories Article No. SIMATIC memory card SIMATIC memory card 4 MB 6ES7954-8LC02-0AA0 SIMATIC memory card 12 MB 6ES7954-8LE03-0AA0 SIMATIC memory card 24 MB 6ES7954-8LF03-0AA0 SIMATIC memory card 256 MB 6ES7954-8LL03-0AA0 SIMATIC memory card 2 GB 6ES7954-8LP02-0AA0 SIMATIC memory card 32 GB 6ES7954-8LT03-0AA0 .

SIMATIC STEP 7 version 15 or higher The contents of the S7-1500 column also apply to SIMATIC S7-1500 Software Controller CPU 150xS SIMATIC S7-1200 firmware 4.2 or higher. SIMATIC S7-1200 only supports LAD, FBD and SCL. SIMATIC S7-1500 firmware 2.5 or hi

SIMATIC Technology - Motion Control Single axes with SIMATIC S7- 1500/1500 T-CPU (2/2) Technology Objects of the SIMATIC S7-1500(T) ( Entry-ID: 109743134 ) SIMATIC S7-1500 / S7-1500T: Standard application axis control ( Entry-ID: 109749348 ) Configuring Technology Objects with SIMATIC S7 1500 and SINAMICS S210 in TIA-Portal ( Entry-ID: 109749795 )

_SIMATIC Automation Tool _ SIMATIC S7/HMI SIMATIC Automation Tool V3.1 SP1 User Guide Manual V3.1 SP1, 05/2018 A5E43616265-AA Preface Downloading, licensing, and installing the SIMATIC Automation Tool 1 SIMATIC Automation Tool overview 2 Prerequisites and communication setup 3 Getting started with the SIMATIC Automation Tool 4

Welcome to STEP 7 Lite. the SIMATIC software for generating PLC programs in LAD, FBD or STL for SIMATIC S7-300 (including SIMATIC C7), ET 200S and ET 200X. STEP 7 Lite is designed for the newcomer to SIMATIC

grade step 1 step 11 step 2 step 12 step 3 step 13 step 4 step 14 step 5 step 15 step 6 step 16 step 7 step 17 step 8 step 18 step 9 step 19 step 10 step 20 /muimn 17,635 18,737 19,840 20,942 22,014 22,926 23,808 24,689 325,57! 26,453 /2qsohrs steps 11-20 8.48 9.0! 9.54 10.07 10.60 11.02 11.45 11.87 12.29 12.72-