Programming with Function Blocks

Slides:



Advertisements
Similar presentations
Logic Gates A logic gate is an elementary building block of a digital circuit Most logic gates have two inputs and one output At any given moment, every.
Advertisements

Programmable Logic Controllers.
Programming Logic Gate Functions in PLCs
Module 2 Sequential circuits and Step sequence. Analyze conditional control tasks and develop proper solutions for such tasks. Understand and utilize.
PLC Applications[ATE-1212] Module-1
Programming with Ladder Logic
Unit 7 Discrete Controllers
Digital Logic Chapter 5 Presented by Prof Tim Johnson
Programmable Logic Controllers
Programmable Logic Controller PLC
Ladder Logic PLC Programs are made up of combinations of AND; OR; NAND; NOR; and other gates, along with timers, inputs, outputs, counters, comparators,
Chapter 6 Introduction to Logic.
Lecture 7: PLC: Review Questions
Chapter 4 Gates and Circuits.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Copyright © Cengage Learning. All rights reserved. CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS.
PLC Fundamentals Module 2: Hardware and Terminology.
Module 2: Hardware and Terminology
Lecture 6: PLC: Timers and Counters
In this module you will learn: What the various logic gates do. How to represent logic gates on a circuit diagram. The truth tables for the logic gates.
Logic Functions OR Operation
TRTS Team-6))EET-EL-5 15/5/ – Ibrahim Hamdy 219 – Salman Hassan About : PLC ( LOGO ) With Mr.Klaus Koevener.
Advanced Instructions Most PLCs now support more advanced functions such as Floating point math, Boolean operations, Shifting, Sequencing, Program control.
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
Digital Computer Design Fundamental
Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag
Quiz # 2 Chapters 4, 5, & 6.
Logic Gates How Boolean logic is implemented. Transistors used as switches to implement Boolean logic: ANDOR Logic with Transistors.
Industrial Process Control System Simon Hui Engineer Control and Informatics, Industrial Centre.
Module 1: Introduction to PLC
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #7 COMBINATIONAL LOGIC ANALYSIS.
COM181 Computer Hardware Ian McCrumRoom 5B18, Lecture 2: Circuits.
Memory Layout and SLC500 System Addresses. Processor Memory Division An SLC 500 processor's memory is divided into two storage areas. Like two drawers.
Lecture 5 5. Sequential functions and circuits 5.1 Introduction
CHAPTER 2: TYPES OF CONTROLLER
Week 6: Gates and Circuits: PART I READING: Chapter 4.
Timers and Counters by Dr. Amin Danial Asham. References  Programmable Controllers-Theory and Implementation, 2nd Edition, L.A. Bryan and E.A. Bryan.
PROGRAMMABLE LOGIC CONTROLLER “ FUNDAMENTALS OF LOGIC…”
Prepared by: Engr. Qurban Ali Memon 11ES (SEC- 1 & 2)
1 RLL: Relay Ladder Logic CONTENTS 1. PLC operation 2. PLC programming 3. Ladder logic 4. Memory and gates.
Teaching Digital Logic courses with Altera Technology
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
MECH 1500 Chapter 4. MECH 1500 The Binary Concept 4.1.
WORKING PRINCIPLE OF DIGITAL LOGIC
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
Chapter 3 Boolean Algebra and Digital Logic T103: Computer architecture, logic and information processing.
Actuators and Control, Part 4 Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning.
Chapter 5.
PLC programming Part 3: Problems with solutions. Topics  Every problem is devided into three parts:  Technology description contains the general properties.
Logic Gates Unit 16.
Logic gates.
Creating logic gates with Minecraft
Basics of Logic gates - Part 1
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
Module 1: Introduction to PLC
Logic Gates and Boolean Algebra
Homework Reading Machine Projects Labs
Chapter 2.3 Binary Logic.
بسم الله الرحمن الرحيم Khartoum Refinery Company E/I Department Siemens PLC_S7-200 Level (1) Eng: Sami Ahmed 2017 PART2 SOFTWARE.
KS4 Electricity – Electronic systems
KS4 Electricity – Electronic systems
Industrial Electronics
CS105 Introduction to Computer Concepts GATES and CIRCUITS
8.0 Programmable Logic Controllers 1
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
Boolean Logic Boolean Logic is considered to be the basic of digital electronics. We know that a computer’s most basic operation is based on digital electronics.
KS4 Electricity – Electronic systems
Combinational Circuits
Objectives Construct truth tables for the following logic gates:
Ladder programming Counter Instruction S7 300
Presentation transcript:

Programming with Function Blocks   PLC Fundamentals Mod. 3 Programming with Function Blocks

Module Objectives Upon successful completion of this module, students will be able to: Gain an overview of the important basic PLC concepts and functions in control technology. Demonstrate how different logic functions work, such as the AND,OR and NOT. Represent logic function operations in truth tables. Use the timing and counting functions in programs. Gain an overview of the most important functions of LOGO!Soft. Create and test control programs using function blocks. Demonstrate how to transfer programs from the PC to the LOGO! controller.

Useful Websites http://www.mekanizmalar.com/logic_gates.html http://www.wisc- online.com/Objects/ViewObject.aspx?ID=dig1302

Boolean equations: consist of variables and operations and look very similar to normal algebraic equations. The three basic operators are AND, OR and NOT. A·B=B·A A+B=B+A Truth table is a simple method for showing all the possible combinations that will turn an output ON or OFF. 3.1 Boolean Equations

Logic Functions PLC Systems execute logic functions. Therefore, understanding logic functions of binary numbers is important for PLC programming. The basic logic functions include AND, OR, NOT, NAND, NOR & EXOR. AND Function: AND function has two or more inputs and only one output. It produces a HIGH output only when all its inputs are HIGH. Boolean Expression: P1=S1.S2

Logic Functions

OR Function: OR function has two or more inputs and only one output OR Function: OR function has two or more inputs and only one output. It produces a HIGH output only if one or more of the inputs are HIGH.

NOT Function: A NOT function has only one input and one output NOT Function: A NOT function has only one input and one output. It produces an output that is opposite to the input. Boolean Expression: P1=S1

3.2 Logic Design To design logic circuits for a particular application it is important to describe how a controller works. In order to describe the actual condition for a controller to work, it is usually expressed in terms of a Boolean equation. In this case it is written out in the form of a sentence first, and then converted to a Boolean expression. The Boolean expression may then be converted to a desired form: either the Function Block Diagram (FBD) or the Ladder Diagram (LAD).

Class Activity: “Example” A machine can be only switched ON if its door is closed (this can be sensed using a limit switch) and two pushbuttons are pressed. Write down the Boolean expression for this problem. 1. To find the Boolean expression we need first to determine the inputs and outputs ???

The machine will turn on: 2. Then we need to find the relation between the inputs  what is the condition to turn ON the output ? The machine will turn on: when L is pressed AND P1 is pressed AND P2 is pressed. M=L.P1.P2

3.3 Programming Methods A program is a set of instructions to do a task. The following methods could be used for PLC programming: Function Block Diagram (FBD)  *** Ladder Logic (LAD) Statement Lists

Function Block Diagram A block in LOGO! is a function which converts the input information to output information. Here S1 & S2 are the terminals that are connected to the AND function block. The output H1 will be ON only if both the switches S1 and S2 are ON. Function Block Diagram

3.4 LOGO! Soft Overview LOGO!Soft Comfort is a programming software for the LOGO Using LOGO!Soft, you can create control programs and transfer them to LOGO! The LOGO!Soft user interface has the following function areas as shown in figure 3.5 below: Menu bar Standard tool bar Programming Interface Info box Status Bar Toolbox Constants, connectors, functions

3.4 LOGO! Soft Overview

3.4 LOGO! Soft Overview LOGO! provides various elements in programming mode. Co: Connector List. GF: List of basic functions AND, OR, and so on. SF: List of special functions. The Co, GF and SF tabs could be used to select the terminals and function blocks.

Creation of a control program using Function Blocks The following program demonstrates the OR function. The input and output terminals and the OR function are used to create the function block diagram.

The following rules must be followed while connecting the blocks: Connection can be made between one block output and one block input. An output can be connected to several inputs. An input cannot be connected to several outputs.

Program Simulation The program can be tested using simulation. A program is tested by specifying the input signals and observing desired output signal as shown in figure. The red lines carry a 1-signal and the blue lines carry a 0-signal.

Program Transfer to LOGO! The program can be downloaded from the PC to LOGO! and then tested.

3.5 Memory function Memory function is used to store a signal. It has SET (S) and RESET (R) inputs. A high at the set input sets (stores 1) the memory function, and a high at the reset input resets the memory function.

3.6 Timing function This function is used to provide a time-delay in a circuit. In the figure, a switch-off delay is used to delay the off-time. The lamp P1 will be off after 5 seconds.

The Figure shows the timing function block. T input is used to set the time. The Q output will be high for the time set at the T input.

Timer Types There are different types of timers: OFF Delay timer: It is used when there is a need to stop an action after a certain time. ON Delay timer: It is used to start an action after a certain time. For example, some machines do not require running immediately when switched on, but after a certain time, either for safety or for lubrication.

3.7 Counting function Counting functions are used to detect the number of items and events. For example, a counter may be required to count exactly 10 identical parts that need to be fed onto a conveyor of the sorting system. The Figure shows the counter function block.: PV is the Preset Value. The counter value increases by 1 for each input signal at CU. When the preset value is reached. the output Q becomes ‘1’.

3.8 Summary of Basic Control Functions The Basic Control Functions include the following: Logic functions (AND,OR,NOT) Memory functions (Latching) Timing Functions. Counting Functions.

Class Activities Skill 1 Skill 2 3.12 Review Exercise