Вы находитесь на странице: 1из 110

Experience Connected Components

Workbench™ Software to Develop Your


Basic Standalone Machine Application
Hands-on basic programming of a Micro800®
controller, a PowerFlex® Drive and a
PanelView™ 800 Graphic Terminal

For Classroom Use Only!


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 about practices or circumstances


that can cause an explosion in a hazardous environment,
which may lead to personal injury or death, property damage, or economic loss.

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.
Experience Connected Components Workbench Software

Contents
Before you begin ........................................................................................................................................... 4
About this lab ................................................................................................................................................................. 4
Tools & prerequisites ..................................................................................................................................................... 4

Exercise #1 - Create a Connected Components Workbench project and add a Micro870 controller .......... 5

Exercise #2 - Add a PowerFlex 523 drive to your project ........................................................................... 11

Exercise #3 - Program a motor start/stop rung in ladder logic .................................................................... 21

Exercise #4 - Build, download and test your Micro870 Project................................................................... 33

Exercise #5 - Using Run Mode Change, copy and paste a ladder rung from Studio 5000 to CCW to
control motor speed .................................................................................................................................... 39

Exercise #6 – Import a drive UDFB from sample code and program it to monitor and control the
PowerFlex 523 drive via Ethernet ............................................................................................................... 50

Exercise #7 – Add a PanelView 800 terminal and define all PanelView 800 tags using new Micro800 tag
import feature. ............................................................................................................................................. 65

Exercise #8 – Use User-defined Object Library to import completed screens, then download and test
PanelView 800 application. ......................................................................................................................... 73

Exercise #9 - Configure VNC (Virtual Network Computing) ....................................................................... 82

Exercise #10 – New PanelView 800 Feature – Sending an Email ............................................................. 88

Exercise #11 – New PanelView 800 Feature – FTP Support ..................................................................... 93

Exercise #12 – New PanelView 800 Feature – Direct Printing ................................................................... 98

Exercise #13 – Optional drive trending ..................................................................................................... 103

3 of 110
Before you begin

The following should have already been verified with your demo kit by the lab instructor prior to the lab:
1. Ethernet cable connected directly between the PC and the Stratix 2000 switch.
2. Micro870 controller firmware at v11.011 (or higher) with static IP address configured for 192.168.1.3.
3. PanelView 800 terminal firmware at v5.011 (or higher) with static IP address configured for 192.168.1.2.
4. PowerFlex 523 drive with EtherNet/IP communication adapter with static IP address configured for 192.168.1.4.

About this lab


Connected Components Workbench (CCW) 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 creating and
downloading a PanelView 800 terminal application, all using Connected Components Workbench software.

Tools & prerequisites


 Software: Connected Components Workbench (CCW) Version 11.00 software – Developer Edition – with
Micro800 and PanelView 800 v11.01 feature packs and 2018-AUG UDC update installed.
 Hardware: Connected Components demo kit – DEMO-CCMICRO1 updated with Micro870 controller,
PanelView 800 terminal, PowerFlex 523 drive and Stratix 2000 Ethernet switch connecting them together.

4 of 110
Exercise #1 - Create a Connected Components Workbench project and add a Micro870 controller

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.

5 of 110
1. Start the Connected Components Workbench (CCW) software by double clicking the icon on the
desktop.

2. Add a Micro870 to your project.

Click on New… from the Start Page. Accept the New Project defaults by clicking on Create. Expand the
Controllers folder under Catalog. Expand the Micro870 folder, click on catalog number 2080-LC70-24QBB,
click Select then click Add To Project. This will add a Micro870 controller to your project.

6 of 110
3. Notice that the Micro870 shows up both in the Project Organizer on the left-hand side as well as a large graphic
in the middle.

4. Configure the Ethernet port as shown below.

5. Next, the plug-in modules used by this lab need to be added to the controller and configured. This Micro870
controller has three plug-in slots available. Plug-ins can be added to provide analog inputs and/or outputs,
additional digital inputs and/or outputs, additional communication ports and other specialty functions.

7 of 110
6. Right click on the middle plug-in slot on the large Micro870 graphic and select a 2080-IF4 analog input plug-in
module.

8 of 110
7. Using the pull-down menu, change the 2080-IF4 Channel 0 Input Type from Current to Voltage.

9 of 110
8. Similarly, right click on the third plug-in slot, select a 2080-OF2 analog output plug-in module, and change the
2080-OF2 Channel 1 Output Type to Voltage and the Output State to Enabled.

Note that the physical Micro870 controller in the demo box also has a 2080-SERIALISOL plug-in
module installed in the first plug-in slot, but because we are not going to use this serial communications
plug-in for this lab, we don’t need to include it in this project.

10 of 110
Exercise #2 - Add a PowerFlex 523 drive to your project

In this section, you will learn how to:


 Add a PowerFlex 523 drive to your project using Discover.
 Configure the drive using the Startup Wizard.

11 of 110
9. Now that the Micro870 controller is added and configured, the next step is to add and configure the PowerFlex
523 drive. Since the drive is already connected to communicate with the PC via EtherNet/IP, the easiest way to
add it to the project is to Discover it. Click on the Start Page tab to re-open the Start Page and click on
Discover…

10. Expand AB_ETHIP-1 in the Connection Browser window, click on the PowerFlex 523 icon and click OK.

12 of 110
11. Click Wizards to bring up the Wizards screen and click Start to open the PowerFlex 523 Startup Wizard.

13 of 110
12. Click Next to continue to step 2 of the Wizard.

14 of 110
13. Click Reset all settings to factory defaults (including the customer parameter group): and Yes to confirm.
The PowerFlex 523 drive display will flash F048, which is the fault that indicates that the drive parameters have
been reset back to factory defaults. Click Next five times to continue with step 7 of the Wizard.

15 of 110
14. Click the red stop button icon to clear the drive fault, then click and hold down the mouse button over the Jog
button icon. The motor should be running now in the demo case for as long as you hold down the mouse button.
After releasing the mouse button, choose Yes for ‘Is the direction of motor rotation correct for the application?’.
Click Next three times to skip steps 8 and 9, and continue to step 10 of the Wizard.

16 of 110
15. Select 0-10V Input from the Speed Reference drop-down menu. This will allow the Micro870 to control the
speed of the motor using an analog output from the 2080-OF2 plug-in that is wired to the drive’s analog input.
However, now note the exclamation point in the red circle. When you hover your mouse over it, you see a tooltip
that indicates that “No two speed references can have the same value.” Click on the Speed Reference 2 tab.
Select Drive Pot from the Speed Reference 2 drop-down menu and the exclamation point goes away. Click
Next to continue to step 11 of the Wizard.

17 of 110
16. Select DigIn TrmBlk from the Start Source drop-down menu. This will allow the Micro870 to start and stop the
drive using a digital output that is wired to the drive’s digital input 02. Click Next twice to reach step 13.

18 of 110
17. Click Finish >>.

19 of 110
18. In the Overview screen, click Add to Project to save the online drive configuration as part of the offline project.

19. Save all of the changes so far in the project by clicking the Save Project icon ( ) from the toolbar.

20 of 110
Exercise #3 - Program a motor start/stop rung in ladder logic

In this section, you will learn how to:


 Add a ladder diagram program to the Micro870 controller.
 Rename the ladder diagram program.
 Program a ‘seal-in’ circuit to start and stop the motor in ladder logic.

21 of 110
20. Add a Ladder Diagram program.

Right-click Programs under the Micro870 in your Project Organizer, and select Add  New LD : Ladder
Diagram.

21. 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.

22 of 110
22. Right-click the Prog1 program icon and select Rename.

23. Rename the program, Hard_Wired_Control.

23 of 110
24. Create a motor seal-in circuit in your Hard_Wired_Control Ladder Diagram program.

This circuit will use the DI0 (Digital Input 0) switch on the Demo box as your Start switch, and the DI1 (Digital
Input 1) switch as your Stop switch. The start motor control is wired 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.

25. Double-click the Hard_Wired_Control program icon. A ladder diagram editor will appear in the main project
workspace with one empty rung. The Micro800 v11 feature pack for Connected Components Workbench
software adds 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 new feature for this
feature pack is a tabbed Instruction Library toolbar, which should also look familiar to Logix users.

26. Note that when you hover your mouse over a symbol in the Instruction Library, the tooltip shows you the name
of the symbol.

24 of 110
27. Click on and drag a Direct Contact symbol down onto the empty rung 1 as shown below. Release the mouse
button once the mouse pointer is hovering over the ‘+’ at the beginning of the rung.

25 of 110
28. The Variable Selector window then opens automatically. In this window, select the I/O – Micro870 tab.

26 of 110
29. We will be assigning an embedded input point to this instruction. Embedded Input/Output (I/O) variable names
start with ‘_IO_EM_’, followed by DI for digital input or DO for digital output, concluding with the input or output
point number, starting with 0. Select _IO_EM_DI_00 for embedded input 0 and then, in the ‘Alias’ column of
_IO_EM_DI_00, type ‘Start Motor switch’ and click OK.

27 of 110
30. Your direct contact on rung 1 should look like the following.

31. Locate the Direct Coil instruction in the Instruction Library, and drag-and-drop it onto the rung as shown
below. Following similar instructions as before for the Variable Selector window, assign the embedded output
point _IO_EM_DO_09 to the direct coil, including the alias description ‘Motor ON/OFF’.

32. Your rung should look like this so far.

28 of 110
33. Locate the Reverse Contact instruction in the Instruction Library, and drag-and-drop it onto the rung between
the Direct Contact and the Direct Coil. Following similar instructions as before for the Variable Selector window,
assign the embedded input point IO_EM_DI_01 to the reverse contact, including the alias description ‘Stop
Motor switch’. Your rung should look like the following.

34. 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.

35. Your rung should look like this now.

29 of 110
36. Drag-and-drop a Direct Contact onto the Branch that you just added, and assign to it the embedded output
point _IO_EM_DO_09. Notice that output points can be assigned to contacts as well as to coils. Your rung
should look like the following.

37. Next we want to add a Timer ON delay instruction (TON) to the rung. So far all of the instructions we have used
have been in the default Favorites tab. However, the TON instruction is found in the Timer/Counter tab. Click
on the scroll right button until the Timer/Counter tab comes into view, then click on the Timer/Counter tab.

38. An alternative way to find this instruction is to type TON into the Search field.

30 of 110
39. Drag and drop the TON instruction to the immediate right of the Start Motor switch direct contact so that it is
within the branch.

40. Your rung should look like this now.

41. Click in the upper half of the box to the left of PT and type in “T#1s” (for Preset Time of one second) and enter.

31 of 110
42. 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 “Switch DI0 turns the motor on after one second and switch
DI1 turns the motor off.”

32 of 110
Exercise #4 - Build, download and test your Micro870 Project

In this section, you will learn how to:


 Build your application and verify that there are no errors.
 Download your application to the Micro870 controller.
 Test that it works as intended.

33 of 110
Before you can download a project to the controller, you must build it to verify that there are no errors with the
programming.

43. Build your application by right-clicking the Micro870 in your Project Organizer, and selecting Build.

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.

34 of 110
44. Download the project to your Micro870 by clicking the Download button under the Micro870 tab.

45. The Connection Browser window will appear. Browse for your controller by expanding AB_ETHIP-1 and
selecting IP address 192.168.1.3, then clicking OK.

46. 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 of 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.

35 of 110
47. In this lab, we have a new project and none of the variables have a Project Value assigned to them yet.
Therefore, just click Download.

48. The download will proceed. When the download is complete, you will be prompted to put the controller back in
Remote Run mode. Click Yes.

36 of 110
49. Notice that at the conclusion of the download, the software went directly into Connected mode, as highlighted
below, and is now displaying the real-time status of rung 1. Red contacts indicate that power can flow through
them, while blue contacts indicate that the power flow is blocked. Red coils indicate that they are turned on,
while blue coils are turned off. Currently the Motor coil is off (blue) because power is blocked by both the blue
Start Motor switch contact and the blue Motor ON/OFF contact.

50. Turn and hold the DI0 switch on the demo box. Verify that the _IO_EM_DI_00 Direct Contact has turned red,
that the TON timer has timed for one second as indicated by ET=PT=T#1s and that the timer output Q has
turned red. Next verify that the _IO_EM_DO_09 Direct Contact and Direct Coil have turned red and remain red,
even after releasing the DI0 switch. Finally, verify that the drive display shows RUN in the top left corner (see
picture on next page), although the motor will not be spinning (or it may be barely turning).

37 of 110
51. Turn and release the DI1 switch on the demo box to turn off the output. Notice that the drive display no longer
shows RUN and the corresponding color changes in your Ladder Diagram.

This is a typical motor seal-in circuit (and can also be applied in non-motor circuits as well). The
Output Coil is turned on using a Direct Contact and then the active state of the Output Coil seals in
the circuit. The circuit is unsealed when a Reverse Contact is turned on.

52. Turn and hold the DI0 switch until the drive display shows RUN again, then release DI0.
53. 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.

38 of 110
Exercise #5 - Using Run Mode Change, copy and paste a ladder rung from Studio 5000 to CCW to
control motor speed

In this section, you will learn how to:


 Use Run Mode Change (RMC) to make program changes while the controller continues to run the existing
program.
 Copy and paste ladder logic from Studio 5000 Logix Designer software to Connected Components
Workbench software.
 Archive your project.

39 of 110
You have completed debugging your motor seal-in circuit, but what we really want to accomplish is for the motor to
spin when it is turned on and to be able to vary the speed that the motor spins at. The motor currently doesn’t spin
when turned on because the Micro870 analog plug-in output point that connects to the drive analog input point needs
to be programmed to output something other than 0 volts.
One of the features exclusive to Connected Components Workbench Developer Edition is Run Mode Change (RMC).
This feature will allow us to implement program changes without having to stop the process being controlled by the
Micro870 controller (i.e., the controller remains in RUN mode).

54. 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.

55. Click on the new rung icon in the Favorites group to add a second rung.

40 of 110
56. Click on the LD Text Input down arrow on the upper right hand edge of the screen. This expands a new text
input space between the Instruction Library and the ladder diagram that allows ladder rungs to be entered in by
typing the instruction mnemonics and variable names, just like with RSLogix 500 and Studio 5000 Logix
Designer software.

57. Minimize (don’t close!) Connected Components Workbench software.

58. Open up Studio 5000 software by double clicking on the icon on the desktop.

41 of 110
59. Click on CompactLogix_L16 under Recent Projects.

60. Once the project opens, expand the MainProgram within the Controller Organizer window, then double click
on MainRoutine to open the 1-rung ladder routine.

42 of 110
61. This is a 1-rung program that moves an analog input value from channel 0 of an analog input module in slot 2 to
channel one of an analog output module in slot 3. Right click on rung 0 and select Copy Rung.

62. Minimize the Logix Designer window and maximize the Connected Components Workbench window. Right click
in the gray box to the left of 2 in the Text Input window and select Paste.

43 of 110
63. The MOV instruction rung is copied over both as text and graphically. The yellow triangles by the input and
output variables indicate that those variable names don’t exist in the Micro870 controller.

44 of 110
64. Double click on the yellow triangle under Local_2_I.Ch0Data to bring up the Variable Selector window. Click on
the I/O – Micro870 tab 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.

45 of 110
65. Likewise, double click on the yellow triangle under Local_3_O.Ch1Data to bring up the Variable Selector
window. Click on the I/O – Micro870 tab and scroll down to select _IO_P3_AO_01 (which references channel 1
on the analog output plug-in module in slot 3). Click OK.

66. 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.

The demo kit has a dial labeled SPEED COMMAND along the right hand side. This dial is actually a voltage
potentiometer and is wired to the first analog input on the Micro870 analog input plug-in module. When the dial is
turned clockwise, it increases the voltage at the analog input and when it is turned counter-clockwise, it
decreases the voltage at the analog input. The MOV instruction in rung 2 assigns the value received at the
analog input to the analog output connected to the drive. That way, turning the potentiometer will vary the drive
speed.

46 of 110
67. Note that the changes are now built and downloaded to the controller and, once completed, we can test how the
new program is operating. When you turn the SPEED COMMAND potentiometer, you can see the value of
variable _IO_P2_AI_00 change along with _IO_P3_AO_01, which visibly changes the rotating speed of the
motor (with a slight acceleration or deceleration lag).

68. 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.

69. Now that your changes are verified, click the ‘Accept 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.)

47 of 110
70. Click the Disconnect button under the Micro870 tab to go offline.

71. Toggle switch DI1 to stop the motor.

72. 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...

48 of 110
73. Enter “Simple motor control project.” for the Description and click Archive.

74. Click Close to close the Archive Manager.

49 of 110
Exercise #6 – Import a drive UDFB from sample code and program it to monitor and control the
PowerFlex 523 drive via Ethernet

In this section, you will learn how to:


 Import a UDFB from sample code.
 Import global variables to use with the UDFB.
 Program the UDFB to monitor and control the PowerFlex 523 drive via Ethernet.

50 of 110
75. Begin the UDFB import procedure by right clicking on the Micro870 icon and selecting Import->Import
Exchange File.

76. Click Browse and navigate to directory C:\Users\Public\Public Documents\CCW\Samples\Rockwell


Automation\UDFBs\PF750,520 Series & 4-Class (Ethernet), select file
Exported.RA_PFx_ENET_STS_CMD.UDFB.v11.7z and click Open.

51 of 110
77. Click Import.

52 of 110
78. RA_PFx_ENET_STS_CMD is now listed under User-Defined Function Blocks.

79. Add a second Ladder Diagram program.

Right-click Programs under the Micro870 in your Project Organizer, and select Add  New LD : Ladder
Diagram. Rename the new program Ethernet_Control.

53 of 110
80. Double-click the Ethernet_Control program icon to open the program. Click on (User defined) and note that
RA_PFx_ENET_STS_CMD is listed in this instruction group.

81. Click and drag RA_PFx_ENET_STS_CMD onto the rung.

82. Next import the global variables that will be used with this instruction block. Begin the import procedure by right
clicking on the Micro870 icon and selecting Import->Variables.

54 of 110
83. Navigate to directory C:\Lab Files, select file Global Variables and click Open.

84. The four Global Variables listed below were imported.

85. Click in the upper half of the IPAddress input parameter and enter ‘192.168.1.4’ (including the single quotes,
since this is a string value), which is the IP address of the drive.

55 of 110
86. Similarly, enter 1000 for the read Update Rate (in milliseconds) value, 5 for the Ethernet Control Timeout (in
seconds) value and 5.0 for the Accel Time 1 and Decel Time 1 values.

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).

56 of 110
87. Click in the upper half of the Stop input parameter and select variable Stop_Motor from the dropdown list.

57 of 110
88. Similarly, select variables Start_Motor for Start, Speed_Command for SpeedRef and Motor_Ind for Active.

58 of 110
89. In order for this UDFB to be able to start, stop and control the speed of the drive via Ethernet, two of the drive
parameters need to be modified. Double click on the PowerFlex 523_1 icon in Project Organizer, select
Parameters and click Show Non-Defaults.

90. The two parameters that need to be modified are Start Source 1 and Speed Reference 1.

91. 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.

59 of 110
92. Similarly, click in the Value column next to Speed Reference 1 and select Network Opt from the dropdown
menu.

93. Disconnect from the drive by clicking the Connect icon and selecting Disconnect from the dropdown menu.

60 of 110
94. Click on the Micro870 tab and download the project to your Micro870 by clicking the Download button.

61 of 110
95. Click Download with Project Values and Yes to changing the controller to Remote Run to execute the project.
Once the download has completed, the instruction block should appear similar to this.

62 of 110
96. To test that the instruction block is now controlling the motor, double click the Start_Motor input parameter block
to bring up the Variable Monitoring screen. Click the checkbox for Start_Motor in the Logical Value column
and verify that the motor starts running. Change the value of Speed_Command (0.0-60.0) if desired.

97. Click the checked checkbox again to uncheck Start_Motor, then click the Stop_Motor checkbox and verify that
the motor stops running. Finally, click the checked checkbox again to uncheck Stop_Motor - both checkboxes
should now be unchecked.

98. Click Close on the Variable Monitoring screen, then click the Disconnect button under the Micro870 tab to go
offline.

99. Select File->Archive Manager.

63 of 110
100. Enter “Added Ethernet control.” for the Description and click Archive.

101. Click Close to close the Archive Manager.

64 of 110
Exercise #7 – Add a PanelView 800 terminal and define all PanelView 800 tags using new Micro800
tag import feature.

In this section, you will learn how to:


 Add a PanelView 800 graphic terminal to the project using ‘Select existing device’.
 Define tags for the PanelView 800 application using the Micro800 import function.

65 of 110
102. Under Project Organizer, click the ‘Add device to the project’ icon.

103. Click Select existing device…

104. In the Connection Browser window, expand the AB_ETHIP-1 driver, select the PanelView 800 and click OK.

66 of 110
105. Click Add to Project.

106. Double-click the graphic terminal icon (labeled as PV800_App1*) in Project Organizer to bring up the
PanelView 800 device configuration screen.

67 of 110
107. Verify that the Landscape orientation is highlighted then select OK.

108. Under the Settings tab, go to the Protocol menu located under Communication. Change the protocol to
Ethernet | Allen-Bradley CIP as shown.

109. Type 192.168.1.3 for the Address of the Micro870 and press enter. Notice that the default name of the controller
we will be using is PLC-1.

68 of 110
110. Rename the PV800_App1* as “MotorStarter” by right-clicking on the icon and selecting Rename from the
menu.

This application uses read and write tags to define how objects interact with the addresses of the Micro870 controller.
You must create these tags before you can assign them to the objects in the application. Only objects that interact
with the controller require a tag. Objects such as screen navigation buttons, drawings, and screen text do not require
tags.

111. Double-click on the Tags icon to open the Tag Editor.

112. Verify that the External tab is selected.

69 of 110
113. Click the Import button and select Micro800 to import tags from the Micro870 controller.

Note: The Import tag function is available with the PV800 v11 Feature Pack (RAid 1074652).

The tag selector screen will open.

114. Click the checkbox next to the Tag Name field to uncheck all tags.

70 of 110
115. Scroll down and check the checkboxes for the tags Start_Motor, Stop_Motor, Speed_Command, and
Motor_Ind. Then, click Import.

The Tag list is automatically populated with the selected tags.

71 of 110
116. Click in the Controller field in row 1 and use the drop down to select PLC-1. This is the controller name defined
on the Communication tab.

117. Repeat the previous step to set the Controller to PLC-1 for Stop_Motor, Speed_Command and Motor_Ind
tags.
When done, the Tag Editor should look like this:

118. Save all of the changes so far in the project by clicking the Save icon ( ) from the toolbar.

72 of 110
Exercise #8 – Use User-defined Object Library to import completed screens, then download and
test PanelView 800 application.

In this section, you will learn how to:


 Import a completed screen using the User-Defined Object Library
 Validate, download and test the application on the PanelView 800 terminal.

73 of 110
New applications open with the first screen created. Each screen is created with a default name, Screen_NN, where
NN is a number from 1 to 99. The first screen is named Screen_1. You can rename the screen using a maximum of
50 characters.

119. Right-click 1- Screen 1 and select Rename.

120. Type “MOTOR_CONTROL” into the text field as shown below and press Enter.

121. If the screen tab is not open already, double click on MOTOR_CONTROL to open the screen for editing. It
should look similar to this:

74 of 110
122. Under the View menu, click the User-defined Object Library.

The User-defined Object Library window opens.

User-defined objects allow you to create and save an object or group of objects for later use. User-
defined objects retain individual object properties and can be imported from or exported to other
locations or applications, reducing application development time.

75 of 110
123. Click Import in the User-defined Object Library window.

124. Browse to C:\Lab Files and select the file MOTOR_CONTROL.chu file, and click Open.

76 of 110
125. Double-click the object MOTOR_CONTROL to add it to the screen.

The object group will be added to the screen as shown below.

The screen has two momentary push buttons (one to start the motor and one to stop the motor), a Multistate
indicator to show whether the motor is running or stopped, and a numeric entry object that is associated with the
Speed_Command tag.

The Goto Terminal Config button allows access to the configuration mode screens of the terminal when the
button is pressed at runtime. Each application should contain at least one Goto Terminal Config button if the
operator needs to access the configuration screens.

77 of 110
126. Close the User-defined Object Library window.

127. Click somewhere on the screen background to deselect all objects.

128. Select the START_MOTOR button and go to the Properties window. If the Properties window is not already
open, click on the Properties tab in the upper right hand corner of the screen to open it.

129. Find the Write Tag in the Connections section and confirm that Start_Motor is selected.

Note: User-defined objects retain connection tags when re-used within the same application or
when the tags are defined in the new application before the user-defined object is used.

Before you run an application on the PanelView 800, it must be validated for errors and warnings. CCW will
automatically validate an application once the download is initiated.

78 of 110
130. Right-click on the MotorStarter icon and select Download. Alternately, a Download button is also on the
Settings tab.

131. The Validation Results window opens. Any errors listed will need to be corrected before you can download.

Note: Warnings still may exist, however they can be ignored as they are not functionality errors.

132. Browse for the terminal in the Connection Browser window by expanding AB_ETHIP-1, Ethernet and selecting
the 192.168.1.2, 2711R-T7T. Then, select OK.

79 of 110
133. The Output window will show the progress of the download. If prompted with either “Do you want to stop the
loaded application?” or “A file with that name exists. Overwrite?” click Yes. Ensure the application
downloads successfully before moving forward.

134. Close the Validation Results window.

135. Turn to your PanelView 800 terminal. It should be on the Main screen.

136. Select the File Manager button.

137. Scroll through the list of applications using the arrow keys to find the MotorStarter application you created.

138. Select Run. If prompted with a warning, select Yes (F1).

139. The application will load. Press the START MOTOR button, and let the motor run. Notice the Multistate Indicator
will change color from red to green behind the image of the motor.

140. Select the Numeric Input button you created, enter “10.0” into the keypad, and press Enter. Verify the display on
the PowerFlex 523 drive is displaying 10.0 as well. If it is displaying b001, which is the output frequency
parameter number, then just press the enter key on the front of the drive to display the output frequency.

141. Press the STOP MOTOR button.

142. To exit the application, press the CONFIG SCREEN button. This will bring you back to the File Manager screen.

143. Select File->Archive Manager.

80 of 110
144. Enter “Added PanelView Application.” for the Description and click Archive.

145. Click Close to close the Archive Manager.

81 of 110
Exercise #9 - Configure VNC (Virtual Network Computing)

In this section, you will learn how to:


 Use Virtual Network Computing (VNC) to operate graphic terminal screens remotely from your PC.

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.

82 of 110
146. Turn to the terminal. Make sure it is on the Main configuration screen.

147. Select Terminal Setting.

148. Select Communication.

83 of 110
149. Select VNC Settings.

150. If Status Server shows Disabled, tap Enable/Disable once so that it now reads Enabled.

151. If Status Access shows View-Only, tap View-Only/Control once so that it now reads Control.

84 of 110
152. Set the password for View-Only by selecting Reset Password in the View-Only box. The default VNC settings
(no password) prevents a user from establising a VNC connection to the terminal.

If a user forgets the VNC password there is no way to recover it. The user can perform the restore terminal
operation, or return the terminal to the out-of-box configuration. Doing so will clear the password and also
remove all applications, logs, recipes, user-installed font files, objects and graphics. Alternatively, you can
update the terminal firmware to clear the VNC settings and reset to the default configuration.

153. Enter ‘ra1’ for the New Password and Confirm Password (and Old Password, if shown). Tip - use the tab key
to navigate from one password field to the next. Then press the Enter key. (The view–only access password can
have a maximum of seven alphanumeric characters.) Press Yes if confirmation message appears.
154. Set the password for Control by selecting Reset Password in the Control box.

85 of 110
155. Enter ‘ra-’ for the New Password and Confirm Password (and Old Password, if shown). Tip - use the tab key
to navigate from one password field to the next. Then press the Enter key. (The control access password can
have a maximum of seven characters and at least one of them must be one of these special characters: '_', '$', '-
', or '!'.) Press Yes if confirmation message appears.

156. On the computer, launch the VNC Viewer by double clicking the TightVNC Viewer shortcut on the desktop.

157. Verify the IP address of the terminal, 192.168.1.2, and click Connect.

158. Enter the password you configured for View-Only (ra1), and then click OK.

159. The terminal screen is replicated here. Try to navigate on the terminal via the VNC connection. Since you logged
in with View-Only rights, you won’t be able to select anything - you should only be able to see what is on the
terminal. Now, navigate on the terminal and see the screen update on the computer.

160. Log out of the VNC Viewer by closing the VNC window on your PC.

161. Open another VNC connection by double clicking the TightVNC Viewer shortcut on the desktop.

86 of 110
162. Verify the IP address of the terminal, 192.168.1.2, and click Connect.

163. Enter the password you configured for Control (ra-), and then click OK.

164. Now try to navigate on the terminal via the VNC connection. Since you had the correct credentials, you should
be able to control the terminal from your computer. Go back to the Main menu and press the Goto MotorStarter
button to return to your application. Verify that you can start, stop and control the speed of your motor remotely
from your PC.

165. When you are done, click on the CONFIG SCREEN button to return the terminal back to the Main screen. To
end the remote connection, simply close the VNC Viewer window on your PC.

87 of 110
Exercise #10 – New PanelView 800 Feature – Sending an Email

In this section, you will learn how to:


 Configure and send an email

The PanelView 800 terminal can be configured to automatically send an email when an alarm is triggered, and also
manually by using an email button in the application. The email can be sent to one or more recipients and you can
also choose to send attachments such as a screenshot of the current screen or the datalog file of the application.

88 of 110
166. Next let’s configure Email. Go to the Settings tab in CCW. Click on Email.

167. Enter the following in the Email Server section:


 Server address: 192.168.1.1
 SMTP Port: 25
 TLS 1.2 Enabled: Uncheck box
 STARTTLS: Uncheck box

Note: If an invalid port number is entered, it will not be saved. The port number will revert back to
the previous saved value when the project is closed and opened again.

168. Enter the following in the Email Sender Account section:


 Email account: leave blank
 Password: leave blank
 Email address: PV800@terminal.com

89 of 110
169. Enter the following in the Recipients Settings section:
 To: engineer@terminal.com

Your screen should look similar to the image below:

170. Next let’s add an email button to the application. Open the MOTOR_CONTROL screen and drag and drop the
Email button from the Toolbox to the top of the display.

90 of 110
171. While the object is still in focus, open the Properties window by clicking on the Properties tab.

172. In the Email section, notice what fields are available. Enter the following:
 Attachment: Screenshot
 Body: MOTOR_CONTROL Screen Print
 Subject: Screen Print
 To: engineer@terminal.com

Note: It is possible to configure sending during runtime using system tags. Please refer to the User
Manual, page 67 for detailed instructions on how to do so.

173. Configuration for email is now complete. Let’s send an email! Validate and Download the new project
to the terminal.

174. Once the application is running, press the “Email” button on the terminal to send an email.

175. On the computer, open Mail from the shortcut on the desktop.

91 of 110
176. Verify the engineer received an email. (If there is nothing listed under Inbox, click the Sync this view
button.) Expand Screen Print to show a preview of the attachment (the MOTOR_CONTROL screen).

177. When you are done, click on the CONFIG SCREEN button to return the terminal back to the Main
screen.

92 of 110
Exercise #11 – New PanelView 800 Feature – FTP Support

In this section, you will learn how to:


 Configure FTP protocol

You can connect to a PanelView 800 terminal using an FTP (File Transfer Protocol) client such as a web browser,
PC file explorer, or third-party FTP software. This gives you read-only access to the Alarm History, Datalog, and
Recipe folders on the terminal. To access the contents of these folders, permissions also must be configured in
Connected Components Workbench software.

93 of 110
178. Lets configure the terminal first. Go to Terminal Setting and select Communication.

179. Select FTP Settings.

180. Press Enable/Disable to enable the FTP Server. The status will display as “Enabled”. The FTP server on the
terminal is disabled by default, however it may be enabled from a previous user. Ensure the Status is Enabled.
Then select Back.

94 of 110
181. To connect to the terminal, open the PC file explorer from the task bar at the bottom of the screen and enter
“ftp://192.168.1.2”, then press ‘enter’ on the keyboard.

The terminal supports only one FTP connection. If another connection is attempted, it is rejected
and no notification is given. The behavior varies from one FTP client to another.

182. Double click on the ‘MotorStarter’ folder.


Each application folder will have three folders that can be accessed using FTP: AlarmHistory, Datalog, and
Recipe.

183. Double click on the ‘AlarmHistory’ folder.

Note that no files are displayed in the AlarmHistory folder. This is because the access permissions are disabled
by default.

95 of 110
184. Close the PC file explorer window.

185. Now let’s configure CCW to allow FTP connections to certain document files. On the Setting tab, select FTP.

186. Next check the boxes for Alarm History, Datalog, and Recipe by clicking in the box. By default none of the
checkboxes are selected.

Checking the boxes allows a user to access these types of files in an application via FTP.

96 of 110
187. Download the application to the PanelView 800. If prompted with either “Do you want to stop the loaded
application?” or “A file with that name already exists. Overwrite?” click Yes. Ensure the application
downloads successfully before moving forward.

An FTP connection cannot be established while the terminal is loading an application. Wait until the
application has finished loading before connecting to the terminal.

188. Turn to the PanelView 800 terminal, it should be on the File Manager screen.
189. Scroll through the list of applications to select MotorStarter and select Run.
The application will load.
190. Once the application has loaded, turn back to the PC and open the PC file explorer from the task bar and enter
“ftp://192.168.1.2”, then press ‘enter’ on the keyboard.
191. Double click on the ‘MotorStarter’ folder.
192. Double click on the ‘AlarmHistory’ folder.
193. You may need to click the refresh button at the top of the window.

194. The AlarmHistory file is now visible in the folder.

The Alarm History folder contains only the alarm history of the current running application on the
terminal.
It is recommended to download files from the terminal one at a time. Also, it is suggested to set the
connection inactivity timeout for your FTP client to 60 seconds or longer to avoid unsuccessful file
download.

195. When you are done, click on the CONFIG SCREEN button to return the terminal back to the Main screen.

97 of 110
Exercise #12 – New PanelView 800 Feature – Direct Printing

In this section, you will learn how to:


 Setup Direct Printing

A user can choose to print either the current screen or the alarm history of the application that is running on your
PanelView 800 terminal. The print command is sent from the terminal either through Ethernet to a print server (for
example, a PC), or through USB to a printer connected to the terminal. Only printers that use the PCL 5 protocol are
supported. The actual print size depends on the size of the terminal, paper size, orientation, and stretch option.

98 of 110
196. Now let’s configure Direct Printing. On Terminal Setting, select Print Settings. Press OK if you get the
message “Print Settings will take effect after stop and restart of the application.”

197. Then select the Printing Port of choice. Either USB or Ethernet. (Feel free to select either option as this is an
example of how to configure. You will not be printing in this lab.)

198. Next configure the Paper Settings, select Paper Settings.

99 of 110
199. Scroll through to view options for each setting.

200. When done, select Back.

201. If printing via Ethernet, configure the settings by selecting Ethernet Print Settings. (We will not be printing in
the lab, this is for informational purposes only.)

Before configuring the Ethernet print settings, make sure the print server is available on the PC. To
do so, the printer driver must be installed on the PC and the printer must be shared on the network.

202. To enter the credentials, select Edit Credentials. All 4 fields can be accessed from this window.
If your account does not have a password, leave the Password field blank. If your PC is not part of a domain or
workgroup, enter the name of your PC in the Domain field.

100 of 110
203. Here is an example of the completed fields.

204. Now that the terminal is configured to print, let’s add a Print button to the application. In CCW, open the
MOTOR_CONTROL display.

205. In the Toolbox, go to the Advanced section and locate the Print object. Drag and drop the object to the top of
the display.

101 of 110
206. While the Print button is still in focus, open the Properties window.

207. Configure the Print Type setting. The options are to Print Current Screen or Print Alarm History. Choose one.

208. You have now configured printing!

Note: The portrait and color options are not supported when printing the alarm history. The print
settings will switch automatically to the landscape and monochrome options.

102 of 110
Exercise #13 – Optional drive trending

In this section, you will learn how to:


 Use the new trending capability for drives.

103 of 110
210. Connect to the drive by double clicking the drive icon under Project Organizer, then click the
Connect icon and select Connect from the dropdown menu.

211. Under Project Organizer, click the Trends tab and click the Add trend icon.

212. Click PowerFlex 523_1.

104 of 110
213. Click Port 0 – PowerFlex 523.

105 of 110
214. Click All Parameters.

106 of 110
215. Click #1 Output Freq and #4 Output Voltage, then click Add.

107 of 110
216. Click OK.

217. Click the play button to start the trend.

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.

108 of 110
218. Click the stop button to stop the trend.

219. Click and drag the left slide as far to the left as it goes. This will display the entire captured trend.

220. To learn more about drive trending and its capabilities, click the ‘i’ button, then click the ‘?’ button.

109 of 110
Publication CE-DM263J-EN-P — November 2018 Copyright© 2018 Rockwell Automation, Inc. All rights reserved.

110 of 110

Вам также может понравиться