Top Banner

of 26

07. Discrete Controllers

Apr 05, 2018

Download

Documents

Gia Jubo
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/2/2019 07. Discrete Controllers

    1/26

    Unit 7 Discrete Controllers

    Sections:

    1. Discrete Process Control

    2. Ladder Logic Diagrams

    3. Programmable Logic Controllers

    4. Personal Computers Using Soft Logic

  • 8/2/2019 07. Discrete Controllers

    2/26

    Discrete Process Control

    Control systems that operate on parameters andvariables that change at discrete moments in time orat discrete events, usually binary (0 or 1, off or on,open or closed, etc.)

    Sensors Limit switch Contact/no contact

    Photo-detector On/off

    Timer On/off

    Actuators Motor On/off

    Valve Open/closed

    Clutch Engaged/not engaged

  • 8/2/2019 07. Discrete Controllers

    3/26

    Categories of Discrete Control

    Logic control event-driven changes

    Sequencing time-driven changes

    Logic Control - a switching system whose output atany moment is determined exclusively by the values ofinputs

    No memory

    No operating characteristics that depend on time

    Also called combinational logic control

  • 8/2/2019 07. Discrete Controllers

    4/26

    Elements of Logic Control

    Logic gates:

    AND output = 1 if all inputs = 1, zero otherwise

    OR output = 1 if any input = 1, zero otherwise

    NOT output = 1 if (single) input = 0, and vice versa

    NAND combination of AND and NOT

    NOR combination of OR and NOT

  • 8/2/2019 07. Discrete Controllers

    5/26

    Boolean Algebra & Truth Tables

    AND function is expressed as

    Y = X1.X2

    OR function is expressed asY = X1+X2

    NOT function is expressed as

    Y=X1

  • 8/2/2019 07. Discrete Controllers

    6/26

    NAND and NOR Functions

  • 8/2/2019 07. Discrete Controllers

    7/26

    Symbols for Logical Gates

  • 8/2/2019 07. Discrete Controllers

    8/26

    Example

    Write the Boolean logic expression for the pushbutton switchsystem below using the following symbols:

    X1 = START, X2 = STOP, Y1 = MOTOR, and Y2 =POWER-TO-MOTOR.

    X1

    X2Y2

    Y1

  • 8/2/2019 07. Discrete Controllers

    9/26

    Solution

    Truth Table

    X1

    X2Y2=

    Y1

    X2

    X1+Y1

    ( )X Y X1 1 2

  • 8/2/2019 07. Discrete Controllers

    10/26

    Sequencing

    A switching system that uses internal timing devices todetermine when to initiate changes in output variables

    Outputs are usually generated open loop

    No feedback that control function is executed

    Sequence of output signals is usually cyclical, as in ahigh production work cycle

    The signals occur in the same repeated patternwithin each regular cycle

    Common sequencing devices: Timer output switches on/off at preset times

    Counter counts electrical pulses and stores them

    http://images.google.com/imgres?imgurl=http://ico.music.vt.edu/Linux/RTMix/RTMix-docs/RTMix-images/main-timers.jpg&imgrefurl=http://ico.music.vt.edu/Linux/RTMix/RTMix-docs/3.html&usg=__Mp_rWNOQnod3lZiHUabSPT6bolU=&h=326&w=768&sz=136&hl=en&start=2&sig2=xQNT35mL3StgRrJFyIvCfw&um=1&tbnid=LoBU3FP2T1dn_M:&tbnh=60&tbnw=142&prev=/images%3Fq%3Dtimers%26hl%3Den%26rls%3Dcom.microsoft:en-US%26rlz%3D1I7ADRA_en%26um%3D1&ei=zSABS5CPB42t4QaX18j9Cw
  • 8/2/2019 07. Discrete Controllers

    11/26

    Ladder Logic Diagrams

    A diagram where logic elements aredisplayed along horizontal rungs

    1. Contacts - logical inputs

    (usually), e.g., limit switches,photo-detector

    2. Loads - outputs, e.g., motors,lights, alarms, solenoids

    3. Timers - to specify length ofdelay

    4. Counters - to count pulsesreceived

  • 8/2/2019 07. Discrete Controllers

    12/26

    Ladder Logic Diagram

  • 8/2/2019 07. Discrete Controllers

    13/26

  • 8/2/2019 07. Discrete Controllers

    14/26

    Solution

    If X1 and X2 remain open then C coil is unexcited and Ccontact remains closed, therefore Y is on.

    If X1 or X2 are closed then C coil is excited and C contactis opened and Y is off

    C

    Y

    X1

    X2

    C

  • 8/2/2019 07. Discrete Controllers

    15/26

    Exercise

    The production process may only be performed when theoperator activates two spring activated safety switches.The switches have to be depressed and held closedtogether by the operator using both hands.

    (a) What is the truth table? (b) What is the Boolean logicexpression? (c) What is the logic network diagram (in ISOsymbol terminology)? (d) What is the ladder logicdiagram?

    Assume X1 and X2 are the first and second switches andY is the output

    (a) Truth table for the operation is as follows:

  • 8/2/2019 07. Discrete Controllers

    16/26

    Solution

    (a) Truth table for the operation is as follows:

    Where X1 is first switch, and X2 is second switch, and Y is the output ofswitch activation.

    Inputs Output

    X1 X2 Y0 0 0

    0 1 01 0 01 1 1

    (b) Boolean logic expression for this operation corresponds to the AND logicgate, thus:

    Y = X1 . X2

    (c) The logic network diagram for the operation (in ISO symbol terminology) isas follows:

    X1

    X2

    Y&

    (d) The ladder logic diagram for the system:

    X2X1 Y

  • 8/2/2019 07. Discrete Controllers

    17/26

    Exercise

    Create ladder logic diagram for Push Button switch

  • 8/2/2019 07. Discrete Controllers

    18/26

    Solution

    ( )X Y X1 1 2

  • 8/2/2019 07. Discrete Controllers

    19/26

    Programmable Logic Controller (PLC)

    A microcomputer-based controller that uses storedinstructions in programmable memory toimplement logic, sequencing, timing, counting,and arithmetic functions through digital or analogmodules, for controlling machines and processes

  • 8/2/2019 07. Discrete Controllers

    20/26

    Components of a PLC

    I/O

    ModuleOutputs

    Inputs

    Processor

    & Memory

    Programming

    Device

  • 8/2/2019 07. Discrete Controllers

    21/26

    Advantages of PLCs Compared toRelay Control Panels

    Programming a PLC is easier than wiring a relay controlpanel

    PLC can be reprogrammed

    PLCs take less floor space

    Greater reliability, easier maintenance

    PLC can be connected to computer systems (CIM)

    PLCs can perform a greater variety of control functions

  • 8/2/2019 07. Discrete Controllers

    22/26

    Typical PLC Operating Cycle

    1. Input scan inputs are read by processor and stored inmemory

    2. Program scan control program is executed

    Input values stored in memory are used in the controllogic calculations to determine values of outputs

    3. Output scan output values are updated to agree withcalculated values

    Time to perform the three steps (scan time) variesbetween 1 and 25 msec

  • 8/2/2019 07. Discrete Controllers

    23/26

    PLC Programming

    Graphical languages:

    1. Ladder logic diagrams most widely used

    2. Function block diagrams instructions

    composed of operation blocks that transforminput signals

    3. Sequential function charts series of steps andtransitions from one state to the next (Europe)

    Text-based languages:1. Instruction list - low-level computer language

    2. Structured text high-level computer language

  • 8/2/2019 07. Discrete Controllers

    24/26

    PLC Programming

    http://www.stp-stampaggi.com/equipments/equipments.htm
  • 8/2/2019 07. Discrete Controllers

    25/26

    Personal Computers Using Soft Logic

    Sturdy enclosures for plant environment

    Membrane-type keyboards

    I/O cards and other hardware to connect to

    machines and processes Windows for implementing control

    applications

    Soft logic software emulating PLCs

  • 8/2/2019 07. Discrete Controllers

    26/26

    NXT Controller and Program