Industrial Electronics

Slides:



Advertisements
Similar presentations
Programming with Ladder Logic
Advertisements

Unit 7 Discrete Controllers
Microprocessors Typical microprocessor controlled devices: Camera, mobile phone, stereo, mp3 player, electronic toys… High-level microprocessor controlled.
Discrete Control Logic 1. Pneumatic circuits - Low forces - Discrete, fixed travel distances - Rotational or reciprocating motion Main components: compressor,
In this presentation you will:
Dr. HABEEB HATTAB HABEEB Dr. HABEEB HATTAB HABEEB Office: BN-Block, Level-3, Room Ext. No.: 7292 UNITEN.
PROGRAMMING. Each PLC manufacturer offers a different set of instructions within its PLC family. Many of these instruction sets are not applicable to.
Programmable Logic Controller PLC
Industrial Automation and Control
Logical controllers' programming 3-Other instructions 3.1- Memorization of data Programming.
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
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
Chapter 19 Fundamental PLC Programming
PROGRAMMABLE LOGIC CONTROLLER (PLC) AND AUTOMATION
Programmable Logic Controllers
Chapter 10 PLC Processors.
PLC introduction1 Discrete Event Control Concept Representation DEC controller design DEC controller implementation.
PLC: Programmable Logical Controller
Programming PLCs using LADDER Logic
Programmable Logic Controller (PLC)
Welcome to the World of Programmable Logic Controllers
Copyright © 2002 Delmar Thomson Learning Chapter 1 Welcome to the World of Programmable Logic Controllers.
 AUTOMATION  PLC  SCADA  INSTRUMENTATION  DRIVES & MOTORS.
©2008 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected under all copyright laws as they currently exist.
Implementing software in IEC Languages in IEC IEC uses the following languages Instruction List – Assembly level programming using.
Chapter 10 Advanced Programming, PLC Interfacing, and Troubleshooting
Copyright © 2002 Delmar Thomson Learning Chapter 10 PLC Processors.
Chapter 2 Basic Principle of PLC PLC Configuration &Function   Basic Configuration  CPU  Memory  Programming Interface  Communication.
Introduction to PLC by Dr. Amin Danial Asham.
Programmable Logic Controller (PLC)
PLC PROGRAMMING.
LADDER PROGRAMMING LANGUAGE by Dr. Amin Danial Asham.
DATA HANDLING Some situations arise where a group of bits have to be handled. (ex) a sensor supplies an analogue signal which is converted to, say, an.
Prepared by: Engr. Qurban Ali Memon 11ES (SEC- 1 & 2)
PROGRAMMABLE LOGIC CONTROLLER (PLC) AND AUTOMATION
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Traditionally ladder logic programs have been written by thinking about the process and then beginning to write the program. This always leads to programs.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
PROGRAMMABLE LOGIC CONTROLLER
SEMINAR ON P.L.C. SUBMITTED BY HRIDAY MUKHERJEE AMIT DEBNATH SOMNATH SHIL
Programmable Logic Controller
Programmable Automation Programming of logical controllers.
Seminar on "PLC” (Programmable Logic Controller)
Lesson 1 PLC BASICS. PLC Definition  Programmable Logic Controllers are industrial computers that control machine and other applications.  PLC have.
Discrete Control Logic
LG PLC COURSE Beginner Prepared by : -Hossam Mohammed -Ramdan said
Programmable Logic Controllers
Control Unit Lecture 6.
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
PLC: Programmable Logical Controller
Introduction of microprocessor
Overview of the PLC.
Programmable control systems
CHAPTER 2 TERMINOLOGY.
Session III Architecture of PLC
Programmable Logic Controllers (PLCs) An Overview.
Pico Pico LAB#1 Starting & Stopping Motors.
Manisha Goel, Lecturer, EE Deptt Govt. Polytechnic Manesar
8.0 Programmable Logic Controllers 1
S RAJARAJAN_ASST PROF, BSARCIS&T
ACOE347 – Data Acquisition and Automation Systems
Plc & scada applications
DMT 353/3 – Programmable Logic Controller (PLC)
Ladder programming Counter Instruction S7 300
Computer Operation 6/22/2019.
Presentation transcript:

Industrial Electronics DAE 32003 Industrial Electronics

PROGRAMMABLE LOGIC CONTROLLER Chapter 4 PROGRAMMABLE LOGIC CONTROLLER (PLC)

What is Programmable Logic Controller? A Programmable Logic Controller is a microprocessor based system which uses a programmable memory for implementing specific functions such as logic, sequencing, timing, counting and arithmetic to control various types of machines or processes through analog or digital input / output modules.

PLC applications

Basic PLC components 1. Processor 2. Memory unit 3. Power supply 4. I/O module 5. Programming device

Basic PLC components

Typical PLC cabinet at site

PLC operations A PLC monitors inputs, makes decisions based on its program, and controls outputs to automate a process or machine. The operation of the PLC system is simple and straightforward. The processor or CPU completes three processes: (1) Scans, or reads from the input devices, (2) Executes or "solves" the program logic & (3) Updates or writes to the output devices. SCAN TIME The scan time is a continuous and sequential process of reading the status of inputs, evaluating the control logic and updating the outputs. Scan time varies from 1msec to 30msec.

SCAN TIME The scan time is a continuous and sequential process of reading the status of inputs, evaluating the control logic and updating the outputs. Scan time varies from 1msec to 30msec.

PLC advantages PLCs are similar to computer but have certain features which are specific to their use as controller. These are: They are rugged and designed to withstand vibrations, temperature, humidity, and noise. The interfacing for inputs and outputs is inside the controller. Easily programmed and easily understood programming language.

Mnemonic code

Mnemonic code

Mnemonic code examples

Mnemonic code examples

Mnemonic code examples

Convert the ladder diagram to mnemonic code Activity Convert the ladder diagram to mnemonic code Answer

Convert the ladder diagram to mnemonic code Activity Convert the ladder diagram to mnemonic code Answer

Convert the ladder diagram to mnemonic code Activity Convert the ladder diagram to mnemonic code

Hardware configuration of PLC

Hardware configuration of PLC Lab training set

Programming software: Methods to upload programs to PLC OMRON CQM1H Programming console Programming software: CX programmer

OMRON CQM1H MEMORY MAP / ADDRESS Lab training set

Ladder diagram structure PLC instructions Timer Counter Move Compare Add & Sub Keep Difu & Difd Ladder diagram structure

PLC instruction: TIMER Timer / Counter address is from TIM 000 - 511 TIM Require a TIM number and a set value (SV). For Omron CQM1H, SV must be between #0000 and #9999. Value of parameter SV is multiplied by 0.1s, the result being total time in seconds.

PLC instruction: TIMER Timer / Counter address is from TIM 000 - 511

PLC instruction: TIMER Timer / Counter address is from TIM 000 - 511 Mnemonic code

PLC instruction: COUNTER Timer / Counter address is from TIM 000 - 511 CNT Require a CNT number and a set value (SV).

PLC instruction: COUNTER Timer / Counter address is from TIM 000 - 511 CNTR(12) Require a CNT number and a set value (SV). Can count up, down and reset function. CNTR is a reversible counter where both up count and down count can be down by the same counter

PLC instruction: COUNTER Timer / Counter address is from TIM 000 - 511 CP CNT 007 #10 00004 00002 10010 (siren) END Mnemonic code LD 00004 LD 00002 CNT 007 #10 LD CNT 007 OUT 10010

Activity – Timer & Counter An incoming bar for a parking lot will raise up for 20 seconds when sensor 1 detects an incoming car. After passing the bar, sensor 2 will start count up the number of cars that parks in the parking lot. At the exit sensor 3 will deduct out going cars from the parking lots. If at one time the number of cars in the parking lot is 20 then the full sign light will be on. Sensor 2 Sensor 1 Sensor 3 Incoming Outgoing

Activity – Timer & Counter

MOV(21) PLC instruction: MOVE To move a data from one channel to another channel. S : Source Channel IR,SR,AR,DM,HR,TC,LR,# D : Destination channel IR,AR,DM,HR,LR

Transfer data from channel 000 to 100 P_On MOV (21) 000 100 Transfer data from channel 000 to 100 Source input Channel 000 Destination Output Ch 100

Example Display Error Code of Machine To Aid Tracing Source Of Problem. Using MOV(21) instruction design : Activation of error input signal 00001 to 00003 will sound an alarm and at the same time display the error code. Input 00006 will reset the error code displayed after machine recovery from error.

00001 00002 00003 RED LIGHT 10000 Alarm Alarm Code #1 MOV(21) #0001 101 #0002 #0003 #0000 00006 END Alarm Code #2 Alarm Code #3 Reset Alarm Code Display

PLC instruction: COMPARE CMP(20) Compare is used to compare the data in a specific channel with the data in another channel or a four-digit hexadecimal constant. Cp1: First Compare Word IR,SR,AR,DM,HR,TC,LR,# Cp 2: Second Compare Word IR, AR, DM, HR, LR CMP(20) Cp1 Cp2

Example ADDR OP CODE DATA 0000 LD 25313 0001 OUT TR0 0002 CMP (20) #0020 HR1 0003 AND 25507 0004 10001 0005 TR 0 0006 25506 0007 10002 25507 ( < ) 25313 TR0 CMP(20) #0020 HR1 25506 ( = ) 10001 10002 Green Light Red Light

ADD(30) PLC instruction: ADD To add data in two different channel. Au Ad R Au: Augend Channel IR,SR,AR,DM,HR,TC,LR,# Ad: Addend Channel R: Result IR,AR,DM,HR,LR

Example 1. The operation: HR000 #0001 #1234 HR000 #1235 ADD(30) HR000 #1234 00007 ADDR OP CODE DATA 0000 LD 00007 0001 ADD(30) 0002 HR000 #1234 0003 END(01) 1. The operation: HR000 #0001 #1234 HR000 #1235 2. Add #0001 + #1234 = #1235 3. The result: HR000 #1235

PLC instruction: SUBTRACT To subtract data in two different channel. SUB(31) Mi Su R Mi: Minuend Channel IR,SR,AR,DM,HR,TC,LR,# Su: Subtrahend Channel R: Result IR,AR,DM,HR,LR

Example 1. The operation: HR000 #3234 #1234 HR000 #2000 SUB(31) HR000 #1234 00007 ADDR OP CODE DATA 0000 LD 00007 0001 SUB(31) 0002 HR000 #1234 0003 END(01) 1. The operation: HR000 #3234 #1234 HR000 #2000 2. Sub #3234 + #1234 = #2000 3. The result: HR000 #2000

KEEP(11) PLC instruction: KEEP To replace normal latching. Has two input, set and reset. Better use HR so the output retain even though power fails. Set =00000 Reset=00001 KEEP (11) IR/Output Port/HR END

PLC instruction: DIFFERENTIATE UP DIFU(13) DIFU turns its output ON when it detects an OFF to ON transition in its input signal.

PLC instruction: DIFFERENTIATE DOWN DIFD(14) DIFD turns its output ON when it detects an ON to OFF transition in its input signal or from HIGH to LOW signal .

Exercise 1 Replace CNT with ADD and SUB. A simple car park control system allows only a maximum of 30 cars parking spaces. Every time a car comes in, an incoming sensor will add 1 and any car that goes out an outgoing sensor will deduct 1. If the car park is occupied with 30 cars at one time, a full sign will be lighted up to inform there is no vacancy.

Answer

Exercise 2 Use KEEP instruction to solve these problems instead of normal latching. A sensor is placed outside yellow line that enclosed the robot to provide safety cautions to the user. If the sensor detects someone crossing the yellow line the robot will automatically stop its operation and the siren will on until a reset button is pressed. Then the push button need to be pressed for robot to run again. YELOW LINE ROBOT sensor

Answer

Exercise 3 Use DIFU and DIFD to solve the problem. An automatic home garage is equipped with sensor 1, S1, that detects the approaching car and will open the garage until sensor 2, S2,detects the whole car body has safely parks inside the garage. S1 S2 Garage Door

Answer