language

    How to Connect Ultrasonic Sensors to a PLC: Wiring, Selection, and Calibration for 4–20 mA and 0–10 V Outputs


    Practical Guide to Connecting Ultrasonic Sensors to a PLC: Compares 4–20 mA and 0–10 V outputs, explains how to avoid blind zones, implement proper grounding and shielding, calibrate analog signals, and troubleshoot crosstalk between multiple transducers, helping engineers verify installation requirements and procurement specifications.

    Transparent films, dark rubber, and shiny liquid surfaces can easily cause transmission, weak reflection, or specular reflection issues in some optical ranging solutions. Ultrasonic sensors, which are independent of target color and transparency, are a viable option to evaluate under these conditions, though they remain affected by surface angle, target size, and air conditions.

    After connecting to the PLC, erratic readings do not necessarily indicate a probe malfunction. Blind zones, bracket reflections, input range configuration, reference potential, and inverter interference can all produce similar symptoms. During debugging, first distinguish between the sensor output, the PLC’s raw value, and the engineering unit conversion, then perform a step-by-step troubleshooting process.

     

    1. 200 kHz Ranging: Frequency, Compensation, and Measurement Boundaries

    Ultrasonic sensor A pulse is emitted, and the distance is calculated from the round-trip time of the echo. In air at 20°C, the speed of sound is approximately 343 m/s, and at 200 kHz the corresponding wavelength is about 1.7 mm.

    This frequency is suitable for many medium- and short-range industrial measurements, but resolution or blind zone cannot be determined solely from the frequency. Transducer design, transmit pulse, receiver circuitry, and processing algorithms are equally important. Moreover, the resolution specified on a product does not equate to measurement accuracy.

    What can TVG and AGC do?

    Some sensors employ time-varying gain (TVG), which increases amplification over time to enhance reception of weak echoes from distant targets; automatic gain control (AGC), on the other hand, adjusts gain based on echo amplitude.

    Both help to expand the receiver’s dynamic range, but they cannot restore a valid signal that has been severely attenuated, nor can they guarantee normal measurement under conditions of heavy dust, steam, or thick foam. Whether a specific product incorporates these features should be determined by its technical documentation.

    The Boundary of Temperature Compensation

    Near room temperature, a 10°C change in air temperature results in an approximately 1.8% change in the speed of sound. If calculations still assume a fixed speed of sound, a 1 m distance could introduce an error of about 18 mm.

    Built-in temperature compensation can reduce this type of drift, but it cannot fully compensate for temperature gradients along the entire acoustic path. When the transducer is near the exit of a curing oven, a cooling air knife, or a localized heat source, prioritize adjusting its mounting position before verifying the remaining error.

    How to choose between ultrasonic and optical distance measurement

    Operating condition Key Considerations for Model Selection
    Transparent membrane material, dark-colored rubber Ultrasound can be prioritized for assessment, but the actual echoes must be verified.
    Smooth inclined plane, curved small bottle Ultrasound may experience signal loss; test angles and target dimensions are required.
    Measurement of Micro Parts and High-Speed Profiles Typically better suited for optical solutions with small spot sizes and fast response times.
    Thick foam, loose sound-absorbing material Ultrasound may lose the signal or detect the foam surface.
    Dust, mist, condensation Both types of solutions require validation; reliability cannot be determined solely on theoretical grounds.

     

    2. 4–20 mA and 0–10 V: Select based on loop conditions

    Selection Project 4–20 mA 0–10 V
    Longer cables, strong motor interference Usually makes it easier to obtain consistent feedback More sensitive to reference potential and routing
    Close-to-Access Voltage-Type AI Requires a current channel or conversion scheme Usually more direct
    Wire Resistance Effects It is usually small when the output voltage margin is sufficient. With high input impedance, signal line voltage drops are typically small, but common-mode loop voltage drops can cause offset.
    Exception Diagnosis The zero crossing facilitates the identification of signals below the effective range. 0 V may be confused with an effective zero point.
    Mandatory parameters Output allowed load, input type, isolation method Input impedance, common reference, output drive capability

    4–20 mA is not a guarantee against interference. Wiring errors, excessive load, power supply disturbances, or over-range common-mode voltage can still cause malfunctions.

    There is also no standardized “10-meter length” limit for 0–10 V. Whether it is suitable should be determined based on the cable type, routing, receiving method, and field testing. In environments with strong interference, consider installing distributed I/O close to the equipment to shorten signal cables.

     

    3. How to match ISUB1000 and ISUB500 with workstations

    When selecting a model, first verify the maximum target distance, then consider the measurement range, housing size, and PLC interface. Different output versions cannot be interchanged based solely on the series name.

    Parameters ISUB1000-18GM76-IUE-V25-AJ200 ISUB500 Series
    Nominal Range Displayed 70–1,000 mm 30–500 mm
    Physical blind spot 70 mm 30 mm
    Operating frequency 200 kHz Approximately 200 kHz
    Resolution Need to check the full specifications. The product page states 0.85 mm.
    Output Available in 4–20 mA or 0–10 V, and includes a push-pull digital output. Select analog, digital, or combined output according to the configured order.
    Synchronize The product page states that it is supported. Confirm by specific version
    Configuration Method Body buttons Confirm the teaching procedure by version

    ISUB1000 It can be used in workstations that require a wide measurement range, continuous feedback, and standard limit signals. ISUB500 Better suited for close-range and compact installations, but a 30 mm blind zone does not mean the target is allowed to be placed right up against the end face.

    Sharing a measurement link for both analog and discrete signals cannot be considered independent safety redundancy. Standard push-pull outputs also cannot replace safety emergency-stop or personnel-protection circuits.

     

    4. Installation, Wiring, and PLC Calibration

    4.1 First verify the acoustic path

    • Avoid blind spots: Recently, the target distance should exceed the blind zone and allow for vibration, assembly, and material fluctuations. “Blind zone + 10 mm” should only be used as a preliminary design reference.
    • Leave beam clearance: False echoes may be generated by supports, tank walls, pipe openings, and agitator components. Based on the manufacturer’s test curves, the −3 dB beam angle should not be regarded as a hard boundary of the sound beam.
    • Aim at the target: Smooth targets should be measured as close to perpendicular as possible. The allowable tilt angle depends on the distance, surface, and probe and should not be uniformly specified as ±3°.
    • Check for obstructions: Reinforcements, steps, and forward protrusions may create acoustic shadows. If necessary, retest by translating the probe.
    • Use short barrels with caution: A smooth inner wall or a pipe diameter larger than the estimated acoustic cone is not sufficient to ensure that no spurious echoes are generated; the pipe length, pipe diameter, and installation position must be verified.

    After the target enters the blind zone, the output may remain stable, change abruptly, or enter a fault state; the specific behavior depends on the model and settings and cannot be uniformly defined as 20 mA or 10 V.

    4.2 Verify the input type before wiring

    M12 connectors must not be wired based solely on wire color. Brown and blue are commonly used for power, while the functions of white, black, and gray may vary depending on the model. Before powering up, verify the complete part number, pinout diagram, and the connector’s orientation.

    When connecting to a PLC, pay particular attention to the following checks:

    1. Range matching: The 4–20 mA output shall match the corresponding input configuration, and the same applies to 0–10 V.
    2. Active and Passive Interfaces: Three-wire sensors that have already actively sourced current should be connected to a compatible current input and must not be mistakenly connected to an incompatible loop-powered terminal.
    3. Reference and Return Paths: Non-isolated inputs typically require a proper common reference; isolated inputs should be wired according to the manual. Do not unconditionally short all AI−, MANA, and 0 V together.
    4. Shielding and Routing: Keep signal cables as far away as possible from motor and inverter power cables; when crossing is unavoidable, ensure the angle is as close to a right angle as practicable. Whether to terminate the shield at one end or both ends should comply with the requirements of the sensor, PLC, and site EMC conditions.

    4.3 Retain only one linear conversion formula

    The general linear conversion is:

    Here, X can be either a current value or the PLC’s raw count value, provided that the input upper and lower limits use the same unit.

    For example, if the measurement window is set to 100–900 mm, corresponding to 4–20 mA:

    Input current Distance
    4 mA 100 mm
    12 mA 500 mm
    20 mA 900 mm

    If a Siemens module is configured for 4–20 mA and the manual explicitly states that the rated range corresponds to 0–27648, this count range can be used for normalization and scaling. Do not apply this range universally to all modules or measurement ranges.

    Studio 5000 projects should use CPT, appropriate SCL instructions, or validated scaling AOIs based on the module data format; they should not assume that all controllers have identical SCP instructions.

    Reverse output allows the current to increase as the liquid level or roll diameter increases, but the definition of percentage still needs to be confirmed. The liquid-level percentage does not necessarily equal the volume percentage, nor does the roll-diameter percentage equal the percentage of remaining material length.

    4.4 Verify with three points, rather than relying on a single reading.

    After completing the calibration, record the reference distance, sensor output, PLC raw value, and engineering units at the near, middle, and far ends, respectively, and repeat the test.

    Subsequently, verify states such as motor start/stop, target tilt, multi-probe operation, and sensor power‑on reset. Abnormal signals should be diagnosed before being used for control; do not simply convert faults into “normal values” through clipping or filtering.

    4.5 Multi-probe crosstalk: First confirm the synchronization instructions.

    First, activate the probes one by one and observe whether the transition occurs when adjacent probes are activated; then check the acoustic path and the reflecting surface.

    Hardware synchronization can improve the stability of certain layouts, but it cannot guarantee zero crosstalk under all operating conditions. Time-division triggering can reduce overlapping transmissions, but it lowers the refresh rate and requires sufficient echo‑waiting time.

    Whether the Sync pins can be paralleled, the allowable voltage levels, trigger timing, and connection limits must be confirmed according to the manufacturer’s specifications. Do not simply short them together merely because the pin names are identical, nor connect them directly to a PLC’s 24 V digital output.

     

    5. Technical Limitations and Maintenance Requirements

    Response speed: At a distance of 1 m, the round-trip time of the sound wave is approximately 5.83 ms; the actual response also includes receive processing and filtering. For high-speed detection, verify the response time of the specific model, the target dwell time, and the PLC sampling period.

    Resolution: A resolution of 0.85 mm does not imply an accuracy of ±0.85 mm, nor does it mean the system can detect micrometer‑level changes in roll diameter. For precision positioning, select a measurement scheme that meets the required error specifications.

    Bubbles and airflow. Thick foam may absorb echoes or cause the transducer to detect the foam surface. Hot air, steam, and steep temperature gradients can affect the acoustic path; software compensation cannot replace proper installation modifications.

    Thermal Stability and Teaching In: The ISUB500 public documentation recommends allowing approximately 30 minutes for thermal stabilization before performing the final accuracy check, and notes that teaching for analog‑output versions is limited to the first five minutes after power-up. The documentation also points out discrepancies in the description of teaching pulses and advises confirming the manufacturer’s approval procedure prior to commissioning. Thermal stabilization verification and teaching operations should be scheduled separately.

    End-face maintenance: IP67 does not guarantee resistance to condensation, all cleaning agents, or prolonged immersion. Regularly inspect for water droplets, frost, and deposits; use only cleaning methods approved by the manufacturer, and avoid scraping with hard objects or using unverified solvents.

    The calibration interval should be determined based on operating conditions and accuracy requirements. If drift is detected, first investigate installation, environmental factors, and contamination; do not simply adjust the PLC gain to mask the issue.

     

    6. Frequently Asked Questions

    The PLC reading is 27648; is the sensor defective?

    Not necessarily. In typical Siemens analog signal representation, 27648 corresponds to the rated full-scale value. First verify the input configuration, module diagnostics, and the actual signal, then determine whether a fault is present.

    The closer the target, the more anomalous the reading—what should you check first?

    First, verify whether the closest distance has entered the blind zone, then check the tilt angle, bracket echoes, and output slope. The output behavior after no echo should be verified in the specific manual.

    It only has a 0–10 V input; can it connect to a 4–20 mA sensor?

    Resistor-based or signal converters can be evaluated, but direct compatibility cannot be assumed. A 500 Ω resistor theoretically converts 4–20 mA to 2–10 V; output load capability, PLC input resistance, resistor power rating, and headroom for overflow must be verified.

    If a 4–20 mA signal is below 3.6 mA, does that necessarily mean there’s a broken wire?

    No. This threshold applies only to devices and configurations that use the corresponding fault convention. Low current can also result from a power loss or a sensor failure; specific diagnosis should take into account the status of the module and the sensor.

    When multiple probes operate simultaneously and exhibit abrupt jumps, would increasing the filtering help?

    Filtering can smooth the data, but it cannot eliminate spurious echoes. First verify for crosstalk, then follow the manufacturer’s instructions to use synchronization, time-division triggering, or adjust the installation position.

    What should be done if teaching is not possible after preheating?

    Verify the model in the teach-in window. For versions explicitly restricted to the first 5 minutes after power-up, perform a re-power-up operation according to the approved procedure; do not attempt to connect the positive terminal or ground yourself.

     

    7. Project Summary and Documentation Portal

    Acceptance testing for ultrasonic transducer integration with a PLC should cover the entire signal chain: verifying that the target is measurable, that the acoustic path is reliable, that output and input are properly matched, and that abnormal signals can be detected.

    Proper installation and wiring can help reduce false trips and maintenance troubleshooting time, but this does not by itself allow one to claim a specific improvement in MTBF. Determining MTBF requires clearly defined fault criteria and detailed operational records; process variability, measurement errors, and hardware failures should also be tallied separately.

    You can verify the product scope and configuration on the following page:

    When wiring, non-standard windows, or custom interfaces need to be confirmed, please provide the target material, minimum and maximum distances, installation photos, cable length, and PLC input module model for Engineering team Verify compatibility.

    Previous

    Next

    Related News


    How to Connect Ultrasonic Sensors to a PLC: Wiring, Selection, and Calibration for 4–20 mA and 0–10 V Outputs

    Practical Guide to Connecting Ultrasonic Sensors to a PLC: Compares 4–20 mA and 0–10 V outputs, explains how to avoid blind zones, implement proper grounding and shielding, calibrate analog signals, and troubleshoot crosstalk between multiple transducers, helping engineers verify installation requirements and procurement specifications.


    Fire safety knowledge training

    "Fire safety is everyone's responsibility." On October 16, 2024, our company conducted the second fire safety knowledge training of the year in accordance with the fire safety regulations.


    Application of Ultrasonic Gas Leak Detection Technology in Natural Gas Pipeline Station

    This paper introduces the current domestic natural gas long-distance pipeline gas transmission station combustible gas leak detection equipment set up.


    Working principle of diffuse reflection photoelectric sensor

    Diffuse reflection sensor is a kind of sensor which is widely used in industrial automation, object detection and other fields.


    The difference between ultrasonic testing and radiographic testing of gas pipelines

    Fundamentals of 1. Ultrasonic and Radiographic Testing,Gas pipeline is one of the important pipelines for supplying natural gas.


    What is a sensor-what conditions does it apply

    A sensor is a device or apparatus that can detect, recognize, and respond to changes in some physical, chemical