In this full hands-on tutorial, I show you how to wire, configure, and program a Pepperl+Fuchs ultrasonic sensor with a Siemens S7-1200 PLC inside TIA Portal.
Here’s what you’ll learn in this video:
• Unboxing the Pepperl+Fuchs ultrasonic sensor
• Understanding the sensor’s dead band (0–70 mm) and working range (70–1000 mm)
• Reviewing the datasheet: sensing range, adjustment range, modes, sync pin, and teach input
• Wiring the analog output (4–20 mA) correctly to the S7-1200 analog input
• Power wiring (brown → +24V, blue → 0V)
• Function of the black wire (analog output), white wire (teach), and gray wire (sync)
• How the sensor behaves when detecting objects at different distances
• Setting up the PLC analog channel and reading real-time values in TIA Portal
This tutorial is perfect for anyone working with industrial sensors, automation projects, or Siemens PLCs — clear, practical, and beginner-friendly.