The answer depends on the DI card and the sensor.
The 24Vdc DI card whose spec sheet happens to be on my desk at the moment has these specs:
ON voltage: 9.5Vdc minimum
OFF voltage level: 3.5Vdc minimum
Minimum ON current: 1.0 mA
If
- the power supply is 24.0 volts
- the sensor operates at exactly 1.0 mA (minimum for DI card)
- we assume the junctions & terminal blocks have no resistance (ha-ha),
then the wiring can drop 14.5 volts (24.0 - 9.5), yet still activate the DI logic on this card.
So how much wiring resistance (in ohms) will drop 14.5 volts at 1.0mA?
R = E/I
R = 14.5V/0.001A
R = 14,500 ohms
That's a long wire run.
You can look up the resistance of the wire gauge you provided and calculate how long a run (remember wire goes out and back) it actually is.
A sensor is likely to use more than 1.0mA. Increasing the current decreases the resistance needed to drop the 14.5 volts in the example, which in turn, decreases the length of wire. But it's still a long run.
If this is an actual issue, connect the sensor to the DI card, measure its sinking or sourcing current and find the minimum ON voltage from the spec sheet and do a calculation for your equipment.
Dan