EasyManuals Logo

WAGO 750 Series User Manual

WAGO 750 Series
248 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #135 background imageLoading...
Page #135 background image
Process Image • 131
Internal Bus Driver (kbus.ko)
WAGO-I/O-SYSTEM 750
Linux Fieldbus Coupler
6.5 Internal Bus Driver (kbus.ko)
The internal bus driver kbus is a char device driver. It is therefore possible to
access the connected I/O modules using the standard device interface. The
driver is started automatically via the /etc/startwago file when the Linux
fieldbus controller is started.
In order not to have to create definitions manually, the header file kbusapi.h
can be used in its own program. Functions that are additionally available in the
file (e.g., KbusUpdate) are no longer required and only included for
compatibility reasons.
Note:
The file kbusapi.h provides several macros that make it easier to access the
process image, however, they are not essential.
It may be beneficial to customize structures with meaningful names taken
from the control process.
Source code files:
~/uclinux-dist/user/kbusapi/kbusapi.h
Driver/Kernel module: kbus.ko (internal bus support)
Function Description
The internal bus driver can be used with the following functions:
open(„/dev/kbus“, O_WRONLY)
Opens the kbus driver.
ioctl(iFD, IOCTL_KBUSUPDATE, &ulTmp)
Writes the modified data of the output process image to the modules and
simultaneously reads the current data of the input modules back in.
ioctl(iFD, IOCTL_GETBINOUTPUTOFFSET, &ulOutputOffset)
Reads out the
Offset value. The first digital output module in the output
process image has the Offset value. It is therefore easier to access the
digital I/O modules.
ioctl(iFD, IOCTL_GETBININPUTOFFSET, &ulInputOffset)
Reads out the Offset value. The first digital input module in the input
process image has the Offset value. It is therefore easier to access the
digital I/O modules.

Table of Contents

Other manuals for WAGO 750 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the WAGO 750 Series and is the answer not in the manual?

WAGO 750 Series Specifications

General IconGeneral
Protection ClassIP20
Bus CouplersPROFIBUS, CANopen, Ethernet
ModulesDigital Input, Digital Output, Analog Input, Analog Output
MountingDIN rail mounting
Voltage Supply24 V DC (typical)
Communication ProtocolDepends on the bus coupler (e.g., PROFIBUS, CANopen, DeviceNet, Ethernet)
Digital Input ChannelsVaries by module (e.g., 8, 16 channels)
Digital Output ChannelsVaries by module (e.g., 8, 16 channels)
Analog Input ChannelsVaries by module (e.g., 2, 4, 8 channels)
Analog Output Channels1, 2, 4 channels (depending on module)
Width12 mm, 24 mm (typical module widths)
Number of ChannelsVaries by module type
Current Consumption per ChannelVaries by module type

Related product manuals