Application Examples • 181
Example Program for a CGI Application
WAGO-I/O-SYSTEM 750
Linux Fieldbus Coupler
Source code description:
kernelmsg.c
The
kernelmsg.c
file displays the kernel messages on the screen. The file
inludes the function
main_kernelmsg()
main_kernelmsg()
reads the kernel message ring buffer and displays the data
on the screen.
Source code description:
eeprom.c
The
eeprom.c
file displays the EEPROM messages on the screen. The file
inludes the function
main_eeprom().
main_eeprom()
reads the
/dev/eeprom
device file and displays the data on the
screen in a table.
Source code description:
config.c
The
config.c
file displays the IO modules (sorted by type) that are connected
to the Linux fieldbus coupler on the screen.
The file inludes the functions:
•
printStandard()
•
printAnalogOutput()
•
printAnalogInput()
•
printDigitalOutput()
•
printDigitalInput()
•
printSpecial()
•
main_config()
The
printStandard()
function outputs the standard parameters of an IO
module (type, slot number etc.).
The
printAnalogOutput()
or
Input()
function displays the special
parameters of the individual analog modules separately in pop-up tables.