30.11.2012 Views

1756-EWEB Module: Web Server and More - Rockwell Automation

1756-EWEB Module: Web Server and More - Rockwell Automation

1756-EWEB Module: Web Server and More - Rockwell Automation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

H<strong>and</strong>s-On Lab Workbook<br />

<strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong>:<br />

<strong>Web</strong> <strong>Server</strong> <strong>and</strong> <strong>More</strong><br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 1


<strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong>: <strong>Web</strong> <strong>Server</strong> <strong>and</strong> <strong>More</strong><br />

In this lab we will explore the <strong>1756</strong>-<strong>EWEB</strong> module. You are calling on your favorite<br />

OEM, the Acme Tool <strong>and</strong> Machine Company (Acme). The machines that Acme<br />

builds are systems of three or four different complex stations, each in line <strong>and</strong> tied to<br />

the others, so that one station feeds the next. Acme’s machines are all of the same<br />

general design, but each order Acme receives for a machine does have some<br />

customization required. Acme nearly always starts with a ControlLogix system with<br />

only a few modules of local I/O. The majority of I/O is Point I/O on ControlNet.<br />

Every machine also has at least one PanelView on ControlNet. Acme brings up a<br />

number of issues that they have been discussing with their customers, who are end<br />

users.<br />

1. Acme’s customers have been dem<strong>and</strong>ing better support from Acme;<br />

2. Acme needs a better way to keep their machine documentation up to date for their<br />

customers (this includes machine user manuals, maintenance schedules, service<br />

manuals, troubleshooting documents, etc);<br />

3. End user customers want to integrate data from Acme’s machines into their<br />

business systems. End user customers in Acme’s industries tend to use main frames to<br />

create production orders, collect data, generate reports, etc.<br />

4. Acme always puts their I/O on ControlNet, so customers have always needed to<br />

buy either a ControlNet card for their programming computer, or a <strong>1756</strong>-ENBT for<br />

their ControlLogix chassis. In either case, customers have not been happy having to<br />

buy an extra module just for the sake of programming.<br />

In this lab, we will see how the <strong>1756</strong>-<strong>EWEB</strong> will help Acme to meet these dem<strong>and</strong>s<br />

from their customers.<br />

Key Topics Covered in this Lab:<br />

• CIP Routing <strong>and</strong> Explicit Messaging (no I/O)<br />

• Creating <strong>and</strong> Using Data Views (<strong>and</strong> Remote Custom Data Monitor)<br />

• Sending Emails<br />

• Modifying <strong>and</strong> Downloading <strong>Web</strong> Pages<br />

• Backup <strong>and</strong> Restore: <strong>Web</strong> Pages, Data Views <strong>and</strong> Configuration<br />

• Data Collection with XML<br />

• Why the <strong>EWEB</strong> is not an HMI<br />

• <strong>EWEB</strong> Performance, <strong>EWEB</strong> Effect on System Performance<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 2


Background:<br />

The <strong>EWEB</strong> module allows the user to host web pages from the ControlLogix rack. This<br />

enables Acme’s customers to view data from their control systems on any computer that<br />

has an internet browser. (If the viewing computer is outside of the company network, the<br />

user will have to bridge the firewall, similar to the process one goes through anytime he<br />

wishes to have external access to a protected network.) The <strong>EWEB</strong> also functions as a<br />

great place for Acme to store user documentation <strong>and</strong> help files. Acme is especially<br />

interested in the ability to remotely access its machines in the field <strong>and</strong> potentially correct<br />

problems without traveling to the customer site.<br />

Technical Details the Engineers Liked:<br />

Topics such as email servers, html, xml <strong>and</strong> asp are important to the maximum use of the<br />

<strong>EWEB</strong> module, but beyond the scope of this class. There are plenty of good online<br />

resources to learn about these topics, which can be found through search engines. For<br />

example, http://www.w3schools.com/ is one good, free resource.<br />

For a good explanation of html vs. xml, go to<br />

http://www.w3schools.com/xml/xml_whatis.asp<br />

For a good explanation of ASP, go to<br />

http://www.w3schools.com/asp/asp_intro.asp<br />

CIP Routing <strong>and</strong> Explicit Messaging (no I/O)<br />

1. Double click the “AcmeControl” file in the AU2004�<strong>EWEB</strong> folder to open the<br />

RSLogix 5000 file.<br />

The <strong>1756</strong>-<strong>EWEB</strong> has all of the CIP Explicit Messaging capabilities of the <strong>1756</strong>-ENBT. It<br />

can do everything the <strong>1756</strong>-ENBT can do, except control I/O.<br />

2. Download the “AcmeControl.acd” file into the controller in slot 1 using the <strong>1756</strong>-<br />

<strong>EWEB</strong> IP address listed on the front of your computer (10.88.89.2xx). Notice the<br />

<strong>1756</strong>-<strong>EWEB</strong> module is in slot 7.<br />

3. Put the controller into Run mode.<br />

Accessing the <strong>1756</strong>-<strong>EWEB</strong><br />

4. Open Internet Explorer.<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 3


5. Click in the address field � type the IP address of your <strong>EWEB</strong> � press Enter. This<br />

opens the default <strong>EWEB</strong> web page.<br />

6. There are a group of folders on the left-h<strong>and</strong> side. Click Administrative Settings �<br />

User Management � Edit Users. A log-in screen will appear:<br />

7. Type “administrator” (not case sensitive) in the User Name field <strong>and</strong> click OK (no<br />

password) to login to the web page.<br />

NOTE: This is the out-of-the-box login account. The password will<br />

always need to be changed in any application that requires security.<br />

8. We are now on the “Edit Users” page. This is where we would set up accounts to<br />

differentiate the amount of access to <strong>EWEB</strong> functionality by various users. We will<br />

continue to use the default administrator account for simplicity. Access can be:<br />

Read: read only access to tags in the Data Views;<br />

Write: write <strong>and</strong> read access to tags in the Data Views;<br />

Administrator: complete access to all <strong>Web</strong> server functionality;<br />

Creating <strong>and</strong> Using Data Views (<strong>and</strong> Remote Custom Data Monitor)<br />

9. Using the links on the left-h<strong>and</strong> side, click Data Views � Data Views.<br />

10. We want to create a new data view. Click the New Data View tab at the top of the<br />

right-h<strong>and</strong> screen.<br />

11. Fill out the fields as below:<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 4


LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Only the atomic data types<br />

of BOOL, SINT, INT,<br />

DINT, REAL <strong>and</strong><br />

STRING can be displayed<br />

in a Data View<br />

12. Click the Add button to add the tag to the new data view.<br />

13. Click the Create View button to create the data view. (Note: A data view may<br />

contain more than one tag of various types.)<br />

14. Once the data view is created, we see a list of all the data views. Click the<br />

My_View.xml link under “View Filename” to see the data view you just created.<br />

Notice that an error is displayed where the tag’s value should be. The <strong>EWEB</strong> module<br />

data views can not retrieve data directly from I/O. If we wish to access this data, we<br />

must reference the data through an alias tag in the controller.<br />

15. Click on the Data Views tab <strong>and</strong> then click the Edit button for your data view.<br />

s<br />

16. Click the Edit button for the tag we created.<br />

17. Once the view enters edit mode, change the Tag Name to “DI12_to_IB16D.”<br />

18. Click the Update button followed by the Save View button.<br />

Page 5<br />

The <strong>EWEB</strong> data<br />

views cannot read<br />

directly from I/O.


19. Click the My_View.xml link under “View Filename” to see the updated data view.<br />

20. The current value of the DI12 switch on your demo case should be displayed.<br />

21. Flip the DI12 switch <strong>and</strong> then click the Update button. You will see the updated<br />

value in the value field.<br />

22. Data views can also be used to write values to tags. Click the Data Views tab.<br />

23. Click the HOTT_Lab.xml link.<br />

24. Click the Value field for the acknowledge_1 tag. Type in the opposite value<br />

(‘FALSE’ if ‘TRUE’) <strong>and</strong> click the Update button.<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 6<br />

True, T or 1 all work for “True”;<br />

False, F or 0 all work for “False”


Different Data Views can act as different Custom Data Monitors that Acme or their<br />

customers can use from anywhere, without needing programming software on their<br />

computer. At some point, programming software might be required to troubleshoot<br />

further, but a well designed Data View can be a great troubleshooting assistant.<br />

Sending Emails Through the <strong>Web</strong> Interface<br />

25. Click Administrative Settings � Device Configuration � Email Configuration.<br />

26. Obtain the SMTP <strong>Server</strong> IP address from the instructor.<br />

27. Uncheck SMTP Authentication, as our <strong>Rockwell</strong> SMTP <strong>Server</strong> does not require it.<br />

SMTP Authentication is usually used with servers on the internet, so only authorized<br />

users are allowed to "relay" mail through them. In this case, the ability to use the<br />

server successfully is based on authentication, <strong>and</strong> not at all on IP address. The idea is<br />

to prevent spammers from using any old email server on the internet to send more<br />

Viagra ads to unsuspecting folks. Edit this tab as indicated by the image below:<br />

28. Click Apply Changes.<br />

29. Click Send an Email, the last selection on the left-h<strong>and</strong> side.<br />

30. Fill the form out as shown below <strong>and</strong> click Send. Currently, the CompactLogix L35E<br />

is the only other controller that can send Emails directly. Other controllers can do it<br />

through a NET-ENI. This email page st<strong>and</strong>s as a good way of communicating with<br />

the OEM.<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 7


Sending Controller Generated Emails<br />

The email interface used in the previous section is great for testing the mail server <strong>and</strong><br />

may, from time to time, prevent a user from having to open a separate email client.<br />

However, the greatest benefit of the embedded email client is that it allows our control<br />

system to send email messages.<br />

31. Open the AcmeControl file in RSLogix 5000 <strong>and</strong> make sure that you are Offline.<br />

32. On the left side of the screen, right click the Data Types folder <strong>and</strong> select New<br />

String Type.<br />

The default STRING type in RSLogix 5000 is only 82 characters. Since our email<br />

messages will likely be larger than 82 characters, we need to create a larger string type.<br />

In addition, CIP messaging can support email messages of up to 474 characters.<br />

33. Edit the dialog as indicated by the image below <strong>and</strong> click OK.<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 8


34. You must now create three tags:<br />

• Create a tag of the string type that you created <strong>and</strong> call the string email_text. In<br />

the string browser, edit the string according to the image below.<br />

• Create another tag of the string type that you created <strong>and</strong> call it email_status.<br />

• Create a MESSAGE tag <strong>and</strong> call it email_message.<br />

The first tag you created holds the email message that you are going to send. The second<br />

tag will hold a status message from the controller, <strong>and</strong> the third is used by the MESSAGE<br />

instruction to manage the message transmission.<br />

35. Go to the MainRoutine <strong>and</strong> edit the logic until it looks like the image below.<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 9


36. Open the Message Configuration dialog by clicking the button on the MSG<br />

instruction you just created.<br />

37. Edit the Configuration tab as indicated by the image below.<br />

38. On the Communication tab, enter the Path to your <strong>EWEB</strong> module <strong>and</strong> click OK.<br />

39. Download the program to the controller <strong>and</strong> Go Online.<br />

40. In the demo box, make sure that your DI12 switch is turned to the right. The button<br />

labeled DI18/DO2 should be illuminated.<br />

The illuminated button signifies that you will be able to send your email message by<br />

pressing the button.<br />

41. Press the illuminated button.<br />

42. Your message will be sent, so deactivate the message-sending capability by turning<br />

your DI12 switch to the left. Check with your instructor to confirm that message has<br />

been sent.<br />

Modifying <strong>and</strong> Downloading <strong>Web</strong> Pages<br />

43. The first step is to enable FTP.<br />

• In the links on the left-h<strong>and</strong> side, click Administrative Settings �<br />

Device Configuration � Device Services.<br />

• Click the Enabled checkbox for the FTP Service.<br />

• Click the Apply Changes button.<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 10


44. In the browser’s address bar, type “ftp://administrator@10.88.89.2xx”, using the IP<br />

address for your <strong>EWEB</strong> module.<br />

If you exclude the “administrator@” portion of the URL you just entered, you would be<br />

prompted to enter a user name <strong>and</strong> password. Again, the user name is “administrator”<br />

with no password. Notice from the <strong>EWEB</strong> User Manual:<br />

FTP st<strong>and</strong>s for File Transport Protocol. Its purpose manage files on a remote server.<br />

45. On the desktop, double click the AU 2004 folder � double click the <strong>EWEB</strong> folder�<br />

double click the GetAndPostPage folder.<br />

46. Press CTRL-A to select all � Press CTRL-C to copy.<br />

47. Go back to the Internet Explorer being used for FTP. Press CTRL-V to paste the<br />

files, transferring them to the <strong>EWEB</strong>.<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 11


48. Refresh the browser.<br />

The web browser caches pages/folders that you have viewed in the computer’s memory.<br />

To ensure that your view is up-to-date, you should refresh the browser window.<br />

49. For security purposes we need to disable FTP on the <strong>EWEB</strong>. On the <strong>EWEB</strong> home<br />

page in Internet Explorer navigate to Administrative Settings� Device<br />

Configuration� Device Services <strong>and</strong> click the FTP enabled checkbox to turn off<br />

FTP. Click the Apply Changes button.<br />

50. Let’s look at the web page we downloaded: Type<br />

“10.88.89.2xx/user/web/index.html” using the IP address for your <strong>EWEB</strong> module.<br />

Note: All user downloaded files are displayed on the web in the /user/web<br />

folder.<br />

51. Using RSLogix 5000 � Controller Tags, edit the values of the tags displayed on the<br />

web page. Notice that the values update as soon as the browser refreshes, but that the<br />

screen doesn’t blink each time.<br />

52. Type a new value into the blank field on the right-h<strong>and</strong> screen (post.html). Click the<br />

Set tag button <strong>and</strong> notice that the value updates on the left-h<strong>and</strong> screen (get.asp) <strong>and</strong><br />

in RSLogix 5000.<br />

Backup <strong>and</strong> Restore <strong>Web</strong> Pages <strong>and</strong> Data Views<br />

There are several items that are stored on the web server module that you might want<br />

to archive in a backup copy:<br />

• User accounts <strong>and</strong> passwords<br />

• Data views<br />

• Custom web pages<br />

Furthermore, Acme may wish to create the same <strong>EWEB</strong> module over <strong>and</strong> over again,<br />

without having to start from scratch. Using backup <strong>and</strong> restore, Acme can easily<br />

copy one setup configuration to many modules.<br />

Backup the <strong>EWEB</strong>’s files:<br />

53. Right click on the Desktop <strong>and</strong> click New�Folder.<br />

54. Name the folder “<strong>EWEB</strong> Backup”.<br />

55. Enable FTP: Administrative Settings � Device Configuration � Device Services<br />

� check FTP Enable checkbox�Apply Changes.<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 12


56. We want to prevent a third party from making changes to the <strong>EWEB</strong> while we<br />

backup or restore, so we must lock the module. Administrative Settings � <strong>Server</strong><br />

Management � Backup/Restore. Click the Lock Site button.<br />

57. Click OK to the warning.<br />

58. As we did earlier in the lab, type “ftp://administrator@10.88.89.2xx” in the address<br />

bar of the browser. You may need to refresh the browser.<br />

59. Press Ctrl + A to highlight both the System <strong>and</strong> <strong>Web</strong> folders.<br />

60. Drag both of these folders <strong>and</strong> drop them into the “<strong>EWEB</strong> backup” folder on your<br />

desktop.<br />

61. Open the <strong>EWEB</strong> backup folder�open the system folder�open the configuration<br />

folder.<br />

62. Right click on network.xml <strong>and</strong> open it with Notepad. Notice that the IP address,<br />

subnet, etc. for the <strong>EWEB</strong> module is stored here. Information in any of the files in the<br />

configuration folder can be modified. So, for Acme’s next job, they could modify<br />

these files all offline, in order to:<br />

• Set the <strong>EWEB</strong> to a different home page,<br />

• Change the IP address,<br />

• Set the Email Config to their customer’s internal Email <strong>Server</strong>, Etc.<br />

Be very careful modifying these files in the Config folder, things can get really<br />

messed up if these settings are modified incorrectly! Don’t mess around in here<br />

unless you have to.<br />

Acme can modify these backed up files in order to create custom <strong>EWEB</strong> applications<br />

using only Wordpad, Notepad, FrontPage, Visual Studio or some other design tool.<br />

These folders can then be copied to any <strong>EWEB</strong> module. But again, be careful.<br />

In order to restore, just move the selected files to their appropriate folders in the<br />

<strong>EWEB</strong> through ftp.<br />

63. Return to the other Internet Explorer <strong>and</strong> unlock the <strong>EWEB</strong> module by pushing the<br />

Unlock Site button.<br />

Using graphics <strong>and</strong> other resources in a web page<br />

Your customer might wish to take advantage to the web’s ability to present graphics.<br />

We will download a graphics based web page.<br />

Follow these steps to download a (previously written) graphics based web page:<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 13


64. Use Internet Explorer to get FTP access to the module as we did earlier in the lab.<br />

• Delete the get.asp, index.html, <strong>and</strong> post.html files from the <strong>EWEB</strong>.<br />

• Copy all of the files from the AU2004� <strong>EWEB</strong>� enip-livedata folder to the<br />

<strong>EWEB</strong>.<br />

By default, browsing to the IP address of your <strong>EWEB</strong> module causes the system’s<br />

index.html page to load. Let’s change this behavior so that our new index.html page<br />

loads instead.<br />

65. Use Internet Explorer to navigate to the <strong>EWEB</strong> home page.<br />

66. Open Administrative Settings-><strong>Server</strong> Management-><strong>Server</strong> Settings.<br />

67. Edit the page until it looks like the image below, then click Apply Changes:<br />

When you change the <strong>EWEB</strong>’s home page, you must enter<br />

“http://10.88.89.2xx/index.html” in the address bar in order to get to the original<br />

home page.<br />

68. Let’s look at the web page we downloaded: Type<br />

“10.88.89.2xx/user/web/index.html” using the IP address for your <strong>EWEB</strong> module.<br />

This should have caused you to navigate directly to our new home page. The animated<br />

graphics are attached to the tags motor1 <strong>and</strong> motor2. They stop when the respective<br />

value is 0 <strong>and</strong> go when the value is non-zero. The lights are attached to the tag switches.<br />

A value of 1 for a bit turns the light green while a value of 0 turns the light red.<br />

This page uses jpg <strong>and</strong> gif files to present graphics <strong>and</strong> animation. The advantage is that<br />

they are simple to use <strong>and</strong> maintain <strong>and</strong> do not require the browser to download any<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 14


additional software to view (unlike Flash files, which require the browser to download<br />

<strong>and</strong> install plug-in software). The images do not have to be located on the <strong>EWEB</strong>, either.<br />

Since we only have 6 MB of memory on the module, we can save space by storing<br />

graphics <strong>and</strong> other large files on company servers or other computers. You should notice<br />

that the background image for this file was loaded from a website on the internet. This<br />

means our applications can be as big as the internet!<br />

In the next steps we are going to tweak one of the files we just loaded to replace the<br />

current background image <strong>and</strong> add a factory view camera to the application.<br />

69. Open the AU2004�<strong>EWEB</strong>� enip-livedata folder.<br />

70. Right click the main.html file�Select Open With�Select Word Pad.<br />

In HTML, the strings “” are the open comment string <strong>and</strong> the close<br />

comment string, respectively. We are going to uncomment one line <strong>and</strong> comment<br />

another.<br />

71. Scroll to the line of code after the line “”.<br />

72. As indicated in the image above, highlight the open comment () <strong>and</strong> drag it to the end of the next line.<br />

74. Press Ctrl + S to save the changes. This will cause a different background to load<br />

when we open the page in our web browser.<br />

75. Scroll down to the line labeled “”.<br />

A few lines below the cameraTag comment, you should see the word APPLET. The<br />

camera image is loaded directly from the camera to the web browser using a java applet.<br />

So again, we can load applications <strong>and</strong> other resources from the internet/intranet, <strong>and</strong><br />

reserve module memory for our ASP/HTML code <strong>and</strong> our data views.<br />

76. Delete the lines indicated by the following image.<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 15


77. Save the file as we did earlier, <strong>and</strong> close WordPad.<br />

78. As we did earlier in the lab, move the main.html file to the <strong>EWEB</strong> using FTP.<br />

79. Use the <strong>EWEB</strong>’s IP address to navigate to our homepage using Internet Explorer.<br />

You may need to press the browser’s refresh button to see the changes.<br />

Data Collection through XML<br />

One of the great benefits of the <strong>EWEB</strong> module is that it Queries <strong>and</strong> stores data in XML,<br />

a widely supported, platform independent file format. In this section, you will see some<br />

examples of how we can extract data from our XML data views. We will also see an<br />

example of how we can use email in our web pages.<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 16


80. Close ALL instances of Internet Explorer.<br />

You must close ALL instances of Internet Explorer in order to see the effects of the<br />

following steps!<br />

81. Open a new Internet Explorer to get FTP access to the module as we did earlier in the<br />

lab.<br />

82. Copy the UD<strong>Web</strong>.html, UDXSL.html, UDEmail.html, <strong>and</strong> lab.xsl files from the<br />

AU2004\<strong>EWEB</strong>\XML folder to the <strong>EWEB</strong>.<br />

83. Disable FTP. Administrative Settings � Device Configuration � Device Services �<br />

FTP disable checkbox.<br />

84. Click Apply Changes.<br />

85. Let’s look at the web page we downloaded in Internet Explorer: Type<br />

“10.88.89.2xx/user/web/UDXSL.html” using the IP address for your <strong>EWEB</strong><br />

module.<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

This popup appears because the<br />

web page we are loading does not<br />

have access to administrative data.<br />

You should get the error above. By default, the Data View XML files are accessible only<br />

by an administrator. There are three ways to solve this problem: Either lower the access<br />

restriction on the Data View, increase the access restriction on the html file, or do both.<br />

Eliminating all restrictions to the Data View will allow our page to load correctly, but<br />

anyone who can access the IP address of the <strong>EWEB</strong> module would have access to read,<br />

<strong>and</strong> perhaps write to the Data View. If, instead, we were to increase the access restriction<br />

on the HTML file to that of administrator, the user would be prompted to log in whenever<br />

they try to access the HTML file. This protects our Data View, but it limits the number<br />

of users who can use your page. However, we are going to reduce the access restriction<br />

on the Data View to write access <strong>and</strong> increase the access restriction on the HTML file to<br />

the same level. This protects our Data View while giving access to those who need it.<br />

86. Go back to the <strong>EWEB</strong> Home page (10.88.89.2xx).<br />

87. Navigate to Administrative Settings � User Management � Edit Access Limits<br />

Page 17


LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Highlight <strong>and</strong> copy<br />

(Ctrl + C) the data<br />

view URL.<br />

88. Highlight the text that represents your data view.<br />

89. Copy the text: press Ctrl + C<br />

90. Paste the text into the text box labeled URL<br />

Page 18<br />

Paste the text in<br />

the URL field.<br />

91. Change the selection box labeled Group to “Write” <strong>and</strong> click the Add button.<br />

The display should now show Write under the Group With Access column for your<br />

Data View. Now, we need to apply an access restriction to the HTML file.<br />

92. Type /user/web/UDXSL.html in the URL text box.<br />

93. Change the selection box to Write <strong>and</strong> click Add.<br />

We have two other files which we would like to give access to the Data View. Let’s<br />

apply an access restriction to those files now.<br />

94. Repeat the two steps immediately above for the files /user/web/UDWEB.html <strong>and</strong><br />

/user/web/UDEmail.html.<br />

We are now prepared to view our example files.<br />

95. Close all instances of Internet Explorer.<br />

96. Reopen Internet Explorer <strong>and</strong> navigate to<br />

http://10.88.89.2xx/user/web/UDXSL.html.<br />

The table that appears has been generated using XSL. XSL st<strong>and</strong>s for Extensible Style-<br />

Sheet language. Where as XML is used to structure data, XSL is used to format <strong>and</strong><br />

display data. Like XML, XSL is a widely supported technology <strong>and</strong> because it is text-


ased, it is platform independent. Below the table are the contents of the files used to<br />

generate this table.<br />

Next we will see the same table generated using a different technology.<br />

97. Navigate to http://10.88.89.2xx/user/web/UD<strong>Web</strong>.html.<br />

On the surface, seeing the same table recreated over <strong>and</strong> over again isn’t exciting; but this<br />

example illustrates how another technology can be used to access our Data Views. This<br />

example uses a Microsoft ActiveX Object <strong>and</strong> JavaScript to parse the XML file. We<br />

could use Visual Basic to import the data into a Microsoft Office application, or we could<br />

even use <strong>and</strong> non-Microsoft solution on a non-Microsoft platform.<br />

Using XML in office 2003<br />

97a. Navigate to the dataviews <strong>and</strong> copy the shortcut to one of them (rightclick);<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 19


Open a new MS Excel file <strong>and</strong> select Data�XML�XML Source;<br />

You will get a toolbar, click on the Import XML Data icon;<br />

In the field where you can enter the filename, hit Ctrl+V to paste in the link you copied<br />

from the dataviews page.<br />

You will be required to log in to get the data <strong>and</strong> select the cell where you want to paste.<br />

After this, you have controller data direct from the <strong>EWEB</strong> in your Excel sheet.<br />

This option makes it extremely easy to paste production data into a report, for example<br />

after each plant shift.<br />

We’ll wrap up this section by demonstrating some of the Email capabilities of the<br />

module.<br />

98. Navigate to http://10.88.89.2xx/user/web/UDEmail.html.<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 20


In this example, we will send data directly to our instructor using email.<br />

99. Enter your name where indicated on the web page.<br />

100. Click on the button labeled See message you are going to send.<br />

A dialog box will appear containing the text of the message we want to send to our the<br />

instructor. It contains all of the text from the XML Data View file.<br />

101. Click OK.<br />

102. Click the button labeled Send to Instructor.<br />

Email messages sent through the <strong>EWEB</strong> module are limited to 476 characters. This is<br />

due to some limitations placed on the system by the size of CIP messaging packets.<br />

Since our message is too long, we need to shrink it down.<br />

103. Click OK.<br />

104. Click the button labeled Insert small message.<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 21


105. Click the See message you are going to send button again <strong>and</strong> make sure that a<br />

smaller message is displayed in the popup.<br />

106. Click OK.<br />

107. Click the Send to Instructor button.<br />

108. Click OK on the dialog that confirms the message has been sent. Your message<br />

should arrive in your instructor’s inbox momentarily.<br />

Why the <strong>EWEB</strong> does not replace the PanelView Plus<br />

• The <strong>EWEB</strong> is a single threaded <strong>Web</strong> server, it cannot do high speed data<br />

collection. This is intentional, so that control system performance is not<br />

compromised by the presence of the <strong>EWEB</strong>.<br />

• All the tag names have to be known in order to read or write them. All the<br />

benefits of FactoryTalk Directory Direct Tag Referencing are lost.<br />

• There is no simple HMI graphics editor that allows you to drag <strong>and</strong> drop objects<br />

onto screens. Any graphic HMI pages would have to be written as web pages.<br />

• <strong>Web</strong> pages need to be refreshed. This effect is virtually non-existent with HMIs.<br />

• There is no Alarming or Unsolicited data from the <strong>EWEB</strong>.<br />

• Data Views can access only Controller Scoped Tags, <strong>and</strong> only tags of type<br />

BOOL, SINT, INT, DINT, REAL or STRING. Custom <strong>Web</strong> pages do not have<br />

these limits.<br />

• Only 2500 tags can appear in all Data Views combined, but there is no limit to the<br />

number of Data Views or the number of tags per Data View, except for the 2500<br />

total tag limit. Custom <strong>Web</strong> pages do not have these limits.<br />

• Quick <strong>and</strong> Dirty Simple Summary: HMI: Allows you to look at lots of data<br />

locally. <strong>EWEB</strong>: Allows you to look at a limited amount of data from anywhere.<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 22


<strong>EWEB</strong> Performance, <strong>EWEB</strong> Effect on System Performance<br />

The following table has been taken from the <strong>EWEB</strong> User Manual.<br />

Extra Task:<br />

When a Data View is edited or created from within the <strong>EWEB</strong>’s default home page, the<br />

only tags that can be accessed are of type BOOL, SINT, INT, DINT, REAL <strong>and</strong> STRING<br />

residing in controllers in the local chassis. There is also a limit of 2500 tags in all Data<br />

Views. However, when <strong>Web</strong> pages are created, these limitations do not exist. Your<br />

mission is to create a project in your FlexLogix controller <strong>and</strong> have your <strong>EWEB</strong> retrieve<br />

data from that FlexLogix controller. Modify the get.asp file by changing the path of<br />

ReadLogixTag.<br />

LAB 1: <strong>1756</strong>-<strong>EWEB</strong> <strong>Module</strong><br />

Page 23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!