Posts: 5
Joined: Wed Jun 24, 2015 9:01 pm

Raspberry Pi & IFM KQ6001

Thu Oct 22, 2015 8:51 am

Hello Guys,

For a little project of mine i want to monitor the fill level of a tank. As though by chance i knew someone who had two of those IFM KQ6001 capacitive sensors laying around.
I have a hard time understanding what exactly they are doing when they detect the fluid/"switch". There are three cables on the sensor as can be seen on that little graphic here:
Do i understand that right that the brown and the blue wire are used for energy supply (e.g. 12V) and the black one is the IO-Link.
Whereas i understand IO-Link meaning some kind of data output?
My question is now, how do i manage to read the KQ6001 sensor with a raspberry pi?

In advance thanks a lot for your help and sorry for my lack of knowledge! :)

Posts: 5
Joined: Wed Jun 24, 2015 9:01 pm

Re: Raspberry Pi & IFM KQ6001

Tue Oct 27, 2015 3:04 pm

Bump, i'd be very glad if somebody could help me :))

Posts: 1
Joined: Fri Mar 09, 2018 4:49 pm

Re: Raspberry Pi & IFM KQ6001

Fri Mar 09, 2018 4:58 pm

I Just saw this an am getting into IO Link. The point is the sensor still works as a discrete IO point (ON /OFF) on the black wire. it can supply positive logic (+L when output is on) or negative logic (-L when output is on) on the black wire. The Square box is the load (typically your input pin but could be a transistor, relay, etc).

Now with IO link that black wire becomes a communication line (which swings from +L to -L) to communicate data about the sensor including serial number, config, events, etc. you can read all the docs Be Careful with your routing of these black wires as to not have too much interference across it if using IO Link with 1 wire it is hard to imagine that there is any noise rejection capabilities but there might be.

Typically you need an IO link Master to read this data out of the sensor, but they are starting to incorporate NFC to these IO link devices to make setup much easier.

if you don't use the IO link the sensor is defaulted to it's normal (ON/OFF) state.

Posts: 84
Joined: Sat Mar 23, 2013 5:21 am

Re: Raspberry Pi & IFM KQ6001

Thu Apr 26, 2018 6:07 pm

you could to do this by using
CODESYS on Raspberry PI and Beckhoff EL6224: ( I mean using IO-Link with Raspberry Pi)
here is an example Project available: ... =30#p21201


Return to “Beginners”