168
1 FUNCTIONS
1.12 Web Server Function
■Application example
An example for writing a value by using the device write CGI is shown below.
• Display of HTML
• HTML example
(1) Set DEV1.
(2) Set TYP1.
(3) Set VAL1.
(4) Click it to call the WriteDeviceBlockTbl function of JavaScript. (Set the table ID, the line number where the write starts, and the number of write points 1 for
the arguments.)
<form id="devform" name="readdev" method="post">
<table id="devtbl" class="devtbl" border="1">
<tr>
<th>Device Name</th><th>Data Type</th><th>Value</th>
</tr>
<tbody>
<tr>
<td><input type="text" id="DEV1" name=" DEV1" class="input"value='D10'/ ></td>
<td><input type="text" id="TYP1" name=" TYP1" class="input"value='32-bit Integer'/ ></td>
<td><input type="text" id="DATA1" name=" DATA1" class="input"value='3'/></td>
</tbody>
</table>
<input type="button" value="Write" class="input" onclick=" WriteDeviceBlockTbl(devtbl,1,1)"/>
</form>