basics of plc

Upload: anjireddy-thatiparthy

Post on 11-Oct-2015

55 views

Category:

Documents


0 download

DESCRIPTION

basic PLC programming

TRANSCRIPT

  • 5/21/2018 Basics of PLC

    1/12

    CHAPTER 1PROGRAMMABLE LOGIC CONTROLLERS (PLCs)

    AN OVERVIEW

    1-3 Given four NO pushbuttons (A-B-C-D), write a program that will turn a lamp on ifpushbuttons A and B or C and D are closed. Use the I/0 simulator screen and the following

    addresses to simulate the program:

    INPUTS OUTPUTPushbutton A - I: 1/0 L1 - O: 1/0

    Pushbutton B - I: 1/01

    Pushbutton C - I :1/06

    Pushbutton D - I :1/07

    1 -4 Write a program for the relay schematic shown.

    Use the 1/0 simulator screen and the following addresses to simulate the program.

    Page 1 of 12PSIM Training CD-ROMs

    8/25/2005http://www.maintenanceresources.com/ProductsShowcase/psimplc2000ex.htm

  • 5/21/2018 Basics of PLC

    2/12

    p p p

    INPUTS OUTPUT

    S1 - I: 1/0 L1 -O: 1/0

    LS1 - I: 1/1

    LS2 - I: 1/6

    CHAPTER 2PLC HARDWARE COMPONENTS

    2-1 Write a program that will simulate the input module, output module, and data table

    conditions for the PLC diagram shown.

    Use the I/O simulator screen and the following addresses to simulate the program:

    INPUTS OUTPUTS

    NC Pushbutton - I: 1/4 L1 - O: 1/2

    NO Pushbutton - I: 1/7 L2 - O: 1/7

    Page 2 of 12PSIM Training CD-ROMs

    8/25/2005http://www.maintenanceresources.com/ProductsShowcase/psimplc2000ex.htm

  • 5/21/2018 Basics of PLC

    3/12

    p p p

    CHAPTER 3NUMBER SYSTEMS AND CODES

    3-1 Write a program that will result in the binary number 101 being stored at output word

    one. Use the I/O simulator screen and the following addresses to simulate the program:

    INPUTS OUTPUTS

    I: 1/0 O: 1/0

    I: 1/1 O: 1/1

    I: 1/2 O: 1/2

    CHAPTER 4FUNDAMENTALS OF LOGIC

    4-4 Write a program for the relay schematic shown. Use the I/O simulator screen and the

    following addresses to simulate the program:

    INPUTS OUTPUT

    LS1 - I: 1/0 SOL - O: 1/0

    LS2 - I: 1/1

    Page 3 of 12PSIM Training CD-ROMs

    8/25/2005http://www.maintenanceresources.com/ProductsShowcase/psimplc2000ex.htm

  • 5/21/2018 Basics of PLC

    4/12

    p p p

    CHAPTER 5BASICS OF PLC PROGRAMMING

    5-3 Write a program that will implement the ladder logic program shown.

    Use the I/O simulator screen and the following addresses to simulate the program:

    INPUTS OUTPUT

    A - I: -1/0 Y - O: 1/0

    B - I: -1/1

    C - I: -1/6

    D - I: -1/7

    E - I: 1/2

    Page 4 of 12PSIM Training CD-ROMs

    8/25/2005http://www.maintenanceresources.com/ProductsShowcase/psimplc2000ex.htm

  • 5/21/2018 Basics of PLC

    5/12

    p p p

    CHAPTER 6DEVELOPING FUNDAMENTAL PLC WIRING DIAGRAMS

    AND LADDER LOGIC PROGRAMS

    6-1 Write a program that will implement the hardwired motor control relay schematic

    shown. Use the I/O simulator screen and the following addresses to simulate the program:

    INPUTS OUTPUTS

    Stop - I: 1/4 F - O: 1/0

    Start - I: 1/2 R - O: 1/1

    Selector Switch - I: -1/0 (closed for forward)

    OLs I:1/5

    CHAPTER 7PROGRAMMING TIMERS

    7-1 Write a program that will simulate the on-delay timer circuit schematic shown. Use the

    I/O simulator screen and the following addresses to simulate the program:

    INPUT OUTPUT TIMER

    S1 - I: 1/0 L1 - O: 1/0 TON T1

    Page 5 of 12PSIM Training CD-ROMs

    8/25/2005http://www.maintenanceresources.com/ProductsShowcase/psimplc2000ex.htm

  • 5/21/2018 Basics of PLC

    6/12

    p p p

    CHAPTER 8PROGRAMMING COUNTERS

    8-2 Write a program that will implement the following conveyor motor control process:

    OPERATIONAL SEQUENCE- The start button is pressed to start the conveyor motor.

    - Cases move past the proximity switch and increment the counter's

    accumulated value.

    - After a count of 13, the conveyor motor stops automatically and the

    counters accumulated value is reset to 0.

    - The conveyor motor can be stopped and started

    manually at any time without loss of the accumulatedcount.

    - The accumulated count of the counter can be reset manually at any

    time by means of the count reset button.

    - The process is repeated when the start button ispressed.

    Use the Silo simulator screen and the following addresses to

    Page 6 of 12PSIM Training CD-ROMs

    8/25/2005http://www.maintenanceresources.com/ProductsShowcase/psimplc2000ex.htm

  • 5/21/2018 Basics of PLC

    7/12

    p p p

    simulate the program:

    INPUTS OUTPUT COUNTER

    Start button - I: 1/1 Conveyor Motor - O: 1/0 CTU - C1

    Stop button - I: 1/0

    Count reset button - I: 1/2

    Proximity Switch (NO) - I: 1/3

    Page 7 of 12PSIM Training CD-ROMs

    8/25/2005http://www.maintenanceresources.com/ProductsShowcase/psimplc2000ex.htm

  • 5/21/2018 Basics of PLC

    8/12

    p p p

    8-23 Write a program to implement the process illustrated. An up-counter must be programmed as part of a batch-counting operation to sort partsautomatically for quality control. The counter is installed to divert 1 part out of every 10 for

    quality control or inspection process. The circuit operates as follows.

    - A start/stop pushbutton station is used to turn the conveyor motor on and

    off.

    - A proximity sensor counts the parts as they pass by on the conveyor.

    - When 10 is reached, the counter's output activates the gate solenoid,diverting the part to the inspection line.

    - The gate solenoid is energized for 2 s, which allows enough time for the part

    to continue to the quality control line.

    - The gate returns to its normal position when the 2 s time period ends.

    - The counter resets to zero and continues to accumulate counts.

    - A reset pushbutton is provided to reset the counter manually.

    Use the Silo simulator screen and the following address to simulate the program:

    INPUTS OUTPUTS

    Conveyor stop PB - I: 1/0 Conveyor motor - O: 1/0

    Conveyor start PB - I: 1/1 Solenoid - O: 1/0

    COUNTER TIMER

    Page 8 of 12PSIM Training CD-ROMs

    8/25/2005http://www.maintenanceresources.com/ProductsShowcase/psimplc2000ex.htm

  • 5/21/2018 Basics of PLC

    9/12

    p p p

    CTU - C1 TON - T1

    CHAPTER 9PROGRAM CONTROL INSTRUCTIONS

    9-1 A temporary jumper can be installed in a PLC program in order to force a control ON orOFF as illustrated below. A dedicated I/O address can be used to operate all jumpers.Jumpers that are identified in this way are easy to locate in the program. Simply look for

    that particular I/O address and you will find every jumper that is used in the program.

    9-1(a) Construct a PSIM program for the generic ladder logic program shown.

    Page 9 of 12PSIM Training CD-ROMs

    8/25/2005http://www.maintenanceresources.com/ProductsShowcase/psimplc2000ex.htm

  • 5/21/2018 Basics of PLC

    10/12

    p p p

    Use the I/O simulator screen and the following address to simulate the Program:

    INPUTS OUTPUTS

    S1 - I: 1/0 PL1 - O: 1/1

    S2 - I: 1/1 PL2 - O: 1/2

    S3 - I: 1/6 PL3 - O: 1/4

    PL4- O: 1/4

    Page 10 of 12PSIM Training CD-ROMs

    8/25/2005http://www.maintenanceresources.com/ProductsShowcase/psimplc2000ex.htm

  • 5/21/2018 Basics of PLC

    11/12

    p p p

    CHAPTER 10DATA MANIPULATION INSTRUCTIONS

    10-6 Write a PSIM program that will implement the generic adjustable on-delay PLC timer

    program shown using data compare instructions.

    Use the I/O simulator screen and the following addresses to simulate the program:

    INPUT OUTPUT TIMER

    PB1 - I: 1/2 PL1 - O: 1/0 TON - T1

    SS1 - I: 1/0

    INTERNAL RELAYS

    O: 2/0 & O: 2/1

    Page 11 of 12PSIM Training CD-ROMs

    8/25/2005http://www.maintenanceresources.com/ProductsShowcase/psimplc2000ex.htm

  • 5/21/2018 Basics of PLC

    12/12

    p p p

    End of Sample Exercise Manual

    Page 12 of 12PSIM Training CD-ROMs

    8/25/2005http://www maintenanceresources com/ProductsShowcase/psimplc2000ex htm