element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum PNBC006 WENGLOR DISTANCE LASER SENSOR RPi interfacing trouble
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 21 replies
  • Subscribers 288 subscribers
  • Views 3909 views
  • Users 0 members are here
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

PNBC006 WENGLOR DISTANCE LASER SENSOR RPi interfacing trouble

AZ87
AZ87 over 2 years ago

Anybody has an idea on how to read the measurements made by an industrial sensor using a raspberry pi??? I've already posted the same question somewhere in the forum but did not get any answer, so i thought Ive posted in the wrong place and here I am; first of all please don't judge me and HATE me if my question may sound ridiculous to you, i am a complete newbie to this field: i need to get the readings of this sensor through rasberry Pi and i have no clue; it is a  Wenglor PNBC006 Laser Distance Sensor and after many many days hunting on the web, i came across some documentation stating that this industrial sensor supports 2 type of connections: an M12 8pin cable AND an Ethernet cable. I figured out i can just connect it through an industrial Ethernet switch and make the communication with raspberry pi through the ETHERNET plug on it; from the official docs of Wenglor I can access the sensor settings and configuration panel through the IP address (which is provided) with a normal browser. My dilemma and biggest trouble is HOW DO I READ THE VALUES OF THE SENSOR WITH RASPBERRY PI? PLEASE HELP ME OR POIT IN THE RUGHT DIRECTION

MQNY THANKS Pray tone5

  • Sign in to reply
  • Cancel

Top Replies

  • shabaz
    shabaz over 2 years ago +1
    Hi, You've double-posted, once in "EAGLE CAD" which makes no sense. That sensor cannot interface directly to the Raspberry Pi. The sensor has an analog interface, and the Pi doesn't. You mention…
  • mp2100
    mp2100 over 2 years ago +1
    This device appears to work best with a PLC. Programable Logic Controller. The documents specifically mention Siemens PLC. Step7 or TIA Portal. The device outputs 4 to 20 mA. The industry standard for…
  • beacon_dave
    beacon_dave over 2 years ago in reply to shabaz +1
    It looks like if you connect to TCP port 3000 instead of the web server, then you can get a continuous data stream. For monitoring they appear to recommend using their wTeach software over the web…
Parents
  • shabaz
    0 shabaz over 2 years ago

    Hi,

    You've double-posted, once in "EAGLE CAD" which makes no sense.

    That sensor cannot interface directly to the Raspberry Pi. The sensor has an analog interface, and the Pi doesn't.

    You mention using Ethernet, and it has a web server, so you can open up a web browser on any PC (doesn't have to be a Raspberry Pi for your initial test, it makes no difference) and observe the sensed value, but it will likely update at a much slower rate that way, so you may be waiting forever to scan the tire width that way.

    For the analog interface (which is your only real choice if you want a practical speed) you'll need a converter, for instance this device (I've not used it): ncd.io/.../
    You'll also need to write some code or look for demo code for whichever specific 4-20 mA receiver you use, hopefully the manufacturers of those will provide you with some sample code.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • shabaz
    0 shabaz over 2 years ago

    Hi,

    You've double-posted, once in "EAGLE CAD" which makes no sense.

    That sensor cannot interface directly to the Raspberry Pi. The sensor has an analog interface, and the Pi doesn't.

    You mention using Ethernet, and it has a web server, so you can open up a web browser on any PC (doesn't have to be a Raspberry Pi for your initial test, it makes no difference) and observe the sensed value, but it will likely update at a much slower rate that way, so you may be waiting forever to scan the tire width that way.

    For the analog interface (which is your only real choice if you want a practical speed) you'll need a converter, for instance this device (I've not used it): ncd.io/.../
    You'll also need to write some code or look for demo code for whichever specific 4-20 mA receiver you use, hopefully the manufacturers of those will provide you with some sample code.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • AZ87
    0 AZ87 over 2 years ago in reply to shabaz

    Pray tone5Pray tone5Pray tone5Pray tone5 I'll try this thank you so much, i would never been able to figure this out EVER 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 2 years ago in reply to shabaz

    It looks like if you connect to TCP port 3000 instead of the web server, then you can get a continuous data stream.

    image

    image

    For monitoring they appear to recommend using their wTeach software over the web browser, which I suspect also connects over port 3000.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 2 years ago in reply to beacon_dave

    Well-spotted! I missed that.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube