Example Kbusdemo - WAGO 750 Series Manual

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

Advertisement

8.2 Example kbusdemo

Program name: kbusdemo
Installation directory: /bin/kbusdemo
Source code files:
~/uclinux-dist/user/wagokbusdemo/kbusdemo.h
~/uclinux-dist/user/wagokbusdemo/kbusdemo.c
~/uclinux-dist/user/wagokbusdemo/kbusapi.h
~/uclinux-dist/user/wagokbusdemo/kbusapi.c
Driver/Kernel module: kbus.o (internal bus support)
Function description
This example program can read the state of the input modules. It is
furthermore possible to set or to clear bits of the output modules. The data is
addressed via byte addresses. Writing data multiple bytes of data is not
possible in this example. However, this feature could be added in the source
code with little effort.
The dynamic loadable module "kbus.o" is used for the internal bus support.
In addtition, kbusapi is used which makes it easier to access the internal bus
module. This API (Application Interface) is added to the program during
compilation and linking. The API interfaces are also described in this chapter.
The dynamic loadable module kbus.o serves to access the connected modules
from a user program environment. In order to illustrate the driver interface, the
Linux coupler incorporates the kbusdemo example program. This program can
read or write the state/data of the internal bus via the Linux console.
WAGO-I/O-SYSTEM 750
Linux Fieldbus Coupler
Application Examples • 171
Example kbusdemo

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

750-860

Table of Contents