Project 1. Logic control for a door sluice with the language SIMATIC STEP 7

Similar documents
Programming Logic controllers

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE A5 Programming the CPU 314C-2DP

S7 for Windows S7-300/400

EXPERIMENT 2 TRAFFIC LIGHT CONTROL SYSTEM FOR AN INTERSECTION USING S7-300 PLC

Programming A PLC. Standard Instructions

STEP 7 MICRO/WIN TUTORIAL. Step-1: How to open Step 7 Micro/WIN

Training Document for Integrated Automation Solutions Totally Integrated Automation (TIA) MODULE M1

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODUL E04

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE C2. High Level Programming with S7-SCL

Technical Training Module ( 30 Days)

Training document for the company-wide automation solution Totally Integrated Automation (T I A) MODULE A5. PLC-Simulation with S7-PLCSIM

SIMATIC. System Software for S7-300 and S7-400 Program Design A B C D. Programming Manual C79000-G7076-C Preface, Contents

How to read this guide

2011, The McGraw-Hill Companies, Inc. Chapter 5

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1

THE STEP7 PROGRAMMING LANGUAGE

Programmable Logic Controller PLC

PROFINET IO Diagnostics 1

Automating with STEP7 in LAD and FBD

Programmable Logic Controllers Definition. Programmable Logic Controllers History

Analog Inputs and Outputs

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A) MODULE E05

INGENIEURBÜRO FÜR TECHNOLOGIE TRANSFER DIPL.-ING. B. P. SCHULZ-HEISE. Getting Started with. S7 for Windows. Version 6.x

Automating witfi STEP7 in LAD and FBD

SIMATIC. C7-621, C7-621 AS-i Control Systems. Volume 2 Working with C7 A B C D E. Contents. User Information. Introduction. Startup.


CPUs - CPU PN/DP

Programming Examples. B.1 Overview of Programming Examples. Practical Applications. Instructions Used

WinCC. Communication Manual. Manual 2. This manual is part of the documentation package with the order number: 6AV6392-1CA05-0AB0 C79000-G8276-C156-01

LADDER LOGIC/ FLOWCHART PROGRAMMING DIFFERENCES AND EXAMPLES

PROGRAMMABLE LOGIC CONTROL

SIMATIC S Getting Started for First Time Users. Order No.: 6ZB5310-0NC02-0BA0 04/2007 A5E

SIMATIC. S7 Graph V5.1 for S7-300/400 Programming Sequential Control Systems. Preface, Contents. Product Overview. Installation and Authorization

Service & Support. How can you establish a connection between a S PLC and SIMATIC NET OPC? S PLC, SIMATIC NET OPC.

Fig 3. PLC Relay Output

SIMATIC S7-300, CPU 315-2DP CPU WITH MPI INTERFACE INTEGRATED 24 V DC POWER SUPPLY 128 KBYTE WORKING MEMORY 2

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Introduction to LogixPro - Lab

MICROPROCESSOR AND MICROCOMPUTER BASICS

I N G E N I E U R B Ü R O F Ü R TEC HNOLOGIE TRA NSFER DIPL.-I NG. B. P. SCHULZ-HEISE. Training Manual. STEP 5 S5 for Windows Training

6ES7313-5BF03-0AB0. Supply voltages Rated value 24 V DC Yes permissible range, upper limit (DC) circuit breaker type B, min. 4 A

PROCESS AUTOMATION PLANNING AND INTEGRATION INFORMATION LB8106* Integration in Siemens SIMATIC PCS 7

An overview of Computerised Numeric Control (C.N.C.) and Programmable Logic Control (P.L.C.) in machine automation

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

SIMATIC. S Getting started with S Preface. Quick review 1. Installation 2. Create a simple latch circuit 3. Complete the user program 4

S and STEP 7 Basic V10.5

mecotron Safety relay ESTOP-2 For emergency stop monitoring

Service & Support. How can you establish a connection between an S PLC and SIMATIC NET OPC? S PLC, SIMATIC NET OPC.

Introduction. - Please be sure to read and understand Precautions and Introductions in CX-Simulator Operation Manual and

Getting Started - SINAMICS Startdrive. Startdrive. SINAMICS Getting Started - SINAMICS Startdrive. Introduction 1

ABB i-bus EIB Logic Module LM/S 1.1

Industrial Automation Training Academy. PLC, HMI & Drives Training Programs Duration: 6 Months (180 ~ 240 Hours)

How To Use B&R Automation

TIMING, COUNTING, AND DATA-HANDLING INSTRUCTIONS. Key Points

6ES BE01-0AB0 6ES BE01-0AB0

Application Unit, MDRC AB/S 1.1, GH Q R0111

Training Document for SIMIT SCE. MODULE G2 'Startup System Simulation with SIMIT SCE V7

PLC SW and Programming. Nagy István, BMF BGK MEI

1 Application Description Objective Goals... 3


PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15

Series Six Plus Programmable Controller

SOFTLINK 300. CPU Specifications. Reference Manual

FAQ about Drive Technology

FAQ Communication over IE

SIMATIC. Programming with STEP 7 Lite V3.0. Preface, Contents Introducing the Product and Installing the Software. Basics of Designing a Program 2

Programming Timers CHAPTER 4-1 GOALS AND OBJECTIVES 4-2 MECHANICAL TIMING RELAYS

Instruction manual. testo easyheat Configuration and Analysis software

Chapter 2 Logic Gates and Introduction to Computer Architecture

SIMATIC. S7 300 PLC CPU 317T-2 DP: Controlling a virtual axis. Introduction. Preparation. Learning units 3. Further information 4.

TRILOGI 5.3 PLC Ladder Diagram Programmer and Simulator. A tutorial prepared for IE 575 by Dr. T.C. Chang. Use On-Line Help

SIMATIC. PLC Simulation for S7-300 and S Preface, Contents Installing the PLC. Simulation Software Getting Started with

Programmable Logic Controllers Basic Level Textbook TP 301

QUICK START GUIDE. SG2 Client - Programming Software SG2 Series Programmable Logic Relay

MIDECO 64-outputs MIDI note decoder USER MANUAL. Roman Sowa 2012

Programmable Logic Controllers

Lecture 8: Synchronous Digital Systems

SCE Training Curriculum for Integrated Automation Solutions Totally Integrated Automation (TIA)

WinProladder User Guide Content

Controllers. The integrated standard software guarantees highest quality standards! Simple and safe operation. Specific and clear indication

Creating the program. TIA Portal. SIMATIC Creating the program. Loading the block library. Deleting program block Main [OB1] Copying program blocks

PNOZmulti Configurator V8.1.1

Applications & Tools. Configuration of Messages and Alarms in WinCC (TIA Portal) WinCC (TIA Portal) Application description December 2012

Mitsubishi Electric Q Series PLC Ladder Monitor. Operation Manual

isppac-powr1220at8 I 2 C Hardware Verification Utility User s Guide

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

Copley Camming User Guide

S7-400H SIMATIC. Fault-tolerant systems S7-400H. Preface 1 Fault-tolerant automation systems. S7-400H setup options 3.

Programmable Logic Controllers

6ES7314-6CG03-0AB0. Supply voltages Rated value 24 V DC Yes permissible range, upper limit (DC) circuit breaker type B, min. 4 A

Start-up of IVI-KHD2-4HRX, IVI-KHA6-4HRX at S7-300 V1.1. Table of Contents TABLE OF CONTENTS... 1

Digital Electronics Detailed Outline

CPU PN/DP: Configuring an ET. 200S as PROFINET IO device SIMATIC. PROFINET CPU PN/DP: Configuring an ET 200S as PROFINET IO device

40.3. Control Relays and Timers

Quick Start Tutorial. Using the TASKING* Software Development Tools with the Intel 8x930 Family Evaluation Board

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

Automation and Systems Technology. LABCONTROL TFM/TPM User Manual TroxMConnect Operating Software. 1. Introduction Software Installation 2

The goal is to program the PLC and HMI to count with the following behaviors:

The following shows the symbols used in this Quick start guide with descriptions and examples. Symbol Description Example. Select [Project] [New].

Transcription:

Project 1 Logic control for a door sluice with the language SIMATIC STEP 7

List of contents 1 Main objective and learning objectives 2 Introduction 2.1 Structure of an automation system (automation schematic, PLC) 2.1 Fundamental principles of the basic programming software STEP 7 - Methods of representation - Logic functions - Memory functions - Time functions - Counter functions - Blocks of STEP 7 (OB1, FC, FB) 3 Hard- and software 4 Procedure for setting up and programming a logic control with STEP 7 5 Problem description of a door sluice 5.1 Technology schematics 5.2 Problem description 6 Assignment list for the door sluice 7 Tasks during the execution of the project 2

1 Main objective and learning objectives Main objective Mode of operation and programming of a Programmable Logic Controller (PLC). Learning objectives: - Characteristics of a PLC (synchronous, asynchronous) - Analysis of the process schematic - Statement of the interlocking functions and the safety requirements - Creating of a control system function chart in conformity with DIN 40719, part 6 - Selection of the necessary hardware units - Programming - Simulation - Start-up procedure, testing 2 Introduction 2.1 Structure of an automation system The automation system SIMATIC S7-300 used in the project is a modern programmable logic controller. It consists of the following units: - Power supply unit PS 3075A provides the internal supply voltage - Central processing unit CPU 315-20P saves and processes the user program created in STEP 7 - Input module for connecting 16 digital sensors - Output module for connecting up to 16 actuators, e.g. contactor coils, valve coils or signal lamps. In contrast to the wired-program controllers, where the operation of the control is determined by direct connections between the single sensors and actuators, the connection of the terminals (input and output) does not depend on the program to realize with a programmable logic controller. With the same configuration (hardware), it is possible to solve various control tasks without changing the wiring, only by changing the saved command logic (software). Easy and fast changing of the program provides special advantages the PLC in different situations: - during the set up - frequently changing program processing - machines with changeable assembling The basic item of each PLC is the central processing unit (CPU) with the processor, the address counter, the program memory and in most cases the power supply unit, too. The central processor contains the control unit with a clock generator, the arithmetic-logic unit and the memories for retentive flags, output flags and the process input/output image. This is a memory area representing the signal state of in- and outputs, of flags and the states of timers and counters. 3

The control unit controls the succession of processing the commands of a user program. It decodes these commands, checks the state of the flags and outputs the digital signals for the execution of the commands. The pulses for reading and for the execution of the program commands are produced by the internal clock generator with clock times between 1 and 5µs, depending on the type used. The arithmetic-logic unit executes the actual logic operation of the operands according to the logic and arithmetic conditions, but also other operations like comparing, converting or shifting. Figure 1 displays the schematic structure of a PLC. Figure 1: Programmable logic controller 4

2.2 Fundamental principles of the basic programming software STEP 7 STEP 7 is a software for programming and configuring SIMATIC S7-300/400 Automation Systems, running under Windows 95/98 or Windows NT. The basic software gives support in all phases during the programming of automation solutions, as e.g.: - Set up and management of projects - Configuration and parameter assignment of hardware - Programming for S7 destination systems - Loading of programs into destination systems - With optional software S7-PLCSIM: Execution of the program simulation - Testing the automation system - Diagnosis of system disturbances As the STEP 7 user environment is arranged modernly, it is easy to learn and you can get into it very quickly. Methods of representation (LAD, STL, CSF) Following programming languages are integrated in the basic software: - LAD (ladder diagram) is a graphical programming language similar to a circuit diagram. It allows following the signal flow in the network easily. - STL (statement list) is a machine-oriented language. The single steps correspond largely with the steps, the CPU processes. - CSF (control system flowchart) is a graphical language which uses the logical elements of the boolean algebra for representing the operation logic. Logic functions The logic operations work with two states: Number "1" for logical "yes" and Number "0" for logical "no". These numbers are called "binary digits", short "Bits", and form the binary numerative system. In the programming languages above the fundamental combinations of the binary signal states are represented as follows: 5

LAD AND conjunction OR disjunction NOT negation a b y ( ) a b y ( ) a y ( ) STL U a U b = y O a O b = y UN a = y CSF a b & y a b 1 y a & y Equation y = a b y = a b y = a Truth table a b y 0 0 0 0 1 0 1 0 0 1 1 1 a b y 0 0 0 0 1 1 1 0 1 1 1 1 a b 0 1 1 0 Examples of logic functions AND-before-OR (symbolic representation) Circuit diagram LAD STL CSF ( ) U 0 U UN = & 1 = OR-before-AND (symbolic representation) Circuit diagram LAD STL CSF ( ) U( O O ) UN = 1 & = 6

Exclusive OR (symbolic representation) Circuit diagram LAD STL CSF X X = XOR 0 0 0 0 1 1 1 0 1 1 1 0 Memory functions The following memory functions are used in combination with binary operations in order to exercise an influence on binary operands: - the Assignment box for dynamic control: - the Set and Reset box as single memory function: - the Set and Reset box as complete memory function: SR box: RS box: SR S R Q binary operator = binary operator S RS R S Q binary operator R - the Connector box as temporary memory: e.g. a b & flag # & c Output 1 = binary operator # Time functions Time functions show the following performance: Time function as Pulse generator S_IMPULS Expanded pulse S_VIMP ON delay S_EVRZ Latching ON delay S_SEVRZ OFF delay S_AVRZ Start pulse t t t t t 7

Time functions in box representation (in the example: ON delay) T no. S_ODT S CV TV BCD R Q Parameters Data Description Type T no. Timer Timer identification number, the range depends on the CPU S BOOL Start input TV S5T# Preset time value, e.g. S5T# 10s R BOOL Reset input CV WORD Time remaining (value in integer format) BCD WORD Time remaining (value in BCD format) Q BOOL Status of the timer Counter functions With the counter functions, counter tasks can be executed directly by the CPU. The counter functions can both count up and down: The counter range extends over three decades (000 to 999). A counter function can be programmed completely as a box, but also with a single programm block. Counter functions in box representation (in the example: ON delay) C no. C_CUD CU CD S CV PV BCD R Q Parameters Data Description Type C no. Counter Counter identification number. The range depends on the CPU. CU BOOL Input Up Counter CD BOOL Input Down Counter S BOOL Input for presetting counter PV WORD Counter value in the range between 0-999 or entered as C#<value> in BCD format R BOOL Reset input CV WORD Current count value (hexadecimal number) BCD WORD Current count value (BCD format) Q BOOL Status of the counter Blocks of STEP 7 (OB1, FC, FB) Organization block OB1 The organization block OB1 forms an interface between the operating system of the CPU and the user program. The operation system of the CPU processes the OB1 cyclically. In the OB1 functions (FC) or function blocks (FB) can be called, but you can also create programs which are executed immediately. Function FC A FC function is a code block without a "memory", however it can pass over parameters. This block is especially suitable for programming functions frequently repeating themselves. Example: control with binary logic. 8

Function block FB A function block is a block with an "assigned memory". It refers to a data block as memory (instance data block). A FB contains a program which is executed whenever the FB is called by another code block, e.g. OB1. FB makes programming easier when there are frequently returning, complicated functions. OB1 Call FC FB FCx FBx DB Figure 2: Block structure 3 Hard- and Software The execution of the logic control requires following hard- and software components: a) Programmable controller S7-300 with components: - mounting channel as a mounting rack - Power supply module PS 3075A (6ES7-307-1EA00-0AA0) - Central processing unit CPU 315-2DP (6ES7-315-2AF03-0AB0) - Digital input module 16xDC 24V (6ES7-321-1BH01-0AA0) - Digital output module 16xDC 24V, 0.5A (6ES7-322-1BH01-0AA0) b) MPI interface cable for the connection CPU / PC c) PC with a minimum configuration: Pentium processor, Windows 95/98/NT, 32MB RAM, hard disc 3 GB, CD-ROM drive, colour display d) Software package SIMATIC STEP 7 9

4 Procedure for setting up and programming a logic control with STEP 7 SIMATIC Manager - Start Wizard - Cancel Menu field: File " New "! Name (Project) enter OK Menu field: Insert " Station " SIMATIC 300! " # + - Project-Name! # + SIMATIC 300 " Hardware!! $! (! = left mouse click) (!! = doubleclick) Hardware configuration Toolbar: Catalog! " # + - SIMATIC 300! "%# + - RACK 300! "% [] - Rail!! " # + - PS300! [] - PS3075A!! (6ES7 307-1EA00-0AA0) " # + - CPU 300! " []- CPU 315-2DP! " # + - 6ES7 315-1AF03-0AB0! " [] V1.1!! Properties-Profibus interface DP Master (RO/2.1) OK Insert (2775:790) No Insert (13:4242) No Column 3 in the configuration table should be left empty, column 4 clicked " # + - SM 300! " # + - DI 300! [] - SM 321 DI 16xDC 24V!! (6ES7 321-1BH01-0AA0) " # + - DO 300! [] - SM322 DO 16xDC24V/0,5A!! (6ES7 322-1BH01-0AA0) Configuration save: " Station " Save! Configuration exit: " Station " Exit! In project " # + - SIMATIC 300! " # + - CPU315-2DP! " # + - S7 Program! Sources " Block!! Menu field: Insert " S7 block " Organization block menu field:! Properties-Function block General-Part 1: Name: OB1 Created in Language: LAD OK Menu field: Insert " S7 Block " Function block! Properties-Function block General-Part 1: Name: FC1 Created in language: FUP OK 10

Programming FC1 In Project: FC1 Program write, " Toolbar " Save! $!! In project: " OB1 " Toolbar " Program elements " FC! " FC1! $!! " Toolbar " Save! OB1 and FC1 with Ctrl! Menu field: View " Load (mode On-line )! Toolbar: Simulation! Start the Simulation: S7-PLCSIM Toolbar: Insert Input, Output, Bit memory, Timer, Counter! "% Input, Bit memory, Timer, put down CPU 300/400 " RUN! Simulation performing. For the simulation the time is given in minutes, in the sequence of the chain it can be watched better. 11

5 Problem description of a door sluice 5.1 Technology schematics L1 S6 LI1 E S3 door A S M M1A M1Z S5 LI2 S8 E S4 S M M2A M2Z S7 door B L2 Figure 3: Door sluice 5.2 Problem description To keep a room free of dust as far as possible, a sluice with two sliding doors A and B is installed. The control of the sluice shall be carried out as a logic control with storage properties (control for states SR flag) in the STEP 7 programming language. Passing the sluice through door A (or B), the pushbutton () must be actuated. The impulse operates on a memory element (e.g. flag with SR performance), which causes - a signal lamp L1 (L2) to display that door A (B) is being opened; L1 (L2) goes out when the door is open. - opening of door A (B) until the door has reached the position switch S5 (S7). After door A (B) being open for 3 sec., it shall close again reaching the position switch S6 (S8). Door B (A) only opens automatically after door A (B) has been closed. Each entry to the sluice is observed by a light barrier LI1 (LI2). As long as the light barrier is interrupted, the opened door may not close. In the sluice two push-buttons S3 (S4) are attached to open the corresponding door in case of emergency. If during the closing of a door the light barrier is interrupted or the corresponding pushbutton, S3 (, S4) is actuated, door A (B) opens again immediately. Besides, it must be considered that door A and door B cannot be opened at the same time. 12

6 Assignment list for a door sluice Symbol Inputs Comment I 0.1 pushbutton, open door A (outside) I 0.2 pushbutton, open door B (outside) S3 I 0.3 pushbutton, open door A (inside) S4 I 0.4 pushbutton, open door B (inside) S5 I 0.5 inductive position switch; make contact when door A open S6 I 0.6 inductive position switch; make contact when door A closed S7 I 0.7 inductive position switch; make contact when door B open S8 I 0.8 inductive position switch; make contact when door B closed LI1 I 1.1 light barrier, door A - break contact LI2 I 1.2 light barrier, door B - break contact Outputs L1 Q 4.0 display door A opening M1A Q4.1 motor of door A - open M1Z Q 4.2 motor of door A - close L2 Q 4.3 display door B opening M2A Q 4.4 motor of door B - open M2Z Q 4.5 motor of door B - open T1 time delay 3 sec. for automatic closing of the doors 7 Tasks during the execution of the project - Analysis of the technology schematics - Design of the logic diagram - Statement of the interlock function and the according safety requirements - Programming of the control according to the defined procedure - Executing the simulation on the PC - Loading the program into the programmable controller, testing mode 13