Rockwell Automation 1768-EWEB EtherNet/IP Web Server Module User Manual User Manual

Page 109

Advertising
background image

Publication ENET-UM527E-EN-P - October 2006

Create Custom Web Pages 109

The following example page displays a DINT tag from a controller
and lets you update the tag with a Submit button.

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<script language="JavaScript">

</script>

</head>

<body >

<form action="/rokform/WriteLogixTags" method="POST">

TEST:

<input type="hidden"

name="redirect

"value="/user/Web/writeOneTag.asp">

<input type="hidden"

name="numtags"

value="1">

<input type="hidden"

name="t_1_tagname"

value="TEST">

<input type="hidden"

name="t_1_slot"

value="1">

<input type="hidden"

name="t_1_type"

value="DINT">

<input type="hidden"

name="t_1_display"

value="Decimal">

<input type="hidden"

name="t_1_changed"

value="1">

<input type="hidden"

name="t_1_value"

value="0">

<!--Read the current tag value -->

<font

color=<%ReadLogixTag("1,1","test_tag_string","STRING");%>><%ReadLogixTag("1,1","TEST

","DINT");%></font>

<input type="submit" name="submit

"value="Clear Alarms">

</form>

</body>

</html>

Advertising
This manual is related to the following products: