Ethernet
Webserver
- Up to 3 webservers per unit, thereby hidden accesses for configuration etc. can be realised better.
- mCAT server pages for direct I/O integration into HTML-Sites
- CGI-functions address mCAT-Tasks
The easiest way to get in contact with ethernode! Create web sites with a standard program and insert "msp"-commands to access directly the I/O. A support program creates a download pak (Hex-Datei) by HTML and pictures for the flash on ethernode.
The following easy MSP-example shows that it does not cost much effort to create a small control function:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta HTTP-EQUIV="Refresh" CONTENT="5"><!-- The browser reloads the site every 5 minutes -->
</head>
@@xio.vecin(%xio.CPU, 6) <!-- read in from the CPU-modul 6: EventCNT -->
<table border="1">
<--! request the length of the read-in actor-->
<tr><th colspan="@@paste([?])">@@paste([?]) event counter available </th></tr>
<--! numeration of the inputs, internal denotation (0,1, ..) + one (1,2, ..)-->
<tr> @@foreach
<td>@@paste(@int.add(@paste(%mtl.for), 1))</td>
@@endfor </tr>
<tr> @@foreach <td><font
@@if(@int.ge([%mtl.for], 1000), 1)
@@paste('color="#FF0000"')>
@@else
@@endif
@@paste([%mtl.for])</font></td> <!--show reading-->
@@endfor</tr>
</table>
</html>
At first the program requests the number of readers and then displays them in a chart with related reading. This one is displayed red if it is larger than 1000. The result can look for example like this:
| 2 reader available | |
|---|---|
| 1 | 2 |
| 1018 | 713 |
You can find one more example in a small tutorial for the programming of own extensions:
HTTP_Tutorial.pdf
HTTP_Tutorial-Quelltexte.zip


