- Kumar N
VISION STATEMENT <ul><li>To be a Leading, Dynamic, Result Oriented Company focused on providing Quality Solutions, Systems...
ABB ,  Automation technology & Control Engineering  products, Rockwell Automation ,   Automation and Control Products Hone...
Application Engineering Division The perfection in Application Engineering lies in understanding the application, understa...
Training Division As a group company , at  ARRIS VASHIST  Institute for Industrial Automation, (AV) we mobilize the engine...
STRATEGY <ul><li>Project Management. </li></ul><ul><li>Design, Engineering & Supply. </li></ul><ul><li>Software Developmen...
SCOPE / DOMAIN <ul><li>Panel Engineering </li></ul><ul><li>PLC /SCADA System integration </li></ul><ul><li>Embedded System...
BUSINESS BY INDUSTRY SEGMENT  <ul><li>Military / Defense, </li></ul><ul><li>Aerospace, </li></ul><ul><li>Avionics,  </li><...
What is AUTOMATION Making “ Automate - (ic) ” Auto –  to do by itself
What happens if “man” works, Constantly and continuously ??? ERRORS !!!, ERRORS !!! , ERRORS !!! Due to fatigue and over c...
In other words, Using technology  in the places where “human errors”  are possible. And using “manpower” in  “appropriate ...
<ul><li>Simplification </li></ul><ul><li>through applying ideas of  </li></ul><ul><li>appropriate Branch of Engineering </...
<ul><li>If we  </li></ul><ul><li>Consider, </li></ul><ul><li>Then, </li></ul>MAN  : MACHINE   EYE  : Photo-Electric Sensor...
<ul><li>How  Industrial Automation  Helps? </li></ul><ul><li>1- You get product  CONSISTENCY </li></ul><ul><li>2-  PRODUCT...
WHAT IS A  PLC ? ? ?
DEFINITION: PLC  A device used to automate monitoring and control of industrial plant can be used stand-alone or in conjun...
PROGRAMMABLE LOGIC CONTROLLER Invented in 1968 as a substitute for hardwired relay panels . &quot;A digitally operating el...
Understanding PLC <ul><li>Understanding the Logic </li></ul><ul><li>Understanding the Controller </li></ul><ul><li>Underst...
LOGIC Meaningful things Electrically Meaningful –  Electrical Logic True logic: It can be expressed in truth table Pseudo ...
<ul><ul><li>CONTROLLER IS THE ONE WHICH CONTROLS THE SYSTEM  </li></ul></ul><ul><ul><li>THE CONTROLLER HAS PRE-SPECIFIED, ...
A small PLC (Allen Bradley MicroLogix 1000) (Courtesy of Allen-Bradley).
Definition of PLC <ul><li>PLC is a digitally operating electronic apparatus which uses a programmable memory for the inter...
Structures
Input / Output module <ul><li>Analog inputs </li></ul><ul><ul><li>Flow sensors </li></ul></ul><ul><ul><li>Humidity sensors...
Memory <ul><li>ROM </li></ul><ul><li>RAM </li></ul><ul><li>PROM </li></ul><ul><li>EPROM </li></ul><ul><li>etc </li></ul>05...
Peripherals <ul><li>Operator console </li></ul><ul><li>Printer </li></ul><ul><li>Simulator </li></ul><ul><li>EPROM loader ...
Functions of PLC <ul><li>Relay </li></ul><ul><li>Timer and counter </li></ul><ul><li>Program control </li></ul><ul><li>Ari...
A Relay
A counter
Counter timing diagram (the count value is 5)
A timer
Timer timing diagram (the timing value is 5)
Logic control <ul><li>Control actions are taken by making decisions depending on the values associated with various inputs...
Logic control <ul><li>Attribute decision can be represented by a logic variable (true or false) and its value can be deter...
Logic network diagram and ladder diagram
Example 1 <ul><li>A robot is to be used to unload finished parts from a machine onto an AGV and to load raw parts from the...
Identify I/Os <ul><li>01  AGV has arrived </li></ul><ul><li>02  AGV is carrying a new part to be processed </li></ul><ul><...
The Ladder Diagram
Features of Ladder Diagram <ul><li>A ladder logic diagram is made up of inputs and outputs connected according to the appr...
PLC scan
Example 2
Identified I/Os 05/16/11
Program 05/16/11
Wiring diagram
Example 3 <ul><li>During the powder metallurgy process, a punch is used to press blended metal powder into a compact insid...
Identify I/Os
Ladder Diagram
Example 4 <ul><li>This example illustrates the use of both the timing and counting functions. </li></ul><ul><li>Consider a...
Identified I/Os <ul><li>10 Machine has a part to be unloaded </li></ul><ul><li>30 Load machine with a new part </li></ul><...
Ladder Diagram
Design methods for ladder diagram
Truth table
Ladder diagram for Example 10.2
State diagram
Rules of State Diagram
State diagram for Example 10.4
Advantages of PLCs <ul><li>More complex tasks, can be done with a PLC.  </li></ul><ul><li>Hard-wiring, though still requir...
Architecture I/O INTERFACE CARD WORKING MEMORY I/O INTERFACE CARD MICRO -CONTROLLER PROGRAM MEMORY
I/O interface card - input <ul><li>It is used to connect various types of inputs to PLC i.e. from sensors,reed switches et...
Working memory <ul><li>This memory consists input buffer and output buffer. </li></ul><ul><li>The data's from the I/O inte...
Microprocessor <ul><li>This is the heart of the PLC here we do arithmetic,logical,mathematical and advanced functions. </l...
Program memory <ul><li>This memory is used to store the PLC program </li></ul><ul><li>It is EPROM memory type </li></ul>
I/O interface card-output <ul><li>It is used to collect the data from the PLC and actuate the respective output device </l...
BASIC STRUCTURE OF PLC Expansion Port connection for  extension units Digital outputs relay or  transistor output Fieldbus...
Input Card
<ul><li>INPUT </li></ul><ul><li>NPN (sinking) Type (If voltage is -ve w.r.to common) </li></ul><ul><ul><ul><li>Common(24V)...
Outputs <ul><li>Solenoid Valves- logical outputs that can switch a hydraulic or pneumatic flow.  </li></ul><ul><li>Lights-...
Output Card
RELAYS <ul><li>Relays are the most flexible output devices. They are capable of switching both AC and DC outputs.  </li></...
Relays <ul><li>Relays are the most flexible output devices. They are capable of switching both AC and DC outputs.  </li></...
RELAYS A switch whose operation is activated by an electromagnet is called a &quot;relay&quot;  Relay coil R1 R1 Output co...
Relays and Schematic  Symbols
How does a Relay works? A relay is a simple device that uses a magnetic field to control a switch. When a voltage is appli...
Logical Control with Relays
Relays are used to let one power source close a switch for another power source, while keeping them isolated. In this syst...
Relay Logic In a PLC
GENERAL FORMAT Addressing %  RANGE PREFIX  SIZE PREFIX NATURAL NUMBER I- Input Q-Output M-Memory Location X  -  SINGLE BIT...
% I X  62.0 X  - SINGLE BIT(BOOLEAN)  %I W 1000.0 W  - WORD(16 BITS) %QX62.0 X  - SINGLE BIT(BOOLEAN)  %MX0.0 X  - SINGLE ...
EX  62.00 Operand Format Channel number I : Input Q:  Output M:  Flag, internal relay K:  Indirect constant X  Binary (E,A...
n° 62 +1 +1 Example:  62   63   64   65   66  65  66 I&O I&O O I I O Automatically, it depends of the type , the situation...
<ul><li>Select your preferred    programming Language: </li></ul><ul><li>Editors  according IEC 1131:   - Function Block D...
Ladder Diagram A ladder diagram (also called contact symbology)  is a means of graphically representing the logic required...
Assumption View External switches Stored program 20 11 01 02 03 Q.00 12 C PLC Inpu t Outpu t A B
<ul><li>BOOLEAN LOGIC </li></ul><ul><li>RELAY INSTRUCTION </li></ul><ul><li>TIMING INSTRUCTION </li></ul><ul><li>COUNTING ...
Relay Instructions Input Instruction Output Instruction
An example of relay logic For a process control, it is desired to have the process start (by turning on a motor) five seco...
L1 LS1 PB1 LS2 R1 R1 R1 TIMER R2 PR=5
Timers TIMER EN  Q PS  ET  EN-ENABLE PS-PRESET IME Q-OUTPUT ET-ELAPSED TIME If enable is ON , timer will start counting
Problems TRUE LOGIC 3 switches and 2 bulbs.. B1 has to change status if S1 or S2 changes the status B2 has to change statu...
True Logic B1 S1  S2  S1  S2  S2  S3  S2  S3  B2
Pseudo Logic G   R  M M G -Green push button R -Red push button M -Motor
Mathematical Functions ADD  (value, value) - add two values  SUB  (value, value) - subtract  MUL  (value, value) – multipl...
COMPARISION <ul><li>GT  Greater Than </li></ul><ul><li>LT  Less Than  </li></ul><ul><li>LE  Less than or Equal to  </li></...
NUMERICAL OPERATORS <ul><li>ABS  Absolute value of a number  </li></ul><ul><li>SQRT  Square root of a number  </li></ul><u...
Scanning How a PLC executes the  program is called scanning . Scanning consists 3 steps i. Input scanning ii. Program exec...
Input Scanning: Processor reads all the i/p signals. These i/p signals are stored in input buffer. Program execution:  Pro...
Scanning Process Input Program Execution Output
Scan time Time taken for one execution cycle to be completed is called scan time.It depends upon the processor speed,progr...
 
The logic in a ladder diagram typically flows from left to right. The diagram can be divided into sections called rungs. E...
Ladder Diagram A ladder diagram (also called contact symbology)  is a means of graphically representing the logic required...
PLC Wiring Diagram External switches Stored program 01 02 20 20 20 11 01 02 03 11 12 C PLC Input Output A B
 
<ul><li>BOOLEAN LOGIC </li></ul><ul><li>RELAY INSTRUCTION </li></ul><ul><li>TIMING INSTRUCTION </li></ul><ul><li>COUNTING ...
 
Boolean logic.   Boolean logic is actually what PLCs and relay systems perform. The legal operations in Boolean logic are ...
OR Operation: The OR operation means that the output is ON if at least one of the inputs is ON; it's analogous to relay co...
Logic Gates Symbol & Truth Table AND Gate a  c b INPUT X  INPUT  Y  OUTPUT Z 0  0  0 0  1  0 1  0  0 1  1  1
Ladder Logic (AND Gate) X  Y  Z
OR Gate INPUT  X  INPUT  Y  OUTPUT Y 0  0  0 0  1  1 1  0  1 1  1  1 Symbol: Truth Table:
Ladder Logic (OR Gate) X Y
XOR Gate: INPUT  X  INPUT  Y  OUTPUT Z 0  0  0 0  1  1 1  0  1 1  1  0 Truth Table: Symbol:
Ladder Logic (XOR Gate) X  Y X  Y
NOT Gate INPUT  OUTPUT 0  1 1  0 Truth Table: Symbol:
Ladder Logic (NOT Gate)
 
PLCs perform Boolean logic using basic relay instructions. Common input instructions are examine-on (normally open contact...
Relay Instructions Input Instruction Output Instruction
An Example of Relay Logic L1 LS1 PB1 LS2 R1 R1 R1 TIMER R2 PR=5 For a process control, it is desired to have the process s...
 
TIMER EN  Q PS  ET  EN-ENABLE PS-PRESET IME Q-OUTPUT ET-ELAPSED TIME If enable is ON ,timer will start counting Timers
The basic timing instructions are  on-delay  and  off-delay .  Timing instructions are usually connected like relay coil i...
The output associated with the timing instruction is turned ON some specified time after the input is ON, but it turns OFF...
The output is turned ON immediately when the input is turned ON. However, it remains ON for a specified period of time aft...
 
<ul><li>The basic counting instructions provide for count-up, count-down. The count-up instruction simply increases the va...
1 Bool :  TRUE or FALSE Integer  data types : Standard Data Types: Type Lower limit Upper limit Memory req.. BYTE 0 255 8 ...
05/16/11 19 Declaration Of Variables:
05/16/11 String -  functions LEN  LEFT   RIGHT   MID  CONCAT   INSERT   DELETE   REPLACE   FIND Edge detection R_TRIG Dete...
Returns the length of a string. Input  STR  is of type STRING, the return value of the function is type INT. Example in FB...
Left returns the left, initial string for a given string. Input STR is type STRING, SIZE is of type INT, the return value ...
Logic Design <ul><li>Design ideas can be converted to Boolean equations directly. </li></ul><ul><li>The Boolean equation f...
Process Description: A heating oven with two bays can heat one ingot in each bay. When the heater is on it provides enough...
Ladder Logic Diagram
 
1. A Circuit has 3 switches and 2 bulbs (s1,s2,s3,b1,b2).Initially b1& b2=0 If s1 is changed , b1 status has to change. If...
S1  ON  MOTOR1 ON S2  ON MOTOR2 ON ,MOTOR1 OFF S3  ON MOTOR3 ON , MOTOR2 OFF S4  ON MOTOR1,MOTOR2,MOTOR3 OFF
a) S1  and s2 ON, Bulb ON. s1 OFF ,Bulb OFF. b)If s1 ON first then s2 ON ,Bulb ON,S1 OFF, Bulb OFF.
M S1 S2 START START ON M ON. S1 & S2 ON M OFF
START START ON M ON;S1 & S2 ON M OFF; M OFF SV1 ON;RS2 ON SV1 OFF. RS1 RS 2 SV1 S1  S2  M
RS4  RS3 SV2 RS1 START RS2  SV1
START ON SV3 ON SV2  RS4 RS3  RS2  RS1 SV1 RS5 START RS6  SV3
IP OP1 OP2
IP OP
OP1 OP2 OP3 Data Clk
S1 NO (B1) NC (B2) 0 1 0 1 1 0 Truth Table RELAY CKT
S1 S1 B1 B2 CIRCUIT Ladder Diagram
True logic example S1  S2  S3  B 0  0  0  1 0  0  1  0 0  1  0  1 0  1  1  1  1  0  0  0  1  0  1  0 1  1  0  1 1  1  1  0...
B S3 S2 S1 S1 S3 S1  S2  S3 Ladder Diagram:
G   R  M M G -Green push button R -Red push button M -Motor Pseudo Logic
 
 
 
 
PLCs are used in commercial and industrial applications. A PLC monitors inputs, makes decisions based on its program, and ...
Combinational Logic -    Relay contacts and coils  Events -    Timer instructions -    Counter instructions  Data Handling...
Lists   -  Shift registers/stacks   -  Sequencers   Program Control   -  Branching/looping   -  Immediate inputs/outputs  ...
Data Handling Move Functions- There are two basic types of move functions MOV  (value, destination) -moves a value to a me...
Mathematical Functions Arithmetic Functions   ADD  (value, value) - add two values  SUB  (value, value) - subtract  MUL  (...
Conversions BCDDUAL -Conversion BCD-DUAL, word DUALBCD -Conversion DUAL-BCD, word DWW  -Double word to word conversion WDW...
Comparison: <ul><li>GT  Greater Than </li></ul><ul><li>LT  Less Than  </li></ul><ul><li>LE  Less than or Equal to  </li></...
Numerical Operators <ul><li>ABS  Absolute value of a number  </li></ul><ul><li>SQRT  Square root of a number  </li></ul><u...
Functions Of Controllers 1) on-off control, 2) sequential control, 3) feedback control, and 4) motion control.
 
<ul><li>Examines its input devices, </li></ul><ul><li>Executes its control program, and </li></ul><ul><li>Updates its outp...
Operators in ST Symbol Operation (expression) Parenthesization identifier(argument list) Function evaluation Examples: LN(...
Operators in ST * Multiply / Divide MOD Modulo + Add - Subtract < , > , <= , >= Comparison = Equality <> Inequality
& Boolean AND AND Boolean AND XOR Boolean Exclusive OR OR Boolean OR Operators in ST
A := B; Assignment
A := B; Data type to Data type INT to INT Or Analog_Channel_Configuration to Analog_Channel_Configuration Assignment
A := B; INT to INT or Analog_Channel_Configuration to Analog_Channel_Configuration CV := CV+1; C := SIN(X); Assignment
Controlled repetition via iteration or selection  IF .. THEN .. ELSE CASE FOR WHILE … REPEAT UNTIL
IF .. THEN .. ELSE IF  condition= true  THEN action1 ELSE  action2 (condition not true) IF raining THEN Stay_In ELSE Go_Out
D := B*B - 4*A*C ; IF D < 0.0  THEN  NROOTS := 0 ; ELSIF  D = 0.0 THEN   NROOTS := 1 ;   X1 := - B/(2.0*A) ; ELSE   NROOTS...
CASE : repetitive IF CASE selector OF selector_value : action   ELSE  ….. END_CASE;
CASE : repetitive IF TW := BCD_TO_INT(THUMBWHEEL); TW_ERROR := 0; CASE TW OF   1,5:  DISPLAY := OVEN_TEMP; 2:  DISPLAY := ...
FOR SUM := 0 ; FOR  begin_value  TO  end_value  DO END_FOR ;
FOR SUM := 0 ; FOR  I := 1  TO  3  DO   FOR J := 1 TO 2 DO SUM := SUM + J ;   END_FOR ; SUM := SUM + I ; END_FOR ;
J := 101 ; FOR I := 1 TO 100  BY  2  DO   IF  WORDS[I] = 'KEY'   THEN   J := I ;   EXIT ;   END_IF ; END_FOR ; FOR
WHILE J := 1; WHILE  J <= 100 & WORDS[J] <> 'KEY' DO   J := J+2 ; END_WHILE ;
REPEAT … UNTIL J := -1 ; REPEAT   J := J+2 ; UNTIL J = 101 OR WORDS[J] = 'KEY' END_REPEAT ;
EXIT and RETURN The EXIT statement shall be used to terminate iterations before the termination condition is satisfied.  S...
 
Examples of instruction fields START :  LD   %IX1  (* PUSH BUTTON *) ANDN %MX5  (* NOT INHIBITED *) ST   %QX2 (* FAN ON *)...
Operator and Semantics LD Set current result equal to operand ST Store current result to operand location S Set Boolean op...
AND Boolean AND & Boolean AND OR Boolean OR XOR Boolean Exclusive OR Operator and Semantics
ADD Addition SUB Subtraction MUL Multiplication DIV Division Operator and Semantics
GT Comparison: > GE Comparison: >= EQ Comparison: = NE Comparison: <> LE Comparison: <= LT Comparison: < Operator and Sema...
JMP Jump to label CAL Call function block RET Return from called function or function block ) Evaluate deferred operation ...
Function Block Invocation Examples 1. CAL with input list:   CAL  C10(CU:=%IX10, PV:=15) 2. CAL with load/store of inputs:...
FB Type Operators SR S1,R RS S,R1 R_TRIG CLK F_TRIG CLK CTU CU,R,PV CTD CD,LD,PV CTUD CU,CD,R,LD,PV TP IN,PT TON IN,PT TOF...
 
With 40 and 50 series central units Three communication protocols Modbus mode ASCII mode Programming mode
Modbus protocol Incorporated in the 40 and 50 series central units Advantages  : - It is known worldwide - It is easier - ...
Point to point connection with a PC Network connection between CPUs Network connection with a PC Example Of Configuration
Serial / RS-232 Port on PC & its Pin Out
The Function of various pins on Serial Port Pin# on DB – 9 Pin Symbol Function 1 CD Carrier Detect: It is used by Modem to...
7 RTS Request to Send. Request to send is sent from (DTE) terminal (PC) to modem (DCE) to inform it that PC wants to send ...
Modbus Protocol Description Support RS232, RS485, Optic fibres Mode RS485 half duplex Number of connection points 1 single...
<ul><li>Configure through AC31GRAF Software </li></ul><ul><li>Configure in user program </li></ul><ul><li>Only with the bl...
Through AC31GRAF Software How Configure the Communication
In user program ( With SINIT function block) How Configure the Communication
Modbus slave central unit A program isn’t required in central unit. Modbus master central unit The Modbus function enables...
Example of Modbus Function block
It enables exchanging text coded in ASCII, between 40, 50 series central units and a printer or a terminal fitted with an ...
This protocol uses the serial interface of the central unit and is reserved for devices which dispose of an ABB programmin...
A real substation project Printer Server  1 Alarm and Event Printer 1 LA36W Fibre optic station bus (LON) in star configur...
Cement •  aggregate / cement binders / additives storage, •  water supply storage, •  mixing, •  control stations and cent...
Paper Industry
During normal operation, as in transient acceleration/deceleration mode, the parameters of the mother and daughter reels v...
Waste water treatment
Head Office : Vashist Tecnologies Address  :  42-43 Century Tower    639, Sathy Road   Gandhipuram     Coimbatore – 641 01...
Upcoming SlideShare
Loading in...5
×

Vt training plc_1

25,497

Published on

PLC course content

Published in: Technology, Business
68 Comments
102 Likes
Statistics
Notes
No Downloads
Views
Total Views
25,497
On Slideshare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
0
Comments
68
Likes
102
Embeds 0
No embeds

No notes for slide

Vt training plc_1

  1. 1. - Kumar N
  2. 2. VISION STATEMENT <ul><li>To be a Leading, Dynamic, Result Oriented Company focused on providing Quality Solutions, Systems and Support </li></ul><ul><li>To be consistent by improving continuously through our Quality Management System. </li></ul>Vashist Tecnologies An ISO 9001 2000 Certified Company : Engineering Solution Provider
  3. 3. ABB , Automation technology & Control Engineering products, Rockwell Automation , Automation and Control Products Honeywell Automation , Sensing & Control Products Schmersal , Man and Machine Safety Products Bosch Rexroth , Motion Technology Products Our PARTNERS
  4. 4. Application Engineering Division The perfection in Application Engineering lies in understanding the application, understanding the product, its power, and its limitations. We also do develop the customized products for the various requirements of the customer. Panel Engineering Division With vast experience in the field, our engineers are talented creative professionals & technology developers, the excel had been proven in various industries, with compact non heating cost effective Panel designs. Product Sales Division The suggestion and selling of right product for right application with the best possible cost effectiveness, knowing the strengths and limitations of the products, has been always the high morale. Our FOCUS
  5. 5. Training Division As a group company , at ARRIS VASHIST Institute for Industrial Automation, (AV) we mobilize the engineering work force for corporate as well as individuals by providing advanced training in PLC’s, Field Sensors and Instruments, Process Control & Instrumentation, Panel engineering, Embedded Programming and Design, Motion Controllers, SCADA HMI DCS Our FOCUS
  6. 6. STRATEGY <ul><li>Project Management. </li></ul><ul><li>Design, Engineering & Supply. </li></ul><ul><li>Software Development. </li></ul><ul><li>Total Staging / Factory acceptance test. </li></ul><ul><li>Supervision of erection and commissioning. </li></ul><ul><li>Training </li></ul><ul><li>Documentation </li></ul>
  7. 7. SCOPE / DOMAIN <ul><li>Panel Engineering </li></ul><ul><li>PLC /SCADA System integration </li></ul><ul><li>Embedded Systems / Controllers </li></ul><ul><li>Servo/AC drives applications </li></ul><ul><li>Products / Components </li></ul><ul><li>Sensors and Switches marketing </li></ul><ul><li>Commissioning </li></ul><ul><li>Training </li></ul>
  8. 8. BUSINESS BY INDUSTRY SEGMENT <ul><li>Military / Defense, </li></ul><ul><li>Aerospace, </li></ul><ul><li>Avionics, </li></ul><ul><li>Telecommunications, </li></ul><ul><li>Automotive, </li></ul><ul><li>Semiconductor / electronics / electrical, </li></ul><ul><li>Machinery, </li></ul><ul><li>Medical and life science markets. </li></ul>
  9. 9. What is AUTOMATION Making “ Automate - (ic) ” Auto – to do by itself
  10. 10. What happens if “man” works, Constantly and continuously ??? ERRORS !!!, ERRORS !!! , ERRORS !!! Due to fatigue and over confidence Why ??
  11. 11. In other words, Using technology in the places where “human errors” are possible. And using “manpower” in “appropriate way” Automation
  12. 12. <ul><li>Simplification </li></ul><ul><li>through applying ideas of </li></ul><ul><li>appropriate Branch of Engineering </li></ul><ul><li>Electrical, </li></ul><ul><li>Electronics, </li></ul><ul><li>Mechanical, </li></ul><ul><li>Instrumentation, </li></ul><ul><li>Mechatronics, </li></ul><ul><li>Optical, </li></ul><ul><li>Almost You apply All branches of SCIENCE and ENGINEERING </li></ul>How do you do ?
  13. 13. <ul><li>If we </li></ul><ul><li>Consider, </li></ul><ul><li>Then, </li></ul>MAN : MACHINE EYE : Photo-Electric Sensors , Vision systems EAR : Ultrasonic, Sound ,Vibratory Sensors SKIN : Temperature, Magnetic, Tactile, Shock, Viscosity, Flow, Etc.. NOSE : Chemical Sensors, TONGUE : Bio sensors HANDS : Grippers , Motion Controllers LEGS : Motion Controllers, MOUTH : Speakers, Indicators, Communication Devices, BRAIN : CONTROLLERS INPUTS OUTPUTS CONTROL SYSTEM What do you do ? Replace Human . . ,
  14. 14. <ul><li>How Industrial Automation Helps? </li></ul><ul><li>1- You get product CONSISTENCY </li></ul><ul><li>2- PRODUCTION rate is maximised </li></ul><ul><li>3- You Save lot of POWER </li></ul><ul><li>4- Easy Maintenance </li></ul><ul><li>5- Prevention of Human accidents </li></ul><ul><li>6- Minimizing Wastages </li></ul><ul><li>7- Reducing Man Power </li></ul><ul><li>8- Saving Time </li></ul><ul><li>9- Easy & Systematic accounting </li></ul>
  15. 15. WHAT IS A PLC ? ? ?
  16. 16. DEFINITION: PLC A device used to automate monitoring and control of industrial plant can be used stand-alone or in conjunction with a SCADA or other system. PROGRAMMABLE LOGIC CONTROLLER (IN OTHER WORDS..) The “logic” “controller” which is “programmable”
  17. 17. PROGRAMMABLE LOGIC CONTROLLER Invented in 1968 as a substitute for hardwired relay panels . &quot;A digitally operating electronic apparatus which uses a programmable memory for the internal storage of instructions by implementing specific functions such as logic sequencing, timing, counting, and arithmetic to control, through digital or analog input/output modules , various types of machines or processes. The digital computer which is used to perform the functions of a programmable controller is considered to be within this scope. Excluded are drum and other similar mechanical sequencing controllers.&quot;
  18. 18. Understanding PLC <ul><li>Understanding the Logic </li></ul><ul><li>Understanding the Controller </li></ul><ul><li>Understanding the Program. </li></ul>
  19. 19. LOGIC Meaningful things Electrically Meaningful – Electrical Logic True logic: It can be expressed in truth table Pseudo logic: It cannot be expressed in truth table
  20. 20. <ul><ul><li>CONTROLLER IS THE ONE WHICH CONTROLS THE SYSTEM </li></ul></ul><ul><ul><li>THE CONTROLLER HAS PRE-SPECIFIED, DEFINED, STRUCTURES FOR THE CONTROL. </li></ul></ul><ul><ul><li>IT JUST CHECKS IF THE FUNCTIONS ARE GOING AS PER THE DEFINED STRUCTURES. </li></ul></ul><ul><ul><li>YOU CAN PROGRAM THE REQUIRED LOGIC, </li></ul></ul><ul><ul><li>THE CONTROLLER WILL CONTROL THE LOGIC, AS PER THE DEFINED PROGRAM </li></ul></ul>
  21. 21. A small PLC (Allen Bradley MicroLogix 1000) (Courtesy of Allen-Bradley).
  22. 22. Definition of PLC <ul><li>PLC is a digitally operating electronic apparatus which uses a programmable memory for the internal storage of instructions by implementing specific functions such as logic sequencing, timing, counting, and arithmetic to control, through digital or analog input/output modules, various types of machines or processes. </li></ul><ul><li>Modern PLC can be viewed as specialized computer </li></ul><ul><ul><li>Specialized in logic control </li></ul></ul><ul><ul><li>Handle harsh and noisy environment </li></ul></ul>
  23. 23. Structures
  24. 24. Input / Output module <ul><li>Analog inputs </li></ul><ul><ul><li>Flow sensors </li></ul></ul><ul><ul><li>Humidity sensors </li></ul></ul><ul><ul><li>Potentiometers </li></ul></ul><ul><ul><li>Pressure sensors </li></ul></ul><ul><ul><li>Temperature sensors </li></ul></ul><ul><li>Analog outputs </li></ul><ul><ul><li>Analog meters </li></ul></ul><ul><ul><li>Analog valves and actuators </li></ul></ul><ul><ul><li>DC and AC motor drives </li></ul></ul><ul><li>Digital input/output </li></ul><ul><ul><li>Bar code, encoder </li></ul></ul><ul><ul><li>Display </li></ul></ul><ul><li>Special purpose I/O </li></ul><ul><ul><li>PID controller </li></ul></ul><ul><ul><li>Fast input </li></ul></ul><ul><ul><li>Network module </li></ul></ul>05/16/11
  25. 25. Memory <ul><li>ROM </li></ul><ul><li>RAM </li></ul><ul><li>PROM </li></ul><ul><li>EPROM </li></ul><ul><li>etc </li></ul>05/16/11
  26. 26. Peripherals <ul><li>Operator console </li></ul><ul><li>Printer </li></ul><ul><li>Simulator </li></ul><ul><li>EPROM loader </li></ul><ul><li>Network communication </li></ul><ul><li>PC based programming software </li></ul>
  27. 27. Functions of PLC <ul><li>Relay </li></ul><ul><li>Timer and counter </li></ul><ul><li>Program control </li></ul><ul><li>Arithmetic </li></ul><ul><li>Data manipulation </li></ul><ul><li>Data transfer </li></ul><ul><li>Others, such as sequencers </li></ul>
  28. 28. A Relay
  29. 29. A counter
  30. 30. Counter timing diagram (the count value is 5)
  31. 31. A timer
  32. 32. Timer timing diagram (the timing value is 5)
  33. 33. Logic control <ul><li>Control actions are taken by making decisions depending on the values associated with various inputs or variables and the control logic in the program. </li></ul><ul><li>Decisions by attributes (go-nogo decision) </li></ul><ul><ul><li>Is the machine turned on? </li></ul></ul><ul><ul><li>Is the gate to the work cell open? </li></ul></ul><ul><ul><li>Has the AGV arrived at the docking station? </li></ul></ul><ul><li>Decision by variables </li></ul><ul><ul><li>How deep is the hole? </li></ul></ul><ul><ul><li>What is the cutting speed? </li></ul></ul><ul><ul><li>What is the required surface finish? </li></ul></ul><ul><ul><li>How many parts are to be made? </li></ul></ul>
  34. 34. Logic control <ul><li>Attribute decision can be represented by a logic variable (true or false) and its value can be determined by a logic expression </li></ul><ul><li>Boolean algebra is used for logic expression </li></ul>
  35. 35. Logic network diagram and ladder diagram
  36. 36. Example 1 <ul><li>A robot is to be used to unload finished parts from a machine onto an AGV and to load raw parts from the AGV to the machine. </li></ul><ul><li>Assume that there are sensors at the AGV's docking station to indicate the arrival of a vehicle and onboard sensors indicating whether the vehicle has brought a raw part to be processed as well as whether the AGV has space to carry away a finished part. </li></ul><ul><li>Also assume there are sensors on the machine to indicate whether the machine is loaded with a part and also to signal completion of part processing. </li></ul><ul><li>The robot is required to unload a processed part from the machine onto the AGV, pick up a new part for processing from the AGV, and load it onto the machine. </li></ul><ul><li>The AGV is to be dispatched after completion of the cycle. Construct a ladder logic diagram for this task. </li></ul>
  37. 37. Identify I/Os <ul><li>01 AGV has arrived </li></ul><ul><li>02 AGV is carrying a new part to be processed </li></ul><ul><li>03 AGV has space to store a processed part </li></ul><ul><li>04 Machine has a finished part to be unloaded </li></ul><ul><li>20 Unload old part from machine onto the AGV </li></ul><ul><li>21 Pick new part from the AGV and load onto the machine </li></ul><ul><li>22 Dispatch the AGV </li></ul>
  38. 38. The Ladder Diagram
  39. 39. Features of Ladder Diagram <ul><li>A ladder logic diagram is made up of inputs and outputs connected according to the appropriate logic. </li></ul><ul><li>Each rung in the ladder represents a set of logical relationships between the inputs that leads to a particular output. </li></ul><ul><li>The output from one rung of the ladder could be used as an input in another rung of the same ladder. </li></ul><ul><li>Except when special provisions are made, it is considered that all rungs in a given ladder logic diagram are executed simultaneously, so the order of the rungs on the ladder in general does not matter. </li></ul>
  40. 40. PLC scan
  41. 41. Example 2
  42. 42. Identified I/Os 05/16/11
  43. 43. Program 05/16/11
  44. 44. Wiring diagram
  45. 45. Example 3 <ul><li>During the powder metallurgy process, a punch is used to press blended metal powder into a compact inside a die. </li></ul><ul><li>A pushbutton is used to start the process. When the start button is pressed, the die is filled with powder. </li></ul><ul><li>The punch is then advanced and it applies pressure to the powder for a duration of 10 s, after which it is retracted. </li></ul><ul><li>The pressed compact is then ejected from the die and the cycle repeats. The cycle can be interrupted by pressing a stop button. </li></ul><ul><li>If the stop button is pressed, the punch is required to retract (if it had been advanced) before the process is stopped. We are required to construct a ladder logic diagram for this task. </li></ul>
  46. 46. Identify I/Os
  47. 47. Ladder Diagram
  48. 48. Example 4 <ul><li>This example illustrates the use of both the timing and counting functions. </li></ul><ul><li>Consider a production line in which parts requiring processing are brought to a machine by a conveyor. </li></ul><ul><li>A robot is used to load parts from the conveyor onto the machine and, after the part has been processed, unload the part from the machine and place it on a pallet. </li></ul><ul><li>The cycle time for processing each part is 10 min. The robot is to palletize the parts by placing 125 parts on each pallet. The parts are to be arranged on the pallet in five layers of 25 parts each. </li></ul><ul><li>Once a pallet is complete, it is dispatched and a new pallet is started. An allowance of 30 s is to be made for pallet dispatching and presentation of a new pallet. Construct a ladder logic diagram to effect the required control. </li></ul>
  49. 49. Identified I/Os <ul><li>10 Machine has a part to be unloaded </li></ul><ul><li>30 Load machine with a new part </li></ul><ul><li>40 Unload a process part from the machine </li></ul><ul><li>45 The current pallet layer is full </li></ul><ul><li>48 Increment layer being palletized by 1 </li></ul><ul><li>50 The pallet is full-dispatch </li></ul><ul><li>60 Present a new pallet </li></ul><ul><li>C100 Up counter with limit set to 25 </li></ul><ul><li>C200 Up counter with limit set to 5 </li></ul><ul><li>T250 Timer with limit set to 600 s </li></ul><ul><li>T300 Timer with limit set to 30 s </li></ul>
  50. 50. Ladder Diagram
  51. 51. Design methods for ladder diagram
  52. 52. Truth table
  53. 53. Ladder diagram for Example 10.2
  54. 54. State diagram
  55. 55. Rules of State Diagram
  56. 56. State diagram for Example 10.4
  57. 57. Advantages of PLCs <ul><li>More complex tasks, can be done with a PLC. </li></ul><ul><li>Hard-wiring, though still required to connect field devices, is less intensive. </li></ul><ul><li>Modifying the application and correcting errors are easier to handle. </li></ul><ul><li>It is easier to create and change a program in a PLC than it is to wire and rewire a circuit. </li></ul><ul><li>Following are just a few of the advantages of PLCs: </li></ul><ul><li>• Smaller physical size than hard-wire solutions. </li></ul><ul><li>• Easier and faster to make changes. </li></ul><ul><li>• Diagnostics are centrally available. </li></ul><ul><li>• Applications can be immediately documented. </li></ul><ul><li>• Applications can be duplicated faster and less expensively. </li></ul><ul><li>Special functions such as Time Delay action, Counters are easy </li></ul>
  58. 58. Architecture I/O INTERFACE CARD WORKING MEMORY I/O INTERFACE CARD MICRO -CONTROLLER PROGRAM MEMORY
  59. 59. I/O interface card - input <ul><li>It is used to connect various types of inputs to PLC i.e. from sensors,reed switches etc. </li></ul><ul><li>It collects the data from the field devices and send to PLC memory. </li></ul>
  60. 60. Working memory <ul><li>This memory consists input buffer and output buffer. </li></ul><ul><li>The data's from the I/O interface card is stored in this memory to their specific location. </li></ul>
  61. 61. Microprocessor <ul><li>This is the heart of the PLC here we do arithmetic,logical,mathematical and advanced functions. </li></ul><ul><li>This execute the program with input data's from the input buffer and send output data’s to output buffer. </li></ul>
  62. 62. Program memory <ul><li>This memory is used to store the PLC program </li></ul><ul><li>It is EPROM memory type </li></ul>
  63. 63. I/O interface card-output <ul><li>It is used to collect the data from the PLC and actuate the respective output device </li></ul>
  64. 64. BASIC STRUCTURE OF PLC Expansion Port connection for extension units Digital outputs relay or transistor output Fieldbus Integrated fieldbus interface 2 wire, RS485. MODBUS Digital inputs 24 V PNP or NPN, electrically isolated,. LED indicators Communication Port RS232 serial interface Power Supply 230 VAC or 24 VDC Network Port open interface
  65. 65. Input Card
  66. 66. <ul><li>INPUT </li></ul><ul><li>NPN (sinking) Type (If voltage is -ve w.r.to common) </li></ul><ul><ul><ul><li>Common(24V) </li></ul></ul></ul><ul><ul><ul><li>I/P(0V) </li></ul></ul></ul><ul><li>PNP (Sourcing)Type (If voltage is +ve w.r.to common) </li></ul><ul><ul><ul><li>Common(0V) </li></ul></ul></ul><ul><ul><ul><li>I/P(24V) </li></ul></ul></ul><ul><li>OUTPUT : </li></ul><ul><li>Relay Type General Purpose </li></ul><ul><li>Transistor Type High Speed Applications </li></ul>
  67. 67. Outputs <ul><li>Solenoid Valves- logical outputs that can switch a hydraulic or pneumatic flow. </li></ul><ul><li>Lights- logical outputs that can often be powered directly from PLC output boards. </li></ul><ul><li>Motor starter- motors often draw a large amount of current when started, so they require motor starters, which are basically large relays. </li></ul>
  68. 68. Output Card
  69. 69. RELAYS <ul><li>Relays are the most flexible output devices. They are capable of switching both AC and DC outputs. </li></ul><ul><li>Relay outputs are often called Potential free contacts. </li></ul><ul><li>Response times are often greater than 10ms. </li></ul>TRANSISTOR <ul><li>Transistors are limited to DC outputs </li></ul><ul><li>Transistor outputs are NPN or PNP type </li></ul><ul><li>Their response time is well under 1ms. </li></ul>
  70. 70. Relays <ul><li>Relays are the most flexible output devices. They are capable of switching both AC and DC outputs. </li></ul><ul><li>Relay outputs are often called dry contacts. </li></ul><ul><li>Response times are often greater than 10ms. This method is the least sensitive to voltage variations and spikes. </li></ul>
  71. 71. RELAYS A switch whose operation is activated by an electromagnet is called a &quot;relay&quot; Relay coil R1 R1 Output contact
  72. 72. Relays and Schematic Symbols
  73. 73. How does a Relay works? A relay is a simple device that uses a magnetic field to control a switch. When a voltage is applied to the input coil, the resulting current creates a magnetic field. The magnetic field pulls a metal switch (or reed) towards it and the contacts touch, closing the switch. The contact that closes when the coil is energized is called normally open. The normally closed contacts touch when the input coil is not energized.
  74. 74. Logical Control with Relays
  75. 75. Relays are used to let one power source close a switch for another power source, while keeping them isolated. In this system the first relay on the left is used as normally closed, and will allow current to flow until a voltage is applied to the input A. The second relay is normally open and will not allow current to flow until a voltage is applied to the input B. If current is flowing through the first two relays then current will flow through the coil in the third relay, and close the switch for output C. This circuit would normally be drawn in the ladder logic form. This can be read logically as C will be on if A is off and B is on.
  76. 76. Relay Logic In a PLC
  77. 77. GENERAL FORMAT Addressing % RANGE PREFIX SIZE PREFIX NATURAL NUMBER I- Input Q-Output M-Memory Location X - SINGLE BIT (BOOLEAN) B - BYTE(8 BITS) W - WORD(16 BITS) D - DOUBLE WORD (32 BITS)
  78. 78. % I X 62.0 X - SINGLE BIT(BOOLEAN) %I W 1000.0 W - WORD(16 BITS) %QX62.0 X - SINGLE BIT(BOOLEAN) %MX0.0 X - SINGLE BIT(BOOLEAN) %MW1000.0 W - WORD(16 BITS) Example
  79. 79. EX 62.00 Operand Format Channel number I : Input Q: Output M: Flag, internal relay K: Indirect constant X Binary (E,A,M,K,S) W Word (E,A,M,K) D Double word (M,K) Base Module 00,01,02,03.. 62,63,64,65...
  80. 80. n° 62 +1 +1 Example: 62 63 64 65 66 65 66 I&O I&O O I I O Automatically, it depends of the type , the situation : Mixed or configurable I&O, input I, output O.
  81. 81. <ul><li>Select your preferred programming Language: </li></ul><ul><li>Editors according IEC 1131: - Function Block Diagram, FBD - Instruction List, IL - Ladder Diagram, LD (includes also FBD !) - Sequential Function Chart, SFC </li></ul><ul><li>Cross references - for easy signal tracing </li></ul><ul><li>Libraries Complete set of Proven Function Blocks for binary and analog signal processing. </li></ul>LD SFC FBD IL
  82. 82. Ladder Diagram A ladder diagram (also called contact symbology) is a means of graphically representing the logic required in a relay logic system. Rail Rung
  83. 83. Assumption View External switches Stored program 20 11 01 02 03 Q.00 12 C PLC Inpu t Outpu t A B
  84. 84. <ul><li>BOOLEAN LOGIC </li></ul><ul><li>RELAY INSTRUCTION </li></ul><ul><li>TIMING INSTRUCTION </li></ul><ul><li>COUNTING INSTRUCTION </li></ul><ul><li>ARITHMETIC INSTRUCTION </li></ul><ul><li>FUNCTIONAL BLOCK INSTRUCTION </li></ul>PLC Instructions:
  85. 85. Relay Instructions Input Instruction Output Instruction
  86. 86. An example of relay logic For a process control, it is desired to have the process start (by turning on a motor) five seconds after a part touched a limit switch. The process is terminated automatically when the finished part touches a second limit switch. An emergency switch will stop the process any time when it is pushed. LS1 PB1 LS2 R1 TIMER 5 Motor R2
  87. 87. L1 LS1 PB1 LS2 R1 R1 R1 TIMER R2 PR=5
  88. 88. Timers TIMER EN Q PS ET EN-ENABLE PS-PRESET IME Q-OUTPUT ET-ELAPSED TIME If enable is ON , timer will start counting
  89. 89. Problems TRUE LOGIC 3 switches and 2 bulbs.. B1 has to change status if S1 or S2 changes the status B2 has to change status if S2 or S3 changes the status PSEUDO LOGIC House Hold PUMP ... Pump has to get on if Green Push Button is pressed and continue ON even after it is released till Red Push Button is Pressed B2 B2 S3 S1 S2
  90. 90. True Logic B1 S1 S2 S1 S2 S2 S3 S2 S3 B2
  91. 91. Pseudo Logic G R M M G -Green push button R -Red push button M -Motor
  92. 92. Mathematical Functions ADD (value, value) - add two values SUB (value, value) - subtract MUL (value, value) – multiply DIV (value, value) - divide NEG (value) - reverse sign from positive/negative CLR (value) - clear the memory location CONVERSIONS BCDDUAL -Conversion BCD-DUAL, word DUALBCD -Conversion DUAL-BCD, word DWW -Double word to word conversion WDW -Word to double word conversion ARITHMETIC FUNCTIONS
  93. 93. COMPARISION <ul><li>GT Greater Than </li></ul><ul><li>LT Less Than </li></ul><ul><li>LE Less than or Equal to </li></ul><ul><li>GE Greater than or Equal to </li></ul><ul><li>EQ Equal </li></ul><ul><li>NE Not Equal </li></ul>
  94. 94. NUMERICAL OPERATORS <ul><li>ABS Absolute value of a number </li></ul><ul><li>SQRT Square root of a number </li></ul><ul><li>LN Natural logarithm </li></ul><ul><li>LOG Logarithm of base 10 </li></ul><ul><li>EXP Exponential function </li></ul><ul><li>SIN Sine of a number </li></ul><ul><li>COS Cosine of a number </li></ul><ul><li>TAN Tangent of a number </li></ul>
  95. 95. Scanning How a PLC executes the program is called scanning . Scanning consists 3 steps i. Input scanning ii. Program execution iii.Output scanning.
  96. 96. Input Scanning: Processor reads all the i/p signals. These i/p signals are stored in input buffer. Program execution: Processor execute the program. Output scanning: All O/P signals are stored in output buffer.
  97. 97. Scanning Process Input Program Execution Output
  98. 98. Scan time Time taken for one execution cycle to be completed is called scan time.It depends upon the processor speed,program size and instruction used in the program. I/P PE O/P I/P PE O/P I/P -- --- scan time scan time 1 2
  99. 100. The logic in a ladder diagram typically flows from left to right. The diagram can be divided into sections called rungs. Each rung typically consists of a combination of input instructions. These instructions lead to a single output instruction. Each input or output instruction is assigned an address indicating the location in the PLC memory where the state of that instruction is stored. Function block instructions may include one or more addresses to store parameters related to the function that they perform. A name may also be associated with each address to make the ladder diagram easier to interpret. Anatomy of a ladder diagram:
  100. 101. Ladder Diagram A ladder diagram (also called contact symbology) is a means of graphically representing the logic required in a relay logic system . Rail Rung
  101. 102. PLC Wiring Diagram External switches Stored program 01 02 20 20 20 11 01 02 03 11 12 C PLC Input Output A B
  102. 104. <ul><li>BOOLEAN LOGIC </li></ul><ul><li>RELAY INSTRUCTION </li></ul><ul><li>TIMING INSTRUCTION </li></ul><ul><li>COUNTING INSTRUCTION </li></ul><ul><li>ARITHMETIC INSTRUCTION </li></ul><ul><li>FUNCTIONAL BLOCK INSTRUCTION </li></ul>PLC Instructions:
  103. 106. Boolean logic. Boolean logic is actually what PLCs and relay systems perform. The legal operations in Boolean logic are AND , OR , and NOT . AND Operation: The AND operation simply means all of the inputs must be ON for the output to be ON; it's analogous to relay contacts connected in series.
  104. 107. OR Operation: The OR operation means that the output is ON if at least one of the inputs is ON; it's analogous to relay contacts connected in parallel. NOT Operation: The NOT operation means that the output is OFF if the input is ON and vice-versa; it's analogous to a normally closed relay contact. To describe the situation in Rung 1 of Fig. 1 using Boolean logic, for example, we can say that Output 201 is ON if Input 101 OR 102 is ON AND Input 103 is NOT ON.
  105. 108. Logic Gates Symbol & Truth Table AND Gate a c b INPUT X INPUT Y OUTPUT Z 0 0 0 0 1 0 1 0 0 1 1 1
  106. 109. Ladder Logic (AND Gate) X Y Z
  107. 110. OR Gate INPUT X INPUT Y OUTPUT Y 0 0 0 0 1 1 1 0 1 1 1 1 Symbol: Truth Table:
  108. 111. Ladder Logic (OR Gate) X Y
  109. 112. XOR Gate: INPUT X INPUT Y OUTPUT Z 0 0 0 0 1 1 1 0 1 1 1 0 Truth Table: Symbol:
  110. 113. Ladder Logic (XOR Gate) X Y X Y
  111. 114. NOT Gate INPUT OUTPUT 0 1 1 0 Truth Table: Symbol:
  112. 115. Ladder Logic (NOT Gate)
  113. 117. PLCs perform Boolean logic using basic relay instructions. Common input instructions are examine-on (normally open contact) and examine-off (normally closed contact). Input instructions can be used to examine either the state of external PLC inputs or internal bits in the PLC memory. The examine-on instruction is ON if the input or bit being examined is ON; the examine-off instruction is ON if the input or bit being examined is OFF. The examine instructions can be connected in series and parallel in any combination to perform virtually any Boolean logic function, and the result can be connected to a relay coil (output) instruction. Relay coil instructions can be used to control either external PLC outputs or internal relay coils (bits) in the PLC. Relay Instruction
  114. 118. Relay Instructions Input Instruction Output Instruction
  115. 119. An Example of Relay Logic L1 LS1 PB1 LS2 R1 R1 R1 TIMER R2 PR=5 For a process control, it is desired to have the process start (by turning on a motor) five seconds after a part touched a limit switch. The process is terminated automatically when the finished part touches a second limit switch. An emergency switch will stop the process any time when it is pushed.
  116. 121. TIMER EN Q PS ET EN-ENABLE PS-PRESET IME Q-OUTPUT ET-ELAPSED TIME If enable is ON ,timer will start counting Timers
  117. 122. The basic timing instructions are on-delay and off-delay . Timing instructions are usually connected like relay coil instructions in the ladder diagram, so any combination of input conditions can be programmed to trigger them. When a timing instruction is created in the PLC program, space is reserved for the timer running value and the preset value at which the timer will trip, and the programmer must set the preset value to the desired number when inserting the instruction. The status of the timer output can be checked with the examine instructions for use in other rungs in the program. Timing Instructions:
  118. 123. The output associated with the timing instruction is turned ON some specified time after the input is ON, but it turns OFF immediately when the input is turned OFF. T T-DELAY TIME On-Delay Timer
  119. 124. The output is turned ON immediately when the input is turned ON. However, it remains ON for a specified period of time after the input has been turned OFF, but before going OFF. T T-DELAY TIME Off-Delay Timer:
  120. 126. <ul><li>The basic counting instructions provide for count-up, count-down. The count-up instruction simply increases the value of a counter by 1 each time an upward (OFF to ON) transition is detected in the input. </li></ul><ul><li>A count-down instruction does the opposite, decreasing the count value by 1 on each upward transition of the input. When the value of the count reaches or exceeds a preset number, the output of a counter instruction is turned ON </li></ul>Counting Instruction:
  121. 127. 1 Bool : TRUE or FALSE Integer data types : Standard Data Types: Type Lower limit Upper limit Memory req.. BYTE 0 255 8 bit WORD 0 65535 16 bit DWORD 0 4294967295 32 bit SINT -128 127 8 bit USINT 0 255 8 bit INT -32768 32767 16 bit UINT 0 65535 16 bit DINT -2147483648 2147483647 32 bit UDINT 0 4294967295 32 bit
  122. 128. 05/16/11 19 Declaration Of Variables:
  123. 129. 05/16/11 String - functions LEN LEFT RIGHT MID CONCAT INSERT DELETE REPLACE FIND Edge detection R_TRIG Detects Positive going edge F_TRIG Detects Negative going edge Counter CTU Increments on each edge (up- counter ) CTD Decrements on each edge (down - counter ) CTUD Increments / decrements on each edge (up-/down counter ) Timer TP Plus, stretches signals TON Timer on delay TOF Timer off delay IEC 61131-3: Standard library
  124. 130. Returns the length of a string. Input STR is of type STRING, the return value of the function is type INT. Example in FBD: Example in ST: VarSTRING1 := LEN (’VASHIST'); LEN Function LEN STR VarINT1 ‘ VASHIST’
  125. 131. Left returns the left, initial string for a given string. Input STR is type STRING, SIZE is of type INT, the return value of the function is type STRING. LEFT (STR, SIZE) means: Take the first SIZE character from the right in the string STR. Example in FBD : Example in ST: VarSTRING1 := LEFT ('SUSI',3); LEFT Function VarINT1 ‘ VASHIST’ LEFT STR SIZE 3
  126. 132. Logic Design <ul><li>Design ideas can be converted to Boolean equations directly. </li></ul><ul><li>The Boolean equation form can then be simplified or rearranges, and then converted into ladder logic. </li></ul>
  127. 133. Process Description: A heating oven with two bays can heat one ingot in each bay. When the heater is on it provides enough heat for two ingots. But, if only one ingot is present the oven may become too hot, so a fan is used to cool the oven when it passes a set temperature. Control Description: If the temperature is too high and there is an ingot in only one bay then turn on fan. Define Inputs and Outputs: B1 = bay 1 ingo t present B2 = bay 2 ingot present F = fan T = temperature overheat sensor
  128. 134. Ladder Logic Diagram
  129. 136. 1. A Circuit has 3 switches and 2 bulbs (s1,s2,s3,b1,b2).Initially b1& b2=0 If s1 is changed , b1 status has to change. If s2 is changed, b1and b2 status have to change. If s3 is changed, b2 status has to change. Problems:
  130. 137. S1 ON MOTOR1 ON S2 ON MOTOR2 ON ,MOTOR1 OFF S3 ON MOTOR3 ON , MOTOR2 OFF S4 ON MOTOR1,MOTOR2,MOTOR3 OFF
  131. 138. a) S1 and s2 ON, Bulb ON. s1 OFF ,Bulb OFF. b)If s1 ON first then s2 ON ,Bulb ON,S1 OFF, Bulb OFF.
  132. 139. M S1 S2 START START ON M ON. S1 & S2 ON M OFF
  133. 140. START START ON M ON;S1 & S2 ON M OFF; M OFF SV1 ON;RS2 ON SV1 OFF. RS1 RS 2 SV1 S1 S2 M
  134. 141. RS4 RS3 SV2 RS1 START RS2 SV1
  135. 142. START ON SV3 ON SV2 RS4 RS3 RS2 RS1 SV1 RS5 START RS6 SV3
  136. 143. IP OP1 OP2
  137. 144. IP OP
  138. 145. OP1 OP2 OP3 Data Clk
  139. 146. S1 NO (B1) NC (B2) 0 1 0 1 1 0 Truth Table RELAY CKT
  140. 147. S1 S1 B1 B2 CIRCUIT Ladder Diagram
  141. 148. True logic example S1 S2 S3 B 0 0 0 1 0 0 1 0 0 1 0 1 0 1 1 1 1 0 0 0 1 0 1 0 1 1 0 1 1 1 1 0 LADDER DIAGRAM
  142. 149. B S3 S2 S1 S1 S3 S1 S2 S3 Ladder Diagram:
  143. 150. G R M M G -Green push button R -Red push button M -Motor Pseudo Logic
  144. 155. PLCs are used in commercial and industrial applications. A PLC monitors inputs, makes decisions based on its program, and controls outputs to automate a process or machine.
  145. 156. Combinational Logic -   Relay contacts and coils Events -   Timer instructions -   Counter instructions Data Handling -   Moves -   Mathematics -   Conversions Numerical Logic -   Boolean operations -   Comparisons PLC Operations
  146. 157. Lists -  Shift registers/stacks - Sequencers Program Control -  Branching/looping -  Immediate inputs/outputs -  Fault/interrupt detection   Input and Output -  PID -  Communications -  High speed counters -   ASCII string functions
  147. 158. Data Handling Move Functions- There are two basic types of move functions MOV (value, destination) -moves a value to a memory location MVM (value, mask, destination) - moves a value to a memory location, but with a mask to select specific bits.
  148. 159. Mathematical Functions Arithmetic Functions ADD (value, value) - add two values SUB (value, value) - subtract MUL (value, value) - multiply DIV (value, value) - divide NEG (value) - reverse sign from positive/negative CLR (value) - clear the memory location
  149. 160. Conversions BCDDUAL -Conversion BCD-DUAL, word DUALBCD -Conversion DUAL-BCD, word DWW -Double word to word conversion WDW -Word to double word conversion
  150. 161. Comparison: <ul><li>GT Greater Than </li></ul><ul><li>LT Less Than </li></ul><ul><li>LE Less than or Equal to </li></ul><ul><li>GE Greater than or Equal to </li></ul><ul><li>EQ Equal </li></ul><ul><li>NE Not Equal </li></ul>
  151. 162. Numerical Operators <ul><li>ABS Absolute value of a number </li></ul><ul><li>SQRT Square root of a number </li></ul><ul><li>LN Natural logarithm </li></ul><ul><li>LOG Logarithm of base 10 </li></ul><ul><li>EXP Exponential function </li></ul><ul><li>SIN Sine of a number </li></ul><ul><li>COS Cosine of a number </li></ul><ul><li>TAN Tangent of a number </li></ul>
  152. 163. Functions Of Controllers 1) on-off control, 2) sequential control, 3) feedback control, and 4) motion control.
  153. 165. <ul><li>Examines its input devices, </li></ul><ul><li>Executes its control program, and </li></ul><ul><li>Updates its output devices accordingly. </li></ul>
  154. 166. Operators in ST Symbol Operation (expression) Parenthesization identifier(argument list) Function evaluation Examples: LN(A), MAX(X,Y), etc. ** Exponentiation - Negation NOT Complement
  155. 167. Operators in ST * Multiply / Divide MOD Modulo + Add - Subtract < , > , <= , >= Comparison = Equality <> Inequality
  156. 168. & Boolean AND AND Boolean AND XOR Boolean Exclusive OR OR Boolean OR Operators in ST
  157. 169. A := B; Assignment
  158. 170. A := B; Data type to Data type INT to INT Or Analog_Channel_Configuration to Analog_Channel_Configuration Assignment
  159. 171. A := B; INT to INT or Analog_Channel_Configuration to Analog_Channel_Configuration CV := CV+1; C := SIN(X); Assignment
  160. 172. Controlled repetition via iteration or selection IF .. THEN .. ELSE CASE FOR WHILE … REPEAT UNTIL
  161. 173. IF .. THEN .. ELSE IF condition= true THEN action1 ELSE action2 (condition not true) IF raining THEN Stay_In ELSE Go_Out
  162. 174. D := B*B - 4*A*C ; IF D < 0.0 THEN NROOTS := 0 ; ELSIF D = 0.0 THEN NROOTS := 1 ; X1 := - B/(2.0*A) ; ELSE NROOTS := 2 ; X1 := (- B + SQRT(D))/(2.0*A) ; X2 := (- B - SQRT(D))/(2.0*A) ; END_IF ; IF .. THEN .. ELSE
  163. 175. CASE : repetitive IF CASE selector OF selector_value : action ELSE ….. END_CASE;
  164. 176. CASE : repetitive IF TW := BCD_TO_INT(THUMBWHEEL); TW_ERROR := 0; CASE TW OF 1,5: DISPLAY := OVEN_TEMP; 2: DISPLAY := MOTOR_SPEED; 3: DISPLAY := GROSS - TARE; 4,6..10: DISPLAY := STATUS(TW - 4); ELSE DISPLAY := 0 ; TW_ERROR := 1; END_CASE; QW100 := INT_TO_BCD(DISPLAY);
  165. 177. FOR SUM := 0 ; FOR begin_value TO end_value DO END_FOR ;
  166. 178. FOR SUM := 0 ; FOR I := 1 TO 3 DO FOR J := 1 TO 2 DO SUM := SUM + J ; END_FOR ; SUM := SUM + I ; END_FOR ;
  167. 179. J := 101 ; FOR I := 1 TO 100 BY 2 DO IF WORDS[I] = 'KEY' THEN J := I ; EXIT ; END_IF ; END_FOR ; FOR
  168. 180. WHILE J := 1; WHILE J <= 100 & WORDS[J] <> 'KEY' DO J := J+2 ; END_WHILE ;
  169. 181. REPEAT … UNTIL J := -1 ; REPEAT J := J+2 ; UNTIL J = 101 OR WORDS[J] = 'KEY' END_REPEAT ;
  170. 182. EXIT and RETURN The EXIT statement shall be used to terminate iterations before the termination condition is satisfied. SUM := 0 ; FOR I := 1 TO 3 DO FOR J := 1 TO 2 DO IF FLAG THEN EXIT ; END_IF SUM := SUM + J ; END_FOR ; SUM := SUM + I ; END_FOR ;
  171. 184. Examples of instruction fields START : LD %IX1 (* PUSH BUTTON *) ANDN %MX5 (* NOT INHIBITED *) ST %QX2 (* FAN ON *) result := result OP operand Label Operator Operand Comment
  172. 185. Operator and Semantics LD Set current result equal to operand ST Store current result to operand location S Set Boolean operand to 1 R Reset Boolean operand to 0
  173. 186. AND Boolean AND & Boolean AND OR Boolean OR XOR Boolean Exclusive OR Operator and Semantics
  174. 187. ADD Addition SUB Subtraction MUL Multiplication DIV Division Operator and Semantics
  175. 188. GT Comparison: > GE Comparison: >= EQ Comparison: = NE Comparison: <> LE Comparison: <= LT Comparison: < Operator and Semantics
  176. 189. JMP Jump to label CAL Call function block RET Return from called function or function block ) Evaluate deferred operation Operator and Semantics
  177. 190. Function Block Invocation Examples 1. CAL with input list: CAL C10(CU:=%IX10, PV:=15) 2. CAL with load/store of inputs: LD 15 ST C10.PV LD %IX10 ST C10.CU CAL C10 3. Use of input operators: LD 15 PV C10 LD %IX10 CU C10
  178. 191. FB Type Operators SR S1,R RS S,R1 R_TRIG CLK F_TRIG CLK CTU CU,R,PV CTD CD,LD,PV CTUD CU,CD,R,LD,PV TP IN,PT TON IN,PT TOF IN,PT
  179. 193. With 40 and 50 series central units Three communication protocols Modbus mode ASCII mode Programming mode
  180. 194. Modbus protocol Incorporated in the 40 and 50 series central units Advantages : - It is known worldwide - It is easier - It is powerful
  181. 195. Point to point connection with a PC Network connection between CPUs Network connection with a PC Example Of Configuration
  182. 196. Serial / RS-232 Port on PC & its Pin Out
  183. 197. The Function of various pins on Serial Port Pin# on DB – 9 Pin Symbol Function 1 CD Carrier Detect: It is used by Modem to inform PC that it has detected Carrier on Phone Line. 2 RD Serial data is received on this line by PC. 3 TD Serial Data is transmitted on this pin by PC. 4 DTR Data Terminal Ready When terminal (computer) powers up it asserts DTR high. 5 SG It is signal ground with reference to which voltages are interpreted as high or low. 6 DSR Data Set Ready. When modem powers up it asserts DSR high.
  184. 198. 7 RTS Request to Send. Request to send is sent from (DTE) terminal (PC) to modem (DCE) to inform it that PC wants to send some data to modem. 8 CTS Clear To Send. Upon received RTS from DTE (PC), the modem (DCE) asserts CTS high whenever it is ready to receive data. 9 RI Ring Indicator. It is set by modem to indicate the PC that a ringing signal has been detected on line.
  185. 199. Modbus Protocol Description Support RS232, RS485, Optic fibres Mode RS485 half duplex Number of connection points 1 single master Max. 1 slave with RS232 interface Max. 31slaves with RS485 interface Max. 255 slaves with repeaters Protocol MODBUS(Master/Slave) Transmission Control CRC 16 Speed Up to 19200 Bauds Maximum Length On RS485: 1200 mat 19200 Bauds 1500 mat 300 Bauds
  186. 200. <ul><li>Configure through AC31GRAF Software </li></ul><ul><li>Configure in user program </li></ul><ul><li>Only with the black 07SR51 or 07SK53 cables </li></ul><ul><li>The serial interface of the 40 and 50 series central units have a factory setting Modbus configuration : </li></ul><ul><li>Mode: Modbus slave 1 unit </li></ul><ul><li>Transmission speed: 9600 bauds </li></ul><ul><li>Number of stop bits: 1 </li></ul><ul><li>Number of data bits : 8 </li></ul><ul><li>Parity: None </li></ul>Communication Configuration
  187. 201. Through AC31GRAF Software How Configure the Communication
  188. 202. In user program ( With SINIT function block) How Configure the Communication
  189. 203. Modbus slave central unit A program isn’t required in central unit. Modbus master central unit The Modbus function enables sending data read / write request to Modbus slaves. List of cross references An exchange of Modbus data is realised in a table defined by: - the Modbus address of the first variable - the list size = total number of variables in the list Modbus Programming
  190. 204. Example of Modbus Function block
  191. 205. It enables exchanging text coded in ASCII, between 40, 50 series central units and a printer or a terminal fitted with an ASCII interface. <ul><li>Using the black 07SK51 or 07SK53 cable. </li></ul><ul><li>It is necessary to configure the communication parameters (Speed, Stop bits, data bits, parity,…. ) with the SINIT function block in the user program. </li></ul><ul><li>Sending an ASCII message is done with the SEND function block in the user program. </li></ul><ul><li>Receiving an ASCII message is done with the REC function block in the user program. </li></ul>ASCII Protocol
  192. 206. This protocol uses the serial interface of the central unit and is reserved for devices which dispose of an ABB programming interface Programming Protocol
  193. 207. A real substation project Printer Server 1 Alarm and Event Printer 1 LA36W Fibre optic station bus (LON) in star configuration 4 x Star Coupler RER111 including redundant power supply GPS Master Operator's Workstation 2 Operator's Workstation 1 Global Position System Front-End Station Computer 1 Front-End Station Computer 2 Alarm and Event Printer 2 LA36W Redundant Station LAN TCP-IP Printer Server 2 LAN-Interface to LV SCMS Engineering Workstation Disturbance Recorder Evalution Station to Central Station Manual Switch 132kV analog Input 132kV FOX Equipment 11kV analog Input PTUSK Scope 11kV Modem NSK SACO64D4 Auxiliary alarm unit Main 2 o/e o/e SACO64D4 Auxiliary alarm unit Ether net Verbindung zu E4 FO RS232 Pilot wire diff. prot. SOLKOR R/Rf. B69 Überstrom Main 1 Siemens 7SD610 für E19 Verbindung Bay control unit REC316*4 Bay control unit REC316*4 4 x 132kV Cable Line 1 x 132kV Bus Coupler Trafo Interlocking 132kV Common Alarm Differential protection RET316*4 6 x 500RIO11 DI SACO64D4 Auxiliary alarm unit 3Ph and neutral OC SPAJ140C Bay control unit (loose delivery) 4 x 132/11kV Transformer Feeder SPAJ110C Stand by earth fault overcurrent Prot. SPAJ115C Restricted earth fault Protection Neutral earth fault Prot. SPAJ110C SPAJ115C Restricted earth fault Protection 132kV Side 11kV Side 132kV BBP / BFP BBP/BFP Central unit REB500 10 x BBP/BFP Bay unit REB500 Bay control unit REC316*4 Bay control unit REC316*4 AVR & Tap Control AVR and tap control T1 type REGSys Fault Monitoring System Indactic I650 Coaxial cable Telephon Modem SACO64D4 Auxiliary alarm unit AVR and tap control T2 type REGSys Repeater (loose delivery) 1 x 500RIO11 DO Service Modem 132kV Modem NSK Fallback Switch LDCs Interface from Station Computer 2 IEC870-5-101 LDCs Interface from Station Computer 1 IEC870-5-101 AVR and tap control T3 type REGSys Line distance prot. REL316*4 AVR and tap control T4 type REGSys (loose delivery) (loose delivery) Bay control unit (loose delivery) HP Color Laserjet HP Color Laserjet EF and OC SPAJ110C 500RIO11 , 16DI Analog alarm unit SACO16A3 Station Alarm Unit Station Alarm Unit SPAJ110C SPAJ110C Earth fault overcurrent Prot. Tertiary Earth fault Prot. Repeater Control Protection Analog alarm unit SACO16A3 FMS Fault Monitoring System 10 x 132kV 4 x 11kV 1 x spare SACO16A3 R SPAU140C Synchro- check SPAJ140C Phase and neutral overcurrent Prot. SACO16A3 R SACO16A3 R
  194. 208. Cement • aggregate / cement binders / additives storage, • water supply storage, • mixing, • control stations and central management. • to improve the productivity and to regulate the production, • to manage the site by memorizing the functionality and the consumption, • to generate the invoices, and Purchase Indents These plants assure that concrete production conforms to exact standards, as much for the quality of the components as for the production performance.
  195. 209. Paper Industry
  196. 210. During normal operation, as in transient acceleration/deceleration mode, the parameters of the mother and daughter reels vary continuously (radius, torque and inertia). Jamming and breakage must be avoided It is necessary to maintain a precise level of tension for the daughter reels, The increased density resulting from over tension increases the susceptibility of the reels to shock, whereas reels that coiled with under tension become oval in shape.
  197. 211. Waste water treatment
  198. 212. Head Office : Vashist Tecnologies Address : 42-43 Century Tower 639, Sathy Road Gandhipuram Coimbatore – 641 012 Phone : +91- 422- 6586126 Tele-fax : +91- 422- 4388896 Email : [email_address] Branch Offices : Bangalore : 258, 18th C Main, 5th Cross, VI Block, Koramangala, Bangalore - 560095 Ph : 080 – 25634530 Chennai : 9, Kalki nagar Main Road, Arumbakkam, Chennai - 600106 Ph : 044 -23631888 OFFICE LOCATION Thanks !!!

×