Micro800 Basic Machine Application Lab Featuring Connected Components Workbench v21 Software
Micro800 Basic Machine Application Lab Featuring Connected Components Workbench v21 Software
Connected
c Components Workbench™ v21 Software
Important User Information
This documentation, whether, illustrative, printed, “online” or electronic (hereinafter “Documentation”) is intended for use only as
a learning aid when using Rockwell Automation approved demonstration hardware, software and firmware. The Documentation
should only be used as a learning tool by qualified professionals.
The variety of uses for the hardware, software and firmware (hereinafter “Products”) described in this Documentation, mandates
that those responsible for the application and use of those Products must satisfy themselves that all necessary steps have been
taken to ensure that each application and actual use meets all performance and safety requirements, including any applicable
laws, regulations, codes and standards in addition to any applicable technical documents.
In no event will Rockwell Automation, Inc., or any of its affiliate or subsidiary companies (hereinafter “Rockwell Automation”) be
responsible or liable for any indirect or consequential damages resulting from the use or application of the Products described in
this Documentation. Rockwell Automation does not assume responsibility or liability for damages of any kind based on the
alleged use of, or reliance on, this Documentation.
No patent liability is assumed by Rockwell Automation with respect to use of information, circuits, equipment, or software
described in the Documentation.
Except as specifically agreed in writing as part of a maintenance or support contract, equipment users are responsible for:
• properly using, calibrating, operating, monitoring and maintaining all Products consistent with all Rockwell Automation
or third-party provided instructions, warnings, recommendations and documentation;
• ensuring that only properly trained personnel use, operate and maintain the Products at all times;
• staying informed of all Product updates and alerts and implementing all updates and fixes; and
• all other factors affecting the Products that are outside of the direct control of Rockwell Automation.
Reproduction of the contents of the Documentation, in whole or in part, without written permission of Rockwell Automation is
prohibited.
Throughout this manual we use the following notes to make you aware of safety considerations:
Identifies information that is critical for successful application and understanding of the product.
Identifies information about practices or circumstances that can lead to personal injury or death, property
damage, or economic loss. Attentions help you:
• identify a hazard
• avoid a hazard
• recognize the consequence
Labels may be located on or inside the drive to alert people that dangerous voltage may be present.
Labels may be located on or inside the drive to alert people that surfaces may be dangerous temperatures.
Contents
About this lab ................................................................................................................................................ 4
Exercise #1 - Create a Connected Components Workbench project and add a Micro870 controller .......... 5
Exercise #5 - Using Run Mode Change, copy and paste a ladder rung from Studio 5000 to Connected
Components Workbench to control motor speed ....................................................................................... 37
Exercise #6 – Import a drive UDFB from sample code and configure it to monitor and control the
PowerFlex 523 drive via Ethernet ............................................................................................................... 46
Exercise #7 – Remotely control the PanelView 800 terminal using a Virtual Network Computing (VNC)
connection. .................................................................................................................................................. 60
Connected Components Workbench™ software is the integrated design environment software package that is used to program,
design, and configure your Rockwell Automation Connected Components devices such as Micro800™ programmable logic
controllers, PowerFlex® variable frequency drives, Kinetix® 3 servo drives, SMC™ soft-starters, Guardmaster® software
configurable safety relays and PanelView™ 800 operator interface terminals.
This lab will guide you in configuring a PowerFlex 523 drive, programming a Micro870® controller, and visualizing a PanelView
800 terminal application, all using Connected Components Workbench v20 software.
In this section, you will create a new Connected Components Workbench project and learn how to:
▪ Add a Micro870 controller to your project by selecting a new device from the ‘Catalog’.
▪ Add and configure plug-in modules for the Micro870 controller.
Click New… from the Start Page. Accept the New Project defaults by clicking Create. Click Select existing
device, select the Micro870 under the expanded AB_ETHIP-1 driver in the Connection Browser window and
click OK. Then click Add To Project. This will add a Micro870 controller to your project.
6. Right click on the middle plug-in slot on the large Micro870 graphic and select a 2080-IF4 analog input plug-in
module.
10. Expand AB_ETHIP-1 in the Connection Browser window, click on the PowerFlex 523 icon and click OK.
20. Save all the changes so far in the project by clicking the Save Project icon ( ) from the toolbar.
Right-click Programs under the Micro870 in your Project Organizer and select Add → New LD : Ladder
Diagram.
22. Notice a new Ladder Diagram program called Prog1 has been added under Programs.
Micro800 controllers allow you to create multiple programs as well as use multiple types of programs (such
as Structured Text or Function Block Diagram) in the same controller application.
Since we’ll be creating a program that does hard wired motor control, let’s rename it Hard_Wired_Control.
This circuit will use a Start variable and a Stop variable that are assigned to contacts to start and stop the motor.
The Motor ON/OFF output coil will be assigned to DO9 (Digital Output 9) so that when DO9 is turned on, the
motor accelerates and runs, and when DO9 is turned off, the motor decelerates to a stop.
26. Double-click the Hard_Wired_Control program icon. A ladder diagram editor will appear in the main project
workspace with one empty rung. Connected Components Workbench version 12 and later software includes the
ability to change the ladder editor theme between Default and Logix, which is the theme you will be using in this
lab. The Logix theme uses instruction symbols and terminology that will be more familiar to users of RSLogix
500 and Studio 5000 Logix Designer programming software. Another feature of this software version is a tabbed
Instruction Library toolbar, which should also look familiar to Logix users.
28. Note that when you hover your mouse over a symbol in the Instruction Library, the tooltip shows you the name
of the symbol.
30. The Variable Selector window then opens automatically to allow creation of a new variable to assign to this
contact. In this window, select Micro870 for the Scope (which will make it a Global/Controller Variable) and
scroll down to the bottom of the list to enter in a new BOOL variable. Type ‘Start_Motor’ for the Name, hit Enter
and click OK.
32. Locate the Direct Coil instruction in the Instruction Library and drag-and-drop it onto the rung as shown below.
36. Locate the Branch instruction in the Instruction Library and drag-and-drop it to the left of the Direct Contact on
the far left of the rung.
39. It is always a good programming practice to document your program rungs so that when you or someone else
looks at the rung in the future, it will be clear what the intended function of the rung is. Double click within the
rung comment box just above the rung and type in “Start_Motor turns the motor on and Stop_Motor turns the
motor off.”
When the build is complete, you will see a message in the lower left-hand corner that the build has succeeded. If
there were errors in your programming, then they would be listed in the Error List panel and clicking on the error
would direct you to the error in your project.
Now that your build has completed, you can download the project to your controller.
42. The Connection Browser window will appear. Browse for your controller by expanding AB_ETHIP-1 and
selecting IP address 192.168.1.27, then clicking OK.
43. The Download Confirmation window will appear. You will be prompted to overwrite the project in the
controller. The two choices are Download and Download with Project Values. When a project is uploaded
from the controller, a snapshot of the values of all the user variables is uploaded and saved. These values can
be downloaded back into the controller along with the project by selecting Download with Project Values.
45. The download will proceed. When the download is complete, you will be prompted to put the controller back in
Remote Run mode. Click Yes.
47. Right click on the Start_Motor contact and click Toggle Boolean Value. Verify that the Start_Motor Direct Contact has
turned red and that the Motor ON/OFF Direct Contact and Direct Coil have turned red and remain red, even after toggling
the Start_Motor Boolean value back off.
48. Toggle the Boolean value of Stop_Motor to turn off the output. Notice the corresponding color changes in your Ladder
Diagram. Toggle the Boolean value of Stop_Motor back off.
49. Toggle the Boolean value of Start_Motor on to restart the motor and then toggle Start_Motor back off again.
50. You have completed debugging your motor seal-in circuit – next you will add programming to vary the speed that the motor
spins at, while your existing program continues to run.
51. Click on the Run Mode Change icon in the upper right Run Mode Change toolbar. Notice that the rung no longer displays
the blue and red status colors.
52. Click on the new rung icon in the Favorites group to add a second rung.
54. Open Studio 5000 software by double clicking on the icon on the desktop.
56. Once the project opens, expand the MainProgram within the Controller Organizer window, then double click
on MainRoutine to open the 1-rung ladder routine.
58. Minimize the Logix Designer window and maximize the Connected Components Workbench window. Right click
anywhere on the second rung and select Paste.
60. Double click on the yellow triangle under Local_2_I.Ch0Data to bring up the Variable Selector window. Select Micro870
for the Scope and scroll down to select _IO_P2_AI_00 (which references channel 0 on the analog input plug-in module in
slot 2). Click OK.
62. Now you are ready to test the changes you made in the running system. Click the ‘Test changes’ icon immediately to the
right of Run Mode Change.
63. Note that the changes are now built and downloaded to the controller and once completed, we can test how the new
program is operating. To adjust the speed of the motor, we will force values into analog input _IO_P2_AI_00, which will get
moved into analog output _IO_P3_AO_01 by rung 2, which is the analog output that controls the rotating speed of the motor
(with a slight acceleration or deceleration lag).
65. Optional: View the actual hardware panel remotely. Click on the camera URL link provided in the scheduling email and enter
the Username: Public (note that this username is case sensitive) and Password: ThisIsTheCameraPassword. Verify that the
speed of the induction motor is changing as you enter in different values for _IO_P2_AI_00.
66. Once the changes have been tested using Run Mode Change, you have two options: Accept changes, which saves the
changes that have been made, or Discard unaccepted changes, which deletes the changes that have been made. The
icons for ‘Accept changes’ and ‘Discard unaccepted changes’ are immediately to the right of the ‘Test changes’ icon.
Note again that the motor has continued to spin throughout the Run Mode Change edit session. (When
downloading normal offline changes, the controller must be first switched to program mode, which would stop the
motor.)
68. Toggle the Boolean value of Stop_Motor on to stop the motor and then toggle Stop_Motor back off again.
69. Click the Disconnect button under the Micro870 tab to go offline.
70. Another feature exclusive to Connected Components Workbench Developer Edition is the ability to archive multiple copies
of a project. Especially during development, it can be useful to be able to go back to a previous version of the project if
changes that have been made need to be undone. It also provides a chance to document changes from one version of the
project to the next. Archive a copy of your current project by selecting File → Archive Manager...
Right-click MainTask under the Tasks in your Controller Organizer and select Add → New LD : Ladder
Diagram. Rename the new program Ethernet_Control.
80. Click in the upper half of the IPAddress input parameter and enter ‘192.168.1.68’ (including the single quotes, since this is
a string value), which is the IP address of the drive.
If you hover the cursor over the instruction block, the tooltip lists the data types for each of the input and
output parameters. Note that AccelTime1 and DecelTime1 are of data type REAL. Therefore, when you
enter a constant value for those parameters, it must be in REAL format even for an integer value (i.e., 5.0,
not just 5).
85. The two parameters that need to be modified are Start Source 1 and Speed Reference 1.
86. Click in the Value column next to Start Source 1 and select Network Opt (which refers to the optional Ethernet
communications card) from the dropdown menu.
88. Download the changes to the drive by clicking the Connect icon and selecting Download from the dropdown
menu. Click Finish when the download has completed.
92. Optional: View the actual hardware panel remotely. Click on the camera URL link provided in the scheduling email and enter
the Username: Public (note that this username is case sensitive) and Password: ThisIsTheCameraPassword. Verify that the
speed of the induction motor is changing as you enter in different values for Speed_Command.
93. Click the checked checkbox again to uncheck Start_Motor, then click the Stop_Motor checkbox and verify that the motor
stops running (Motor_Ind should be unchecked/off). Finally, click the checked checkbox again to uncheck Stop_Motor -
both checkboxes should now be unchecked.
94. Click Cancel on the Variable Monitoring screen, then click the Disconnect button under the Micro870 tab to go offline.
Virtual Network Computing (VNC) allows you to remotely connect to a PanelView 800 terminal, either over the local network or
even over the Internet (with appropriate security in place, of course!). With VNC you can interact with the terminal without having
to be physically at the terminal location. It transmits keyboard and mouse actions from your computer to the terminal.
98. Verify the Remote Host IP address of the terminal, 192.168.1.108, and click Connect.
99. Enter the password “ra-“ (without the quotes), and then click OK.
105. Under Project Organizer, click the Trends tab and click the Add trend icon.
Using TightVNC Viewer, navigate back to the PanelView 800 MotorStarter application
MOTOR_CONTROL screen, set the speed to 60.0, then use the start and stop buttons to
repeatedly start and stop the motor (even while it is still accelerating or decelerating) to create a
trend of interest.
116. To learn more about drive trending and its capabilities, click the ‘?’ button.