PROGRAMMABLE LOGIC CONTROLLER POWER SUPPLY FIELD INPUTSCONTROL PROCESS/MACHINE INPUT MODULE CPU PROGRAM MEMORY OUTPUT MODULE PLC.

Slides:



Advertisements
Similar presentations
Module 2 Sequential circuits and Step sequence. Analyze conditional control tasks and develop proper solutions for such tasks. Understand and utilize.
Advertisements

ECT 464 Lecture 22 Siemens Instructions 1. Today’s Quote: The best way to get the last word is to apologize. If you have been trapped by what you said,
Programming with Ladder Logic
Unit 7 Discrete Controllers
Copyright © 2005 Rockwell Automation, Inc. All rights reserved. 1 Micro Logix 1100 RSLogix 500 LAB#2 Timing, Counting & Comparing.
PLC Timer Instructions
Discrete Control Logic 1. Pneumatic circuits - Low forces - Discrete, fixed travel distances - Rotational or reciprocating motion Main components: compressor,
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
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,
Switchgears Control Using SCADA System Based on PLC
1 The University of Jordan Mechatronics Engineering Department PLC: Programmable Logical Controller.
Introduction To Programmable Logic Controllers
Lecture 7: PLC: Review Questions
FUNCTION OF OUTPUT CONTROLLER AND APPLICATION
PLC OPERATION & PROGRAMMING Dr. ONUR TOKER. What is a PLC ? PLC is a computer system controlling a process. inputs - the keyboard is analogous to a proximity.
Programmable Logic Controller Internal Operations
PLC Fundamentals Module 2: Hardware and Terminology.
Programmable Logic Controllers
By: Andri Kuncoro. SIMATIC Overview SIMATIC Controller (PLC) S7-200 S7-300 S7-400.
Chapter 19 Fundamental PLC Programming
Programming with Function Blocks
Module 2: Hardware and Terminology
Lecture 6: PLC: Timers and Counters
Pump Application Interface. 30 October 2006 Overview Increases the functionality of the soft starter for pumping applications - four additional trip inputs.
PLC: Programmable Logical Controller
Logic Functions OR Operation
PLC introduction1 Discrete Event Control Concept Representation DEC controller design DEC controller implementation.
PLC: Programmable Logical Controller
Introduction to Robo Pro
Forging new generations of engineers
I/P Addressing Each input or output is assigned a number on its module, which is referenced to within the program which is refereed to as “address”.
New items for final exam. An indication of your current comfort level to the final exam is your responses to the following 8 practice question set. Pre-presentation.
Date: File:PRO1_12E.1 SIMATIC S7 Siemens AG All rights reserved. Information and Training Center Knowledge for Automation Troubleshooting.
PLC Counter Instructions
Chapter 10 Advanced Programming, PLC Interfacing, and Troubleshooting
8279 KEYBOARD AND DISPLAY INTERFACING
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 (PLC)
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.
PLC ARCHITECTURE – Memory 2 by Dr. Amin Danial Asham.
Binary Operations I0.0 I0.1 Q 8.0 Q 8.1 I 1.0 ( MCR< ) (MCRA) Q 8.0
Ladder Concept.
PLC APPLICATIONS MODULE 3 Time sequence processes.
Date: File:PRO1_08E.1 SIMATIC S7 Siemens AG All rights reserved. SITRAIN Training for Automation and Drives Digital Operations CMP ==I.
Programmable Logic Controller
S7-200 PLC training courses
PLC APPLICATIONS MODULE 3 Time sequence processes.
Seminar on "PLC” (Programmable Logic Controller)
PLC programming Part 3: Problems with solutions. Topics  Every problem is devided into three parts:  Technology description contains the general properties.
Discrete Control Logic
Chapter 7.
LG PLC COURSE Beginner Prepared by : -Hossam Mohammed -Ramdan said
Basic Computer Organization and Design
PLC: Programmable Logical Controller
The Programmable Logic Controller
fischertechnik® RoboPro Software for Gateway To Technology® RoboPro
Industrial Electronics
Programming Timers.
Industrial Electronics
MicroEconomix 1500 RSLogix 500 LAB#2
Lecture Number 4 Siemens S7.
8.0 Programmable Logic Controllers 1
Lesson 19: PLC Programming Techniques
S RAJARAJAN_ASST PROF, BSARCIS&T
Programmable Logic Controllers (PLCs)
Programmable Logic Controllers (PLCs)
Ladder programming Counter Instruction S7 300
Presentation transcript:

PROGRAMMABLE LOGIC CONTROLLER POWER SUPPLY FIELD INPUTSCONTROL PROCESS/MACHINE INPUT MODULE CPU PROGRAM MEMORY OUTPUT MODULE PLC

CPU PLC AI 0.0 OPRATION OPRAND IDENTIFIER PARAMETER OPRAND

Start scan monitor time Load process input image Call OB1 (scan user program) Transfer process output image System program Digital inputs Digital outputs :JUPB1 :BE : :AI0.0 : :=Q4.0 :BE PII PIQ OB1 PB1 User program

Software Blocks used in program PB 0………255 OB 1………255 SB 0……..255 DB 2……..255 FB 0……….255 Program blocks: for plants specific functions Function blocks for standardized function,independent of particular plant Organization Blocks for organization and supervision of program execution called by the system program. Sequence blocks: for programming sequences (sequential control system Data blocks for the storage of fixed and variable data

I0.1 ( ) I0.0Q4.0 LAD :AI0.0 :AI0.1 :=Q4.0 STL CSF & Q4.0 I0.0 I0.1 = K1 I0.1 Q4.0 I0.0 CIRCUIT DIAG. S1 K1 24v S2 0v INPUT MODUL PLC OUTPUT MODUL

Check for 0&Check for 1 NO Contact NC Contact When Actuated When Not Actuated When Actuated When Not Actuated STL FBD/CSF LAD RepresentationCheck for 1 Check for 0 A… O... AN.. ON.. (1)

Q4.0 =>1 I0.5 I0.0 & & = I0.1 I0.2 I0.3 I0.4 CSF O( AI0.0 AI0.1 AI0.2 ) O( AI0.3 AI0.4 ) 0I0.5 =Q4.0 STL I0.3 I 0.0 I0.5 Q4.0I0.1I0.2 LADDER I0.4 K1 I0.3 I I0.5 Q4.0 I0.0 I0.2 AND-BEFORE OR-OPERATION

LADDER ( ) I0.0I0.3I0.5Q4.0 I0.2I0.4 I0.2 I0.0 I0.3 I0.4 >=1 & = I0.1 I0.2 I0.5 Q4.0 CSF :A( :OI0.0 :OI0.1 :OI0.2 ) :A( :OI0.3 :OI0.4 ) :AI0.5 =Q4.0 STL I0.5 Q4.0 OR-BEFORE AND-OPERATION I0.0 I0.3 I0.1 I0.4 I0.2 K1

Contacter K1 on when S1 is operated and S2 is not operated I0.0 I0.1 Programmable Controller Q4.0 K1 24v S1S2 0v I0.1 ( ) I0.0Q4.0 LAD :AI0.0 :ANI0.1 :=Q4.0 STL CSF & Q4.0 I0.0 I0.1 =

Contacter K1on when S1 is operated and S2 is not operated :ANI0.0 :AI0.1 :=Q4.0 STL I0.0 I0.1 Programmable Controller Q4.0 K1 24v S1S2 0v I0.1 ( ) I0.0Q4.0 LAD CSF & Q4.0 I0.0 I0.1 =

Contacter K1on when S1 is operated and S2 is not operated I0.1 ( ) I0.0Q4.0 LAD :AI0.0 :AI0.1 :=Q4.0 STL I0.0 I0.1 Programmable Controller Q4.0 K1 24v S1S2 0v & CSF Q4.0 I0.0 I0.1 =

Two out of three Input=I0.0,I0.1,I0.2Output=Q4.0 STL :O :( :AI0.0 :AI0.1 :) :O :( :AI0.1 :AI0.2 :) :O :AI0.2 :AI0.0 :) :=Q4.0 ( ) LAD I0.0I0.1Q4.0 I0.1I0.2 I0.0 I0.1 I0.2 I0.0 & & & >=1 = Q4.0 I0.1 I0.2 CSF

Three inputs are there I 0.0, I 0.1, I 0.2. After tripping compressor all inputs have state change. Give the 1st out for above inputs. S RQ( ) S RQ S RQ Q4.0 Q4.1 Q4.2 Q4.1Q4.2 Q4.0 Q4.1Q4.0 I0.0 I0.3 I0.1 I0.2

Write a program in STL/LAD/CSF for the given below TASK: In the process there are three temperature sensors(e.g. T1,T2,T3) two pressure sensors(e.g.P1,P2)and enable input. 1 All three temperature sensors i.e.T!,T2,T3 should on. 2 OR both the pressure transducers should on. 3 OR enable input should be activated. T1 T2 T3 P1 P2 Note:normal condition=NC Abnormal condition=NO Data 1 Temp. input T1=I0.0 2 Temp input T2=I0.1 3 Temp input T3=I0.2 4 Pressure input P1=I0.3 5 Pressure input P2=I0.4 6 Enable input=I0.5 7 Output Q=Q4.0 And before Or

I0.3 I0.4 I 0.0 I0.5 Q4.0I0.1I0.2 LADDER =>1 I0.5 I0.0 & & = I0.1 I0.2 I0.3 I0.4 Q4.0 CSF Data 1 Temp. input T1=I0.0 2 Temp input T2=I0.1 3 Temp input T3=I0.2 4 Pressure input P1=I0.3 5 Pressure input P2=I0.4 6 Enable input=I0.5 7 Output Q=Q4.0 STL O( AI0.0 AI0.1 AI0.2 ) O( AI0.3 AI0.4 ) 0I0.5 =Q4.0

Write a program in STL/LAD/CSF for the given below TASK: In the process there are three temperature sensors(e.g. T1,T2,T3) two pressure sensors(e.g.P1,P2)and enable input. 1 Any one of three temperature sensors on i.e.T,T2,T3. 2 AND any one of two pressure transducers should on.i.e.P1,P2 3 AND enable input should be activated. T1 T2 T3 P1 P2 Note:normal condition=NC Abnormal condition=NO Data 1 Temp. input T1=I0.0 2 Temp input T2=I0.1 3 Temp input T3=I0.2 4 Pressure input P1=I0.3 5 Pressure input P2=I0.4 6 Enable input=I0.5 7 Output Q=Q4.0 OR before AND

LADDER ( ) I0.0I0.3I0.5Q4.0 I0.2I0.4 I0.2 >=1 & = I0.0 I0.1 I0.2 I0.3 I0.4 I0.5 Q4.0 CSF :A( :OI0.0 :OI0.1 :OI0.2 :) :A( :OI0.3 :OI0.4 :) :AI0.5 =Q4.0 STL Data 1 Temp. input T1=I0.0 2 Temp input T2=I0.1 3 Temp input T3=I0.2 4 Pressure input P1=I0.3 5 Pressure input P2=I0.4 6 Enable input=I0.5 7 Output Q=Q4.0

K1 HOLD ON OFF ON HOLD OFF PRIORITY ON PRIORITY SET RESET BLOCK S R S R Q Q RESET PRIORITY SET PRIORITY I0.0 I0.1 Programmable Controller Q4.0 K1 24v S1S2 0v ONOFF

SET RESET BLOCK S R S R Q Q RESET PRIORITY SET PRIORITY I0.0 I0.1 Programmable Controller Q4.0 K1 24v S1S2 0v ONOFF SRQ LAST STATE PRIORITY 0 RESET PRIORITY AI0.0 SQ4.0 ANI0.1 RQ4.0 SET PRIORITY AI0.0 RQ4.0 AI0.1 SQ4.0

CPU AIAQDI DQ AI PIQ PII 127 NON-UTILIZABLE UNUSED AREAS

Byte 2 Byte 12 Byte 102 Byte 103 AI2.2 LIB12 LIW102 LOAD FUNCTION

Byte 4 Byte 66 Byte 92 Byte 93 Q4.2 TQB 66 TQW 92 TRANSFER FUNCTION High byte Accum1 Low byte PIQ

TASK OUTPUT SHOULD EXACTALY FOLLOER OF INPUT L IW 0 T QW 3

START INPUT RESET INPUT PULSE OUTPUT ttt I0.0 KT050.1 I0.1RQ BI DE FW6 QW5 Q4.7 1 T1 PULSE TIMER(SP) LAD/CSF STL A I0.0 L KT050.1 SP T1 A I0.1 R T1 A T1 NOP0 =Q4.7 t t t TV START INPUT RESET INPUT PULSE OUTPUT ttt I0.0 KT050.1 I0.1RQ BI DE FW6 QW5 Q4.7 1 T1 PULSE TIMER(SP) LAD/CSF STL A I0.0 L KT050.1 SP T1 A I0.1 R T1 A T1 NOP0 =Q4.7 t t t TV

KT=CONSTANT=KT400.0 IW=INPUT WORD=IW1 QW=OUTPUT WORD=QW6 FW=FLAG WORD=FW100 DW=DATA WORD=DW255 TIME BASE 0=0.01S 1=0.1 S 2=1 S 3=10 S

START INPUT RESET INPUT PULSE OUTPUT ttt I0.0 KT050.1 I0.1RQ BI DE FW6 QW5 Q4.7 1 T1 LAD/CSF STL A I0.0 L KT050.1 SE T1 A I0.1 R T1 A T1 NOP0 =Q4.7 t t t EXENDED-PULSE TIMER E t TV

TASK TWO FLASHING LIGHTS USING TIMER (1) L1& L2 SHOULD BE FLASHING WHEN SWITCH S1 IS ON. (2)STATUS OF LAMPS L1&L2 MUST BE OPPOSITE OF EACH OTHER (3)THE TIME FOR FLASHING FOR BOTH LAMPS SHOULD BE SAME (4)WHEN SWITCH S1 IS MADE OFF FLASHER SHOULD STOP. T1 AI0.0 ANQ4.8 LKT030.1 SET1 NOP0 AT1 =Q4.7 AI0.0 ANQ4.7 LKT030.1 SET2 NOP0 AT2 =Q4.8 I0.0 KT050.1 NOP0RQ BI DE NOP0 Q4.7 1 TV I0.0 KT050.1 NOP0RQ BI DE NOP0 Q4.8 1 TV Q4.7 Q4.8 T2 E E

START INPUT RESET INPUT OUTPUT tt I0.0 KT050.1 I0.1RQ BI DE FW6 QW5 Q4.7 T T1 LAD/CSF STL A I0.0 L KT050.1 SD/SR T1 A I0.1 R T1 A T1 NOP0 =Q4.7 t t t ON- DELAY TIMER O t TV

START INPUT RESET INPUT OUTPUT t I0.0 KT050.1 I0.1RQ BI DE FW6 QW5 Q4.7 T T1 LAD/CSF STL A I0.0 L KT050.1 SS T1 A I0.1 R T1 A T1 NOP0 =Q4.7 t t t LATCHING ON- DELAY TIMER E TV

START INPUT RESET INPUT OUTPUT t I0.0 KT050.1 I0.1RQ BI DE FW6 QW5 Q4.7 O T1 LAD/CSF STL A I0.0 L KT050.1 SF T1 A I0.1 R T1 A T1 NOP0 =Q4.7 t t t OFF- DELAY TIMER T TV t t

MERQURY LEVEL SWITCH ACTIVATED IN BETWEEN BECAUSE OF VIBRATION SO WE HAVE TO PROVIDE TIMER.USE PROPER TIMER AND WRITE THE PROGRAME IN LADDER & IN STL ALSO I0.0 I0.1RQ BI DE FW6 QW5 Q4.7 OT TV T1 KT100.1 STL A I0.0 L KT100.1 SF T1 A I0.1 R T1 A T1 NOP0 =Q4.7 OFF DELAY TIMER

+ M M + CONVEYOR 1 CONVEYOR2 ON OFF TASK (1)WHEN ON PUSH BUTTON IS PRESSED BELT 2 SHOULD BE STARTED IMMEDIATELY AND BELT 1 SHOULD BE STARTED WITH A DELAY OF 5 SECONDS. (2)WHEN OFF PUSH BUTTON IS PRESSED BELT 1 SHOULD STOP IMMEDIATELY BUT BELT 2 SHOULD CONTINUE FOR ANOTHER 10 SECOND (3)THE LED INDICATING THE BELT STATUS ALSO TURN ON COORRESPONDINGLY

DATA I0.0=S1=START PUSH BUTTON. I0.1=S2=STOP PUSH BUTTON. Q2.0=BELT 1 START/STOP Q2.1=BELT 2 START/STOP BELT 1 BELT 2 STARTSTOP RQ T I0.0 S RQ( ) F0.0 I0.1 F0.0 NOP0 BI DE NOP0 Q2.1 O TV T2 KT100.1 F0.0 NOP0 RQ BI DE NOP0 Q2.0 TO TV T1 KT050.1 AI0.0 SF0.0 AI0.1 RF0.0 AF0.0 LKT050.1 SD T1 A T1 =Q2.0 AF0.0 LKT100.1 SF T2 A T2 =Q2.1 R-S FLIP FLOP BLOCK USED FOR ON-OFF BY PUSH BUTTONS ON DELAY TIMER USED TO DELAY START BUT STOPS IMMEDIATELY OFF DELAY TIMER USED TO DELAY STOP OF BELT2

I0.0 I1.1 I1.2 KC3 I1.3 BI DI Q4.7 COUNTING UP COUNTING DOWN SET RESET [FW2] [QW6] CU CD S CV R COUNTER BLOCK [1]SET INPUT=SETTING COUNTER TO CV VALUE [2]OUTPUT Q=0 WHEN COUNTER IS AT ZERO [3]OUTPUT Q=1 WHENCOUNT IS GREATER THAN ZERO C1 AI0.0 CU C0 AI1.2 L KC009 AI1.3 L C1 T QW3 L C1 T FW10 A C1 =Q4.7 STLSTL

IB2 IB3Q4.7 Z1 Z2 F Q IB2 IB3Q4.7 Z1 Z2 F Q IB2 IB3Q4.7 Z1 Z2 F Q IB2 IB3Q4.7 Z1 Z2 F Q IB2 IB3Q4.7 Z1 Z2 F Q IB2 IB3Q4.7 Z1 Z2 F Q COMPARISON BLOCKS != >< >= > <= < L IB 2 L IB 3 !=F =Q4.7 L IB2 L B3 ><F =Q4.7 L IB2 L IB3 >=F =Q4.7 L IB2 L IB3 >F = Q4.7 L IB2 L IB3 <=F = Q4.7 L IB2 L IB3 <F =Q 4.7 EQUAL TO NOT EQUAL TO GREATER THAN OR EQUAL TO GREATER THAN LESS THAN OR EQUAL TO LESS THAN

[1]P1,P2&P3 ARE PUMPS [2]START P1 AS START PUSH BUTTON PUSHED [3]P2 SHOULD START AFTER 10 SEC OF START P1 [4]P3 SHOULD START AFTER 10 SEC OF START P2 [5]P1,P2&P3 SHOULD RUN FOR 10 SEC THEN STOPS ALL THREE. [6]IF IN BETWEEN STOP PUSH BUTTON PRESS STOPS ALL THE THREE PUMPS. AI START PUSH BUTTON SF SET FLAG F0.0 AI0.1 - STOP PUSH BUTON AF0.0- FLAG IS SET AT 1 LKT LOAD VALUE 30 SEC TO TIMER T 0 SPT0 - TIMER IS PULSE TIMER AI0.1 - STOP PUSH BUTTON RT 0 - RESET TIMER T 0 LCT0- LOAD VALUE IN ACCUMULATOR1 TFW4 - TRANFER VALUE FROM ACC. 1 TO FLG W 4 AT 0 = Q4.3 - STARRT OUTPUT FOR P1 LFW4 LKT < F = Q 4.2 START OUTPUT FOR P2 LFW4 LKT < F = Q4.1 START OUTPUT FOR P3 AT 0 = RF 0.0

[1] READ FOR ZERO & READ FOR ONE [2] AND -OR FUNCTION [3] AND BEFORE OR & OR BEFORE AND [4] R-S BLOCK &LOAD AND TRANSFER [5] FIVE TIMER BLOCKS [6] COUNTER BLOCK [7] SIX COMPARISON BLOCKS