168 •
Application Examples
LED Indication Example
The kernel module ledman serves to easily access the free LEDs from a user
program. In order to illustrate the driver interface, the Linux coupler
incorporates the leds example program that allows to changes to the state of
the LEDs via the Linux console.
The program is called directly via the console and has the following HELP
page:
Usage: ./leds OPTION [LEDNAME] [OPTION] [LEDNAME] ...
WAGO LED SERVER.
OPTION:
Proprietary. Send bug reports to support@wago.com
Different OPTIONS/commands can be sent to the LEDs via the example
program. The LEDs can be turned on or off or they can blink.
Each OPTION requires an LEDNAME in order to define to which LED the
OPTION/function is applied.
-n, --on
Switch LED on
-o, --off
Switch LED off
-f, --flash
-h, --help
Print this message.
LEDNAME:
sr
Status LED 1 (red)
sg
Status LED 1 (green)
er
Service LED 2 (red)
eg
Service LED 2 (green)
ur
ug
a
Switch LED to flashing Mode
User LED (red)
User LED (green)
All LEDs
WAGO-I/O-SYSTEM 750
Linux Fieldbus Coupler