Slic500 Lab 2

4
EET3370 – Programmable Logic Controller Basics Lab 5 – SLC-500 Timer Lab Purpose The purpose of lab 2 is to introduce you to the timing functions available in the SLC500. In this lab you will program each of a series of timing circuits in the SLC500 and demonstrate it with the SLC500 I/O panel. Applicability Criteria: The functions in this lab allow you to program common timing functions used for both delay-on and delay-off instructions. Understanding these timing functions will enable you to build complex control such as time-driven sequencing circuits, shift register clock circuits, and wave form generation circuits. Procedure: You need to create a file called timerxx before you can run this lab. Refer to first SLC 500 lab hand out if you have forgotten how to do this. 1. Enter the following program. I:1 |----] [-------------------------------+TON-----------------+ | | 0 |Timer On Delay +-(EN)-| | |Timer T4:0 + | | |Time base 0.01 +-(DN) | | |Preset 300 | | | |Accum 0 | | | +--------------------+ | | T4:0 O:2/0 | |----] [---------------------------------------------------( )---| DN Make sure your interface panel power is off. Connect a switch to the input module in slot 1, terminal 0. Connect a light to the output module in slot 2, terminal 0. Turn on the power, download and monitor your program. Run the program. Turn on the switch, and count the time before the light energizes. It should be 3 seconds. The circuit above is commonly referred to as a delay-on timer. The output energizes after a time delay when the switch is closed. Slic500 Lab 2 http://www.tech.mtu.edu/courses/eet3370/EET3370 LAB 5 SLC500 Tim... 1 of 4 11/4/2014 7:12 PM

description

analyzer

Transcript of Slic500 Lab 2

  • EET3370 Programmable Logic Controller Basics Lab 5 SLC-500 Timer Lab

    Purpose The purpose of lab 2 is to introduce you to the timing functions availablein the SLC500. In this lab you will program each of a series of timingcircuits in the SLC500 and demonstrate it with the SLC500 I/O panel. Applicability Criteria: The functions in this lab allow you to program common timing functionsused for both delay-on and delay-off instructions. Understanding these timingfunctions will enable you to build complex control such as time-drivensequencing circuits, shift register clock circuits, and wave form generationcircuits. Procedure: You need to create a file called timerxx before you can run this lab. Refer tofirst SLC 500 lab hand out if you have forgotten how to do this.

    1. Enter the following program. I:1 |----] [-------------------------------+TON-----------------+ || 0 |Timer On Delay +-(EN)-|| |Timer T4:0 + || |Time base 0.01 +-(DN) || |Preset 300 | || |Accum 0 | || +--------------------+ || T4:0 O:2/0 ||----] [---------------------------------------------------( )---| DN Make sure your interface panel power is off. Connect a switch to the inputmodule in slot 1, terminal 0. Connect a light to the output module in slot 2,terminal 0. Turn on the power, download and monitor your program. Run theprogram. Turn on the switch, and count the time before the light energizes. It should be 3 seconds. The circuit above is commonly referred to as a delay-on timer. The outputenergizes after a time delay when the switch is closed.

    Slic500 Lab 2 http://www.tech.mtu.edu/courses/eet3370/EET3370 LAB 5 SLC500 Tim...

    1 of 4 11/4/2014 7:12 PM

  • 2. In the space below, draw a ladder diagram where the output energizesinstantly when the switch is thrown, and when the switch is turned off, it willdelay 3 seconds before going off. Use input I:1/1, output O:2/1, and timer T4:2 Enter your diagram into the computer. Add the rungs to the end of the programthat already exists. Download the program, and run the program. Monitor yourtimer. When you have this working have the instructor initial your control.

    Slic500 Lab 2 http://www.tech.mtu.edu/courses/eet3370/EET3370 LAB 5 SLC500 Tim...

    2 of 4 11/4/2014 7:12 PM

  • 3. Program the following ladder logic into the computer. Use input I:1/2,output 0:2/2, internal coil B3:1/0, and timers T4:2 & T4:3. I:1 B3:1|----] [----]/[-------------------+TON-----------------+ || 2 0 +Timer On Delay +-(EN)-|| |Timer T4:2 + || |Time base 0.01 +-(DN) || |Preset 500 | || |Accum 0 | || +--------------------+ || T4:2 0:2 ||----] [---------------------------------------( )------------|| DN 2 || || T4:2 ||----] [--------------------------+TON-----------------+ || DN +Timer On Delay +-(EN)-|| |Timer T4:3 + || |Time base 0.01 +-(DN) || |Preset 50 + || |Accum 0 + || +--------------------+ || || || T4:3 B3:1 ||----] [----------------------------------------( )-----------|| DN 0 | Note: B3:1/0 is an example of programming an internal output instruction thatdoesn't use up a terminal on an output module. Run the program, and describe in detail how the timers control output O:2/2. ____________________________________________________________ ____________________________________________________________ ____________________________________________________________ ____________________________________________________________

    Slic500 Lab 2 http://www.tech.mtu.edu/courses/eet3370/EET3370 LAB 5 SLC500 Tim...

    3 of 4 11/4/2014 7:12 PM

  • 4. In the space below, draw a ladder diagram that will cause O:2/3 and O:2/4to alternate on at a 0.5 second rate. This process should continue repeatedlyuntil input 3 is turned off. Use input I:1/3, timers T4:4 and T4:5, andoutputs O:2/3 and O:2/4. Verify the operation of this circuit. When you have this working have theinstructor initial your control. DELETE ALL THE FILES YOU CREATED WHEN YOU ARE FINISHED WITH THIS LAB.

    Slic500 Lab 2 http://www.tech.mtu.edu/courses/eet3370/EET3370 LAB 5 SLC500 Tim...

    4 of 4 11/4/2014 7:12 PM