168 •
Application Examples
LED Indication Example
WAGO-I/O-SYSTEM
750
Linux Fieldbus Coupler
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:
-n, --on
Switch LED on
-o, --off
Switch LED off
-f, --flash
Switch LED to flashing Mode
-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
User LED (red)
ug
User LED (green)
a
All LEDs
Proprietary. Send bug reports to [email protected]
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.