Short answer: bond the motor cable shield at both ends — drive end and motor end — with full-circumference clamps, move the photoeye cable onto its own route at least 1 in [25 mm] from the motor cable, and put the carrier frequency back at its normal setting. A photoeye whose output LED flickers only while the drive runs is picking up PWM energy from the motor cable; the sensor and the PLC input are almost never the fault. The combination behind nearly every case you will see: a shield bonded at the drive and floating at the motor, plus a shared path to the enclosure. Dropping the carrier from 10 kHz to 4 kHz masks the noise with 60% fewer switching edges per second, but it buys louder motor whine, more output ripple and more heat. The wiring fix below takes an afternoon of your time and lasts.
Symptoms and what each one points to
- The output LED flickers only while the drive runs. PWM energy is coupling into the sensor cable; the sensor itself is healthy.
- The flicker rate follows the output frequency — 55 Hz at the running speed in the worked example below. The eye's output stage rectifies the induced energy into pulses at that rate.
- The PLC input triggers with nothing in front of the lens. Demodulated pulses look like real transitions to the input card.
- The LED sits steady with the drive stopped. Light level, alignment and the input are sound, so the fault is in the cable runs.
- The motor cable shield is bonded at the drive only. At switching frequencies a shield floating at one end re-radiates what it picks up.
- Motor cable and photoeye cable share the path to the enclosure. A parallel span couples the drive output into the sensor wiring for its whole length.
One symptom points the other way: a flicker that persists with the drive stopped is a light-level or alignment problem, and shielding will not touch it. For a photoeye that misbehaves on its own in a hot process, photoeye alignment troubleshooting at high process temperature covers that fault family.
The coupling paths, in order of likelihood
1. A shield floating at the motor end. This is the most common cause and the first thing you fix. Bonded at the drive alone, the shield collects the field around the motor cable and re-radiates it beside the sensor wiring. Bonded at both ends, it gives the common-mode noise current a continuous metal path back to the drive, which is what the drive and cable makers' application notes call for.
2. A parallel span with the sensor cable. The drive output leads couple capacitively and inductively into sensor wiring along every side-by-side inch. One drive maker's wiring application note suggests at least 1 in [25 mm] between cables that have to run parallel. Where the paths must meet, cross them at 90 degrees.
3. A carrier set above what the routing can take. Radiated noise scales with switching edges per second, so a top-of-range carrier multiplies whatever the routing leaks. It is the last knob, good for finishing a shift and nothing more.
The same physics shows up all over a panel. Drive noise also walks into screens, analog loops and limit-switch inputs; when the false trip lands on a limit switch instead of a photoeye, the control common is often the path, as limit switches that false-trip when the VFD runs explains.
The LED test at 55 Hz output and a 10 kHz carrier
This worked case carries the numbers through the article; put your machine's speed and carrier in their place and the method stays the same.
Inputs. Output frequency 55 Hz, the machine's running speed. Carrier 10 kHz at the normal setting, dropped to 4 kHz as the interim measure. Motor cable shield bonded at the drive only. Photoeye cable sharing the path to the enclosure.
Rule. Each carrier cycle switches the drive output on and off once, so the cable radiates at two edges per cycle. Edges per second = 2 × carrier frequency, and the noise a nearby wire picks up scales with that count.
Arithmetic.
- At 10 kHz: 2 × 10,000 cycles/s = 20,000 edges/s.
- At 4 kHz: 2 × 4,000 cycles/s = 8,000 edges/s.
- 1 − 8,000 ÷ 20,000 = 0.60, so 60% fewer edges.
Result. At 4 kHz the sensor cable sees roughly 60% less of that energy, which is why the machine runs — and why the fault is still there, waiting for the next sensor added near the motor cable. The carrier is the term you control from the keypad; the routing is the term you control with the runs.
Test. Aim the eye at empty space and watch the output LED with the drive stopped; it must sit steady for a few minutes. Start the drive and hold 55 Hz: the flicker returns within seconds. Sweep the speed range slowly and watch the flicker follow the drive rather than the light.
Decision. Steady when stopped and flickering within seconds of start means the coupling is external. Stop swapping sensors and input cards, fix the two runs, and keep the lowered carrier logged as interim until the wiring is done.
Bond the motor cable shield at both ends
Lock out, verify absence of voltage, and wait the DC-bus discharge interval your drive manual lists before touching anything on the drive.
At the drive end, expose the braid and clamp it around its full circumference to the backplane or gland plate at the drive's PE point. Keep any pigtail under 1 in [25 mm]; at switching frequencies a longer pigtail is a small antenna hanging off the shield. The hardware for a clean clamp is shown in the article on the VFD shield clamp at the drive or the cabinet entry.
At the motor end, terminate the braid in a metallic gland on the motor terminal box or clamp it full-circumference to the box boss. A taped-up braid left floating undoes the drive-end work. Where a disconnect sits between drive and motor, keep the shield continuous across it; keeping the VFD cable shield continuous at a motor disconnect shows how the bond carries over.
Check: measure continuity from the braid at the motor end to the drive's PE terminal — a reading near zero ohms, not an open. Run the drive at the interim carrier and watch the LED; with the bond right it is often steady already. The reasoning behind both-end bonding is in VFD motor cable shield grounding at both ends and why.
Separate the motor cable from the photoeye cable
Give your motor cable its own conduit or tray; the photoeye cable keeps its own. Enter the enclosure through different glands on different walls. Inside the panel, run the sensor bundle in its own duct, away from the drive output leads, and hold the same 1 in [25 mm] minimum where the two must pass side by side.
| Situation | Rule of thumb |
|---|---|
| Motor cable beside the sensor cable | at least 1 in [25 mm] apart |
| Paths that must cross | cross at 90 degrees |
| Enclosure entry | separate glands on separate walls |
| Inside the panel | separate wire duct for the sensor bundle |
Gland position, hole size and sealing are the subject of the guide to cutouts, cable glands and HMI windows. Where the shield clamp and the PE point land on the backplane, the enclosure grounding and bonding guide gives the order of the connections.
Check: walk both of your routes end to end. Any span where the two cables still run side by side is the noise path left in the machine.
Shield the photoeye cable where separation fails
Where a parallel span cannot be eliminated, shield your sensor cable itself. Use an overall braided shield: foil-only cable bonds poorly at a clamp and does not survive handling. Bond the braid at the sensor cable's entry to the panel, near the drive wiring, with the same full-circumference clamp and a pigtail under 1 in [25 mm].
One end bonded is the usual practice for sensor wiring: it avoids a ground loop through the machine frame, and it is enough once the motor cable shield is bonded at both ends. Add the bond at the far end only if the restore test still shows flicker.
Check: the LED holds steady at the interim carrier with the shielded cable in place.
Restore the carrier and prove the eye over a full shift
Put the carrier back with the drive stopped — from 4 kHz to 10 kHz in this case. Run the output to 55 Hz and hold it, then watch the LED for 10 minutes with no flicker. Sweep the whole speed range slowly, not just the running speed: coupling varies with speed, and a speed you never ran at 4 kHz will expose a missed bond or a parallel span.
Then prove it at the input. Clear the scanned area so the eye sees no target, put a count-up counter on the photoeye input in the PLC program, and run the drive through a full production period — the counter must read zero. Run real parts next: the input transitions line up with targets only, and the event count matches the parts counted at the machine.
If the flicker returns at 10 kHz, the wiring is unfinished. Re-inspect both shield terminations for pigtails, broken braid at a gland or a parallel span. With the bonds proven right, step the carrier down one setting at a time until the LED is steady, and log that value as the ceiling until the routing is finished properly.
Keep it fixed, and when to re-specify the box
Log the final state — carrier value, both shield terminations, the two routes — so your next panel change starts from a known good state. Every sensor or analog loop added near that motor cable inherits the problem, so new field cables get their own route from day one. Before blaming noise for a later round of false inputs, rule out the other classic cause: condensation in a humid panel, which moisture causing false inputs on a PLC in a humid panel shows how to recognize.
Re-specify the box when it is the constraint: no wall left for a separated gland entry, or sensor wiring forced to share a duct with the drive output leads. Our stainless wall-mount junction boxes come in nine sizes with removable mounting plates, manufacturer-rated NEMA 4X-type / IP66 (not UL listed), and a field-drilled entry holds that rating when it is made with a matched gland fitted as the enclosure instructions say. They are delivered in 10 business days; the stainless junction boxes page lists every size.
Catalog dimensions to compare
Compare these catalog dimensions with your component layout. Open each enclosure for its rating, material and usable space, then check those specifications against your application.
| Enclosure | Material | Outside H x W x D / display | Rating |
|---|---|---|---|
| 60 × 36 × 16 in | 304 stainless | 60 x 36 x 16 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 48 × 36 × 16 in | 304 stainless | 48 x 36 x 16 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 60 × 36 × 12 in | 304 stainless | 60 x 36 x 12 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
Questions
Does the photoeye cable itself need a shield?
Treat a shield as the second line of defense; routing comes first. Where the motor cable and the sensor cable stay 1 in [25 mm] apart, an unshielded sensor cable is fine. Where a parallel span is unavoidable, use an overall braided shield — foil-only cable bonds poorly at a clamp — and bond the braid at the panel entry with a full-circumference clamp, pigtail under 1 in [25 mm]. One end bonded is the usual practice for sensor wiring; add the far-end bond only if the eye still flickers.
Why bond the motor cable shield at both ends but the sensor shield at one end?
The motor cable shield carries real common-mode PWM current, and both-end bonding gives it a continuous metal path back to the drive instead of into the air around the sensor wiring. A sensor shield carries almost nothing, so a single bond encloses the cable while avoiding a ground loop through the machine frame. Same clamping hardware, different jobs.
Can the lowered carrier frequency stay as the permanent fix?
Treat it as a logged interim state, not the fix. Going from 10 kHz to 4 kHz cuts switching edges from 20,000 to 8,000 per second — 60% fewer — which masks the noise without removing it. Motor whine rises as the carrier falls, and output ripple and motor heating increase. Any sensor added near that motor cable inherits the fault. Restore the carrier after the wiring fix and log the value that worked.
How close can the motor cable and the photoeye cable run?
At least 1 in [25 mm] apart wherever they must run parallel — the spacing a drive maker's wiring application note suggests for cables that cannot be separated. Cross at 90 degrees where the paths meet, give each cable its own conduit or tray, and enter the enclosure through different glands on different walls. Inside the panel, the same spacing applies between the sensor bundle and the drive output leads in the duct.





