Action="/rokform/writelogixtags – Rockwell Automation 1768-EWEB EtherNet/IP Web Server Module User Manual User Manual

Page 108

Advertising
background image

Publication ENET-UM527E-EN-P - October 2006

108 Create Custom Web Pages

ACTION="/rokform/WriteLogixTags"

This method is a web POST form handler that requires Administrator
access. With the correct access level, a user can access and post to any
tag in the controller, not just tags in a data view. You can lower the
access restriction, but this opens access to all controller data to more
users.

The form must include the following hidden inputs.

For each controller tag, define these input fields (where “@”
represents the index of the tag on the page, for example, “1” for the
first tag, “2” for the second).

Hidden Input

Description

“redirect”

An URL where the browser should be redirected after the tag values have been written.
Usually equal to the URL of the current page.

“numtags”

The total number of controller tags on the page.

Input

Description

“t_@_tagname”

(Hidden) The name of the controller tag to be updated. Should be the same as the name
used in a data view, or in a call to ReadLogixTag.

“t_@_slot”

(Hidden) The slot number of the controller containing the tag to be written.

“t_@_type”

(Hidden) The data type of the tag to be written. Should be one of the types defined in
“/schema/CIPDataTypes.xsd” on the web server module (for example, “DINT”).

“t_@_display”

(Hidden) The display format of the tag to be written. Should be “Decimal”, “Hexadecimal”,
“Octal”, “Binary”, or “String”.

Both ReadLogixTagand ReadLogixTagUnconnected return numbers in
decimal format. Unless you convert these numbers into another format, use “Decimal” for
these values.

“t_@_changed”

(Hidden) A “0” or a “1” to indicate whether or not the value has been changed from its
time of display. This can either be statically set to “1” or you can update this variable
when the data field changes to indicate to the web server module that the value should be
written to the controller.

“t_@_value”

(Text) The data value to be written to the controller tag.

Advertising
This manual is related to the following products: