IMDHMIControls LibraryShop main store

Troubleshooting

Why a switching output cannot feed a PLC analog input

Controllers and I/O Published 7 min read By IMDHMI controls team

Short answer

The wire on AN0 is the sensor's switching output, and a switching output carries only two states, so no U90 setting can turn it into a distance. Confirm from the DT35 order code which outputs the sensor actually has, move the analog conductor to AN0, then link AI 0 to MI 0 in the hardware configuration, linearize the integer to millimeters, and bind the display field to the linearized value.

On this page
  1. Why two states can never carry distance
  2. Prove the signal at the terminal before touching the project
  3. Link AI 0 to a memory integer in U90
  4. Scaling a 12 mA reading into millimeters on a DT35
  5. Bind the field and check the whole chain
  6. The decision, case by case
  7. Questions asked

The conductor your wiring sends to AN0 is the sensor's switching output, and a switching output has exactly two states: transistor on, transistor off. An analog input channel cannot turn two states into a position, so no addressing, scaling or screen binding in U90 will make MI 0 track the target while that conductor feeds the channel. The repair is electrical first: read the full order code on the DT35 label to learn which outputs your variant actually carries, put the conductor that carries the analog output on AN0, prove it with a multimeter, and only then link AI 0 to MI 0 in the hardware configuration, linearize the integer to millimeters, and bind the screen field to it. The working COM port proves the programming cable; it says nothing about the sensor circuit.

Why two states can never carry distance #

A discrete output is a switch. It conducts when its setpoint condition is met and opens when it is not, so an analog channel wired to it reads at most two distinct values. Position information needs a signal that moves proportionally, and the DT35 provides one on its analog variants: the operating instructions map 4 mA (0 V) to 50 mm and 20 mA (10 V) to 10,000 mm, produced by a 12-bit converter inside the sensor.

The family name does not decide which outputs exist; the suffix letters of the order code on the label do. Some analog variants also let you teach the output endpoints or invert the slope, so the live scaling can differ from the printed default. Read the sensor's own configuration before trusting either. The wiring you describe contains the contradiction that matters: a conductor named as a switching output, landed on a channel wired to receive current. A switching transistor cannot source a proportional current, and the meter at the terminal settles the question faster than any configuration screen.

Prove the signal at the terminal before touching the project #

Five checks settle where the fault sits:

  1. Read the complete order code. The suffix block on the sensor label lists the outputs, and the datasheet printed for that exact code names what each conductor does. If the code carries no analog output, the project stops here: fitting the analog variant, or an interface that produces a proportional signal, is the repair. Scaling cannot substitute for a signal that does not exist.
  2. Measure the supply at the sensor, under load. Probe the sensor supply terminals with the sensor connected and running. The operating instructions condition the analog output on supply: the voltage-output variants need more than 13 V at the sensor, and variants using IO-Link need more than 18 V. A feeder that drops below the figure for your output mode under load gives you an analog signal you cannot trust.
  3. Measure the signal the way the wiring uses it. For a voltage output, meter from the signal conductor to the sensor 0 V and sweep the target through its travel: a live output glides between the endpoints instead of stepping. For a current output, open the loop and put the meter in series.
  4. Never close a supply through a meter set to current. That is a dead short across whatever feeds the loop. Isolate power before moving conductors.
  5. Decide on the meter. Two steady levels that flip when the target crosses a point mean the switching conductor is on AN0; move the correct conductor instead of editing the project. A smooth proportional reading means the analog circuit is alive and the remaining work is configuration.

From here the checks run in layers (electrical, then raw integer, then scaled value), the same layering used to test PLC analog output scaling in three layers, entered this time at the sensor end.

In U90 the analog channel never appears in the ladder as a contact: the channel lands in an integer, and everything downstream uses that integer.

  1. Open the hardware configuration and click the unit you are working with.
  2. Open the analog input tab and link channel AI 0 to MI 0.
  3. Set the channel precision where the controller offers the 10-bit or 12-bit selection, and make the channel electrical type match the wiring you measured: current for a 4-20 mA loop.
  4. Download the project over the connection you already have and go online.
  5. Move the target and watch MI 0 in the online monitor.

If the meter value moves but MI 0 stands still, recheck the channel link and the download, then search the ladder for any coil or move that writes MI 0; one stray overwrite pins the register. A channel that never leaves one value even on a proven-good signal behaves like a failed channel, and the checks in detect a failed analog input channel and report it to SCADA confirm or clear it.

Do not hunt for MI 0 as an input contact, either. An analog value is a numeric operand: compare it, do arithmetic on it, bind it to the screen, and generate a Boolean with a compare when the logic needs a threshold.

Scaling a 12 mA reading into millimeters on a DT35 #

Inputs, each with a source:

  • Zero endpoint: 4 mA at 50 mm, from the DT35 analog output mapping in the operating instructions.
  • Full endpoint: 20 mA at 10,000 mm, same document.
  • Measured loop current: 12 mA, an example meter reading taken in series at the terminal.

The rule: a linear sensor maps one endpoint pair onto the other, so distance equals the zero distance plus the current above the zero endpoint, times the distance span divided by the current span.

The arithmetic:

  • Current span: 20 mA - 4 mA = 16 mA. Distance span: 10,000 mm - 50 mm = 9,950 mm.
  • Slope: 9,950 mm / 16 mA = 621.875 mm per mA.
  • Current above the zero endpoint: 12 mA - 4 mA = 8 mA.
  • Distance: 8 mA × 621.875 mm per mA = 4,975 mm, and 4,975 mm + 50 mm = 5,025 mm.

The result is 5,025 mm, and the cross-check holds: a reading halfway between the endpoint currents must land halfway between the endpoint distances, and it does.

Inside the project, linearization lives with the operand: open the memory integer you linked and set its linearization so raw_low pairs with the zero distance and raw_high with the full distance (raw_low and raw_high name the pairing here, not fixed U90 identifiers), with the raw endpoints taken from the channel precision you configured. The sensor's own converter is 12-bit, so the 9,950 mm span spreads over 4,096 counts, about 2.4 mm per count; whole millimeters on the screen reflect the sensor's real resolution, and tenths do not. Where a variant's endpoints have been taught to a narrower window, use the taught values instead of the printed defaults.

The decision: a conductor carrying this signal moves the displayed value by about 621.9 mm for every milliampere of change and never holds still while the target travels. A conductor that only flips between two levels is the switching output, and the repair is the wiring, not the scaling.

Bind the field and check the whole chain #

The screen never reads the channel; it reads an operand. In the display editor, choose the field position and the number of digits, link the field to the integer holding the linearized value, add the millimeter label, and download. If MI 0 itself is linearized, MI 0 is the field variable; if you keep raw counts in MI 0 and linearize into a second integer, bind the field to that second integer. A correct field bound to the wrong integer shows a plausible wrong number.

Close the loop with a tape measure: park the target at a known distance and compare the screen. Screen wrong while the integer is right points at binding or formatting; integer wrong while the meter is right points at the linearization endpoints; meter wrong points back at the sensor circuit.

The decision, case by case #

  • Order code lists no analog output: fit the analog variant or an interface that produces a proportional signal, and leave the scaling work closed until a real analog conductor exists.
  • Analog output confirmed and the meter shows a smooth signal: put that conductor on AN0, link AI 0 to MI 0, set the channel for current, linearize with the sensor distance endpoints, and bind the display field to the linearized integer.
  • Meter shows only two levels: the switching conductor is on the analog channel. Rewire it; nothing in U90 recovers a distance from two states.
  • MI 0 tracks the target but the screen does not: rebind the field to the integer holding the linearized value and download again.

Questions asked

Can I recover a distance from the switching output by counting its transitions?

No. The switching output carries one bit: it conducts at a taught switching point and stops conducting past it. Each edge marks a threshold crossing, not a position, so counting or timing edges cannot reconstruct distance. Position exists only on the analog output conductor or on a digital interface variant, and only those belong on an analog input channel.

Which conductor of the DT35 belongs on the analog input?

The connector pinout changes with the order code, so use the pin list for the complete code printed on your label, not for the family. The analog output and the switching output sit on separate conductors; the analog one carries current or voltage proportional to distance, and it is the only conductor that belongs on AN0.

Which precision should the analog channel use in the hardware configuration?

The hardware configuration offers 10-bit or 12-bit precision for the linked channel, and that choice sets the span of raw counts the linearize tool works with. Twelve bits matches the 12-bit converter inside the DT35 analog output, so the channel does not throw away resolution the sensor provides. Whichever you pick, take the raw endpoints from that configuration and pair them with the sensor distance endpoints.

Can the sensor run from the supply terminal on the PLC?

Measure it rather than assume it. The operating instructions condition the analog output on supply: more than 13 V at the sensor for the voltage-output variants and more than 18 V when the output runs as IO-Link, probed at the sensor with everything connected. If the terminal sags below the figure for your output mode under load, feed the sensor from a supply that holds it.

Keep reading

  • Troubleshooting

    Wiring a 1769-OF2 analog output to a PowerFlex 753 input

    Wire it directly: the 1769-OF2 channel sources the loop current and the PowerFlex 753 analog input set to current mode is a passive 93 Ω receiver, so no isolator is needed. Set the card's power switch to backplane, land only two wires on AI+ and AI-, and hunt repeated input-card failures in a second 24 V source, a shared 24 Vdc/0 Vdc common, or an unverified replacement card.

    Controllers and I/O

  • Troubleshooting

    FX5U thermocouple readings need a dedicated TC input

    A Type K thermocouple on the FX5U built-in analog input cannot yield usable temperature: the voltage channel's count step is worth about 61 °C of Type K signal, and a reading near 200,000 means the program is reading the wrong operand or width, not temperature. Verify the raw 0–4,000 count path, then move the thermocouple to a dedicated input adapter with cold-junction compensation and read degrees directly.

    Controllers and I/O

  • How-to

    Test PLC analog output scaling in three layers

    Do not judge the loop by voltage alone. Test it in three layers: the HMI psig command to the PLC integer, the PLC integer to the voltage output, and the regulator volts to delivered pressure. A correct full-scale measurement proves the electrical stage only; pressure feedback proves the rest.

    Controllers and I/O