Update control system data – Rockwell Automation 1768-EWEB EtherNet/IP Web Server Module User Manual User Manual

Page 96

Advertising
background image

Publication ENET-UM527E-EN-P - October 2006

96 Create Custom Web Pages

While the value returned by specifying the “STRING” data type may
not be very useful to display in the browser by itself, some built-in
Javascript libraries help the ASP developer parse and use the
information contained in these string structures. See page 98 for more
information on the Javascript libraries.

Function:

CIPMessageUnconnected(path, service, class,

instance, attribute, member, data, returntype)

The CIPMessageUnconnected function performs the same task as
the CIPMessage function and expects exactly the same
parameters. This function, however, performs the specified service
through unconnected messaging, rather than connected messaging.

Update Control System Data

You can use the CIPMessage and CIPMessageUnconnected
functions to perform any CIP service, such as a
SET_ATTRIBUTE_SINGLE, RESET, or any other type of write or update
service to an object or object instance. However, since ASP pages are
parsed and executed server-side, it is impossible to send any dynamic
data to these services.

As an example, consider a page which performs a reset to the identity
object of a device in slot 1, then immediately redirects the browser to
the main user page.

<HTML>

<HEAD>

<% CIPMessageUnconnected("1,1", 5, 1, 1, 0, 0, "",

"STRING"); %>

<META HTTP-EQUIV="refresh"

content="0;URL=/user/index.html">

</HEAD>

<BODY></BODY>

</HTML>

Advertising
This manual is related to the following products: