Example: data view xml – Rockwell Automation 1768-EWEB EtherNet/IP Web Server Module User Manual User Manual

Page 64

Advertising
background image

Publication ENET-UM527E-EN-P - October 2006

64 Use Data Views to Access Controller Data

If all the modified tags are successfully written, the web server module
redirects the application to the newly modified data view. If any tag
cannot be written to the controller, the web server module returns an
HTTP error code with a status message indicating the error.

Example: Data View XML

This is an example XML markup for a data view named alltypes. The
data view contains one tag for each of the supported data types. The
tags are in the controller residing in slot 1.

<?xml version="1.0"?>

<?xml-stylesheet href="/dataview/dataview.xsl" type="text/xsl"?>

<view

xmlns="http://www.rockwellautomation.com/technologies/data_access/data_views/1.0/"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.rockwellautomation.com/technologies/data_access/data_

views/1.0/ /schema/dataview.xsd"

xmlns:cip="http://www.rockwellautomation.com/technologies/data_access/data_types/1.0

/" name="alltypes" description="">

<tag name="test_tag_bool" valueType="cip:dt_BOOL" path="1,1" display="String"

access="write">

<value xsi:nil="true"/>

</tag>

<tag name="test_tag_sint" valueType="cip:dt_SINT" path="1,1" display="Decimal"

access="write">

<value xsi:nil="true"/>

</tag>

<tag name="test_tag_int" valueType="cip:dt_INT" path="1,1" display="Decimal"

access="write">

<value xsi:nil="true"/>

</tag>

<tag name="test_tag_dint" valueType="cip:dt_DINT" path="1,1" display="Decimal"

access="write">

<value xsi:nil="true"/>

</tag>

<tag name="test_tag_real" valueType="cip:dt_REAL" path="1,1" display="Decimal"

access="write">

<value xsi:nil="true"/>

</tag>

<tag name="test_tag_string" valueType="cip:dt_STRINGI" path="1,1"

display="String" access="write">

<value xsi:nil="true"/>

</tag>

</view>

Advertising
This manual is related to the following products: