DF PROFINET IO | Getting Started - Linux Driver Example
This Linux Driver is compatible with 32 Bit and 64 Bit OS.
Instructions
To compile and run the linux driver, simply follow the steps shown in the Readme file.
The following steps shoud be taken for a 64 Bit OS
Open a terminal
Navigate to your extracted Linux Driver filepath
Move to kernelmod
”cd kernelmod
”(opt.) You need to reinstall/update c++ compiler
”sudo apt-get update && sudo apt-get install build-essential
”Make the compile bash script executable
“chmod +x dfprofinet.sh
”Start the PN card (this step is necessary at reboot)
”sudo ./dfprofinet.sh start
”Now the Profinet Card should be shown in the response of
dmesg
(in bolt letters) with the MAJOR-No. displayed in the last line of the previous step.
e.g: DFPROFINET IO driver df_profinet found with MAJOR=240Install Libraries on 64 Bit system from parent directory (this step will differ on a 32 Bit OS - further information in README.txt)
”sudo cp lib/32bit/libdfpnio.so /usr/lib32
”
”sudo cp lib/64bit/libdfpnio.so /usr/lib
”Compile the example from parent directory
”cd example_controller
”
”make
”
”./Basic_Profinet_Example
”Please follow the instructions in the application
How to setup a communication between controller and devices:
Open Confiugrator III in Windows.
Create a new configuration regarding to your controller device hardware setup
Download the configuration to your controller
Change to Linux to run the Linux Driver Example
Help
For further help, please check out the DF PROFINET IO | FAQ
Compatibility
Of course, the driver is not checked for every single new kernel version. That would be very time-consuming and is disproportionate for basic accesses. However, it was tested for kernel versions:
3.xx
4.16.x
5.04.x
5.08.x
5.11.x