PLC Basics Featuring Micro800 And Connected Components .

3y ago
21 Views
2 Downloads
2.36 MB
66 Pages
Last View : 9d ago
Last Download : 3m ago
Upload by : Karl Gosselin
Transcription

PLC Basics Featuring Micro800 andConnected Components Workbench(RA-11-L01)(CC-11-L02)For Classroom Use Only!Publication Number -- Date

PLC Basics Featuring Micro800 and ConnectedComponents WorkbenchContentsBefore you begin . 4About this lab . 4Tools & prerequisites . 4Programming the Built-in Smart Relay Function Blocks in a Micro810 . 6Programming a Micro800 using Connected Components Workbench . 193 of 66

Before you beginIMPORTANT: Power cycle your Micro800 demo kit off and back on before starting. Also, power off yourPanelView Component terminal and leave it powered off until instructed to turn it back on.About this labThis lab will cover the basic capabilities of Programmable Logic Controllers (PLCs) as well as introduceyou to the new Micro800 Allen-Bradley family of micro PLCs and the Connected Components Workbench(CCW) software used to program and monitor Micro800 controllers, PanelView Component terminals andPowerFlex 4-class drives.Note that you will be using pre-release software and pre-release firmware, so the procedures you arefollowing and the screens you are viewing may change between now and the final release of the CCWsoftware and Micro800 controllers.This lab takes approximately 90 minutes to complete.Tools & prerequisites Micro800 demo kit consisting of a 12-pt. Micro810 controller (v0.33 prerelease firmware) and a 16-pt.Micro830 controller (v0.40 prerelease firmware) PanelView Component 6” color terminal (STN or TFT) connected to the Micro830 controller using a1761-CBL-PM02 cable. Connected Components Workbench Release 1 software (prerelease build 43) Project.Micro830.Micro830.TRAFFIC CONTROLLER FB.7z User Defined Function Block import file Traffic Light.cha or Traffic Light TFT.cha PVc application file4 of 66

5 of 66

Programming the Built-in Smart Relay Function Blocks in a Micro810The Micro810 12-point (8 Inputs & 4 Outputs) controller comes with eight Smart Relay function blocksbuilt-in that can be configured using the optional LCD Display and pushbuttons to control the four relayoutputs, without using any software! These built-in function blocks are: TON – On-delay Timing CTU – Count Up DOY – Turning on an output if the value of real-time clock is in the range of Year Time setting. TOW – Turning on an output if the value of real-time clock is in the range of Day Time setting. CTD – Count Down TONOF – On-delay timing on a true rung, and then Off-delay timing on the false rung. TP – Pulse Timing TOF – Off-delay TimingThis lab will cover the configuration of the first four function blocks above to fulfill a “Lighting Control”application.6 of 66

1. The LCD should now display the Micro810 controller’s I/O Status screen. This screen shows that thecontroller is currently in RUN mode. The first thing you need to do is change the controller to PROGmode.Pressandsimultaneously to enter the Main Menu:7 of 66

2. To put the Micro810 into Program mode, scroll down usingPressto select Mode Switch, then press8 of 66to find the Mode Switch option.to select PROG Mode and presstwice.

3. Pressonce and scroll back up to the top of the main menu using. Pressto select SRFunction which will take you to the Smart Relay function blocks for each of the four Outputs. You willnow go ahead and configure four different function blocks and then go back and test out theiroperation.4. The first function block displayed on the LCD is for Output 0 or O00 as displayed flashing in the upperleft corner of the Micro810 screen – it is a Timer ON function block (TON). A TON is used to turn anoutput on some time delay after an input has turned on. It has an input trigger (IN), a preset timevalue (PT), an elapsed time value (ET) and an output trigger (Q). MM:SS is the default time formatfor the PT and the ET. (Other time format options for timers are HH:MM and SS:MS.) When IN turnson, the ET starts timing. When the ET equals the PT, the ET stops timing and Q turns on. WheneverIN turns off, Q turns off and the ET resets to zero. If I wanted Output 0 to be controlled by one of theother seven choices of function blocks, I would pressuntil the cursor was flashing on top of TON.Then I would pressorto select a different function block. However, you are going to useTON to control Output 0.9 of 66

5. By default, the PT is set for two minutes, 30 seconds. You are going to change this to zero minutes,five seconds. Pressuntil the flashing cursor is on the 2 to the left of PT. Presstwice to setthe minutes to zero. Likewise, change 30 seconds to 05 seconds. Presstwice to accept andsave your changes. Your LCD should look like this:6. Pressuntil the cursor is flashing over O00 in the upper left-hand corner, then pressonce todisplay the function block controlling Output 1 (O01). This is a CounT Up function block (CTU). TheCTU has a count input (CLK), a reset input (RESET), a preset value (PV), a counter value (CV) andan output trigger (Q). When CLK goes from off to on, and CV is less than PV, CV increments by one.When CV PV, Q turns on. Whenever RESET is on, CV is cleared back to zero and Q is off.10 of 66

7. By default, I02 is assigned to CLK and I03 is assigned to RESET. Pressis on I02, then pressonce to change CLK to Input 1 (I01). Next, pressuntil the flashing cursoronce so that theflashing cursor is on I03, then pressonce to change RESET to Input 2 (I02). Then pressuntil the flashing cursor is to the left of PV. Change 00888 to 00003. Finally, presstwice toaccept and save your changes. Your LCD should look like this:until the cursor is flashing over O01 in the upper left-hand corner, then pressonce to8. Pressdisplay the function block controlling Output 2 (O02). This is a Time Of Week (TOW) function block.The TOW has an enable input (EN), a Daily (D/W 0) or Weekly (D/W 1) setting, an On day and time(ON), an Off day and time (OFF) and an output (Q). With the default settings, as long as Input 4 ison, Output 2 will be turned on from 9:15AM through 5:30PM (off at 5:31PM) each day from Sundaythrough Wednesday every week. With only the D/W setting changed from 0 (Daily) to 1 (Weekly), aslong as Input 4 is on, Output 2 will be turned on from 9:15AM Sunday morning through 5:30PMWednesday afternoon every week.11 of 66

9. Pressuntil the cursor is flashing over I04 to the left of EN, then pressuntil Output 1 (O01) isdisplayed. Next, pressuntil the cursor is flashing over WE to the left of OFF and presstochange the day to SU. Change the OFF time to 09:16. As long as Output 1 is on, this will turn onOutput 2 every Sunday from 9:15AM through 9:16AM (off at 9:17AM). Presstwice to acceptand save your changes. Your LCD should look like this:10. Notice the A in the lower right-hand corner of the LCD. The TOW function block actually allows forfour separate sets of on/off times to be configured to control this one output. These are entered aschannels A-D. Pressuntil the cursor is flashing over A, then pressto view the preconfigured TOW blocks for channels B, C and D. You are going to leave them as they are. The DayOf Year (DOY) function block is the other function that includes four channels. You will look at thisone more time to put the channel back to A.function block next. Press12 of 66

11. Pressuntil the cursor is flashing over O02 in the upper left-hand corner, then pressonce todisplay the function block controlling Output 3 (O03). This is a Day Of Year (DOY) function block.The DOY has an enable input (EN), a Yearly (Y/C 0) or Centurial (Y/C 1) setting, an On date (ON),an Off date (OFF) and an output (Q). With the default settings, as long as Input 6 is on, Output 3 willststbe turned on from January 1 through October 31 in 2009 and again in 2010. With only the Y/Csetting changed from 0 (Yearly) to 1 (Centurial), as long as Input 6 is on, Output 3 will be turned onststfrom January 1 , 2009 through October 31 , 2010.12. Pressuntil the cursor is flashing over I06 to the left of EN, then pressuntil Input 3 (I03) isdisplayed. Next, pressuntil the cursor is flashing over the 0 to the left of Y/C, then pressonce to change Y/C to 1. Finally, change the OFF date to 11/01/01. Now, as long as Input 3 is on,ststOutput 3 will be turned on from January 1 , 2009 through January 1 , 2011. Presstwice toaccept and save your changes. Your LCD should look like this:13 of 66

13. You are now ready to test out the function blocks in Run mode. PressMain Menu:14 of 66once to get back to the

14. To put the Micro810 into Run mode, scroll down usingPressto select Mode Switch, then pressto find the Mode Switch option.to select RUN Mode and press15 of 66twice.

15. Pressonce and scroll back up to the top of the main menu usingFunction. Pressto select SR16. To test the Timer ON delay function block (TON) controlling Output 0 (which is wired to the blue pilotlight/pushbutton labeled DO0/DI0 beneath the Micro810 controller), press and hold this pushbuttonwhich turns on Input 0. Notice that the Elapsed Time (ET) in the TON function block begins timing upto 00:05 seconds, and then pilot light DO0 turns on. Release pushbutton DIO and note that pilot lightDO0 turns off and ET resets to 00:00.16 of 66

17. Pressonce to display the CounT Up function block (CTU) controlling Output 1. Press andrelease blue pushbutton DI1 once and notice that the Count Value (CV) increments by one. Pressand release this pushbutton two more times and pilot light DO1 will turn on, since CV now equals thePreset Value (PV). If you continue to press and release this pushbutton, nothing further happens.However, if you press blue pushbutton DI2, CV resets to 0 and DO1 turns off. Press and release bluepushbutton DI1 three times and verify that pilot light DO1 is on before proceeding.to get18. Before you can test the next two function blocks, you need to set the built-in clock. Pressback to the main menu, then scroll down to Advanced Set and press. Now scroll down toClock Set and presstwice. Adjust the YEAR to 2010, the MM.DD to 11.07 and the HH:MM to09:13.Pressonce, then presstwice to get back to the main menu and scroll back up to SRFunction. From this screen you can monitor the time in the upper right-hand corner. Assuming thatpilot light DO1 is still on from the previous step, pilot light DO2 should turn on when the time equals09:15 SU. If you are patient enough to wait two more minutes before going to the next step, you willsee DO2 turn off when the time equals 09:17 SU.17 of 66

19. Pressto display the Output 0 function block, then pressthree times to display the Day OfYear function block (DOY) controlling Output 3. Press blue pushbutton DI3 and pilot light DO3 shouldststturn on, since the date is between January 1 , 2009 and January 1 , 2011.Congratulations - you have completed the Micro810 Basics lab!18 of 66

Programming a Micro800 using Connected Components WorkbenchConnected Components Workbench is the programming environment for all Micro800 family controllers.Although the following functionality could be programmed and downloaded into the Micro810 controller(and replace the Smart Relay functionality), you will use the 16-point Micro830 controller for this portion ofthe lab because the traffic controller application requires six outputs (which exceeds the available numberof outputs on the 12-point Micro810 controller).1. Verify that the Micro830 is connected via USB cable to the PC. Then, click on VM (found in thecenter and top of the screen), select Removable Devices and verify that 2080-LC30 is checked:If 2080-LC30 is not checked, click on Connect (Disconnect from Host):19 of 66

2. Once the Micro830 is “connected”, you should get the following screen. Select No, not this time andclick Next:Click Next again:20 of 66

Then click Finish:3. You are now ready to start the Connected Components Workbench software.Double click on the Connected Components Workbench iconor from the Start menu,select Programs Rockwell Automation CCW Connected Components Workbench21 of 66

4. Begin a new project by clicking on Catalog and expanding the Controllers folder in the DeviceToolbox, which is located on the right-hand side of the Workbench screen. Double click on 2080LC30-16QWB:22 of 66

5. A new Micro830 project based on this controller has now been created. The Micro830 should showup in the Project Organizer on the left-hand side of the Workbench screen:6. Change the Name for the project to Traffic Light:7. The goal for this lab is to program the Micro830 to control the traffic light at a typical 4-wayintersection. The good news is that by taking advantage of a Traffic Controller User Defined FunctionBlock (UDFB) that someone else has already created for us, it will be very straightforward toimplement. The first thing you need to do is import this UDFB. Right click on the Micro830 icon,select Import and Import Exchange File:23 of 66

8. Click Browse:24 of 66

9. Click Desktop, double click on the Lab Files folder, select the file shown below and click Open:25 of 66

10. Verify that the TRAFFIC CONTROLLER FB is selected, then click Import, followed by Cancel:26 of 66

11. You should see an output message at the bottom indicating that the import was successful and youshould see the TRAFFIC CONTROLLER FB showing up under the Function Blocks within ProjectOrganizer:12. Next you will create a new ladder program that will use the TRAFFIC CONTROLLER FB. UnderProject Organizer, right click on Programs select Add and select New LD : Ladder Diagram:27 of 66

13. Right click on UntitledLD and select Rename:14. Type Traffic Light Control and Enter:15. Double click on Traffic Light Control within Project Organizer to start editing the ladder logicprogram. If the Description Editor window below pops open, click X to close it for now.28 of 66

16. Click on the Toolbox tab in the lower right-hand corner and click on the in front of Ladder to list theavailable ladder instructions:29 of 66

17. Click and hold on the Block instruction within the Toolbox and drag a Block onto the rung as shown:18. When you release the mouse button, the Block Selector screen appears:30 of 66

19. Under Name, type tr and note that only the instructions starting with tr are listed. Click onTRAFFIC CONTROLLER FB and notice that all of the Parameters associated with this functionblock are listed below it:31 of 66

20. Select TRAFFIC CONTROLLER FB in the list and click OK. The Traffic Controller function blockshould be displayed on the rung as shown below:32 of 66

21. By convention, function blocks list inputs on the left-hand side of the block and outputs on the righthand side of the block. In order to see the full names and data types of the variables that theseinputs and outputs are associated with, move your cursor over the block - you should get thefollowing listing:22. The first function block input that connects directly to the ladder rung is the function block enable bit.The remaining four function block inputs are “real world” inputs that indicate whether a car is waitingat a red light in any of the four possible directions – North, South, East and West. These inputs getmapped to four Boolean input variables local to the function block: N Car Sensor, S Car Sensor,E Car Sensor and W Car Sensor. You are going to assign four Micro830 controller inputs to thesefunction block inputs.33 of 66

23. Click on the top of the input variable block that connects to N Car and you will get a dropdownmenu of all the existing variable names that could be assigned to N Car Sensor. Scroll down andselect IO Embedded Digital Input 0 and enter:24. Notice that because of the length of embedded input 0 variable name, it is hard to tell what input isactually assigned to N Car Sensor when viewing the function block. One way to tell is to positionyour cursor over the block as shown below.34 of 66

25. Another way is to assign shorter Alias names to these variables. Double click on the first input block– this brings up the Variable Selector screen. Go ahead and type in Alias names for the six outputs(DO0-DO5) and the first six inputs (DI0-DI5):Notice that these Alias names match the push button/pilot light names on the Micro800 demo kit forthe Micro830. Make sure to select the IO Embedded Digital Input 0 row before clicking on OKor a different variable will get assigned to the first input block.35 of 66

26. Assign the remaining three input variable blocks as follows: IO Embedded Digital Input 1 toS Car , IO Embedded Digital Input 3 to E Car , and IO Embedded Digital Input 4 toW Car (note that we skipped using Input 2!):36 of 66

27. The first function block output that connects directly to the ladder rung is the function block enabledbit – it reflects the status of the input enable bit. The remaining six function block outputs are “realworld” outputs that connect to the red, yellow and green traffic signal lights for each direction. Theseoutputs get mapped to six Boolean output variables local to the function block: NS Green Light,NS Yellow Light, NS Red Light, EW Green Light, EW Yellow Light, and EW Red Light.Assign the first six Micro830 digital outputs to the output variable blocks starting withIO Embedded Digital Output 0 to NS R and ending with IO Embedded Digital Output 5to EW G :37 of 66

28. Our rung is now complete except for a description of what the rung does. Double click on the greenarea just above the rung and type in “This rung assigns the Micro830 I/O to theTRAFFIC CONTROLLER function block.”:38 of 66

29. Next you are going to configure the controller plug-ins. Double click on the Micro830 icon in theProject Organizer to bring up the following screen:30. Plug-in slot 1 has an isolated serial port module installed in it. Right click on the graphic of the firstplug-in slot and select 2080-SERIALISOL:39 of 66

31. Plug-in slot 2 has 4-channel analog input module installed in it. Right click on the graphic of thesecond plug-in slot and select 2080-IF4:Notice that the Micro830 graphic changes to show the installed plug-ins. Now change the Channel 0Input Type under Properties from Current to Voltage:40 of 66

32. You are now ready to build, save, download and test out your one-rung program. Right click on theMicro830 icon in Project Organizer and select Build:33. You should get verification in the Output window at the bottom center of the screen that the buildsucceeded (if your build failed, get your lab instructor to review your work thus far):Click the Save iconto save your work thus far.34. Next you need to establish communications with the controller before you can download yourprogram to it. Click on the Connect button. Select the controller from the Connection Browserscreen. If successfully connected, the button changes to Disconnect and the Controller Mode isdisplayed. Verify that the Controller Mode is Program (Remote). If not, move the Micro830 modeswitch (just below the USB connector) to the right (Program) position and then back to the center(Remote) position and/or click the Program radio button:41 of 66

35. Right click again on the Micro830 icon in Project Organizer and select Download:If you get the following screen, click No:36. You should get verification in the Output window at the bottom of the screen that the downloadsucceeded (if your download failed, get your lab instructor to review your work thus far):37. When asked “Do you want to change to Run mode?”, click Yes:38.

PLC Basics Featuring Micro800 and Connected Components Workbench (RA-11-L01) (CC-11-L02) For Classroom Use Only! 3 of 66 PLC Basics Featuring Micro800 and File Size: 2MB

Related Documents:

Simplify machine design and easily create a smart Micro800 control system using Connected Components . Select and discover devices via plug and play USB or EtherNet/IP . Micro800 Controller Plug-in Modules, Micro800 Remote LCD Display, Micro800 Simulator, Micro800 microSD Card

Rockwell Automation Publication 2080-QR003A-EN-P - July 2016 3 Micro800 Starter Pack Quick Reference About This Publication The Allen-Bradley Micro800 PLC family, a part of the Rockwell

Secret Code featuring Alice A Song from My Heart featuring Layla Home Away from Home featuring Ginger The Curious Castle featuring Reese Stuck in the Middle of Knowhere featuring Coral A Garden Where Friendship Grows featuring Nahla A Fair Share at the Diner featuring Isa & Noa The Incredible Ice Cream Project featuring Lorelei Party Plans Go Pop! featuring Sia .

Safety Guidelines for the Application, Installation and Maintenance of Solid State Controls (publication SGI-1.1 available from . Information on mounting and wiring the Micro800 digital relay output plug-in module. Micro800 Digital Input, Output, and Combination Plug-in Modules . Allen-Bra

6 Module 1: Introduction to PLC Basic PLC Operation In the example shown in fig 1.8, pushbuttons are connected to the PLC's inputs and a motor is connected to the PLC's output. Here the pushbuttons are used to start and stop the motor. Fig 1.8: Motor control using a PLC PLC Basic Parts A PLC consists of the following basic parts: Inputs

21. investment & allied assurance plc 22. jaiz bank plc 23. kaduna state government bond 24. nem insurance plc 25. nexans kablemetal nig. plc 26. omoluabi savings and loans plc 27. personal trust & savings ltd 28. p.s mandrides plc 29. portland paints & products nig. plc 30. premier breweries plc

PLC Downloader PLC Downloader needs to be downloaded and installed separately. This program is not included in CICON. PLC Downloader can be found in [PLC Downloader] folder. (Ex. C:\Program Files\PLC Downloader) OR PLC Downloader can be executed by "Start" - "All Programs" - "CIMON" - "PLC Downloader"

Thomas Coyne, LEM, Dir. Greg Lesko Nina Mascio Debbie Walters, LEM Faith Formation Lori Ellis, LEM, Religious Education Baptism/Marriage Please contact Lori Ellis at 412-462-8161 Confession Schedule Mondays at St. Therese at 7:00 p.m. Saturdays at Holy Trinity from 3:00-3:45 p.m. Saturdays at St. Max from 3:00-3:45 p.m. Hall Rentals Please call 412-461-1054 Website www.thomastheapostle.net .