WAGO 750 Series Manual page 182

Linux fieldbus coupler
Hide thumbs Also See for 750 Series:
Table of Contents

Advertisement

178 •
Application Examples
Example Program for a CGI Application
In the source code files, the web.c file only serves to connect code files. The
actual functionality is in the file that has the same name as its symbolic call.
The func.c file contains general functions.
Source code description: *.html
The above-mentioned HTML pages contain the general web page layout of the
WAGO internet pages. The Index.html file divides the web page into three
sections: one part for the headline, one part for the left selection menu and one
for the dynamic part in the middle.
The headline of the page is stored in the upperframe.html file, the menu is
stored in the menuframe.html file.
In order to load the status page, the Index.html file executes the CGI call as
dynamic part.
Source code description: web.c
The name of the symbolic call is analyzed in the web.c file and the appropriate
function is called.
Source code description: info.c
The status page of the Linux fieldbus coupler is generated in the info.c file.
The file includes four functions:
The static HTML code is stored in the string
dynamic values "%s" being replaced by variable values directly in the
command.
The function
sector, which, in this file, is the MAC address.
The function
from the table of the Linux fieldbus coupler. In this example, these are device
description, item number, firmware version and serial number.
read_envvar()
read_BKTable()
read_IP()
main_info()
read_envvar()
read_BKTable()
pucHtmlEthernet[]
reads values from the highest flash memory
reads firmware loader (FWL) or u-boot values
, the
printf
WAGO-I/O-SYSTEM 750
Linux Fieldbus Coupler

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

750-860

Table of Contents