The Sensor That Flickered on the Moving Axis
We used a standard sensor cable (PVC jacket) for a proximity sensor on a moving axis. The cable ran alongside the moving carriage, flexing with each cycle. On the bench, it worked. After two weeks, the sensor started flickering. The cable had broken inside — the copper conductors had work-hardened and fractured from repeated flexing. The PVC-jacketed cable wasn’t rated for continuous flexing. We replaced it with a chain-rated (high-flex) cable. The flickering stopped. The mistake was using a static cable (for fixed wiring) on a moving application.
Sensor cable and connector selection isn’t picking any cable with the right connector. The cable must survive flexing (in drag chains), bending (at moving ends), and the environment. This article covers the choices.
Cable Types: Static vs. High-Flex
Static (Fixed) Cable
A standard PVC-jacketed cable for fixed wiring (sensor in a fixed location). Cheap. The conductors are stranded but not specially laid for flexing. Don’t use in a drag chain or on a moving axis — the conductors break.
High-Flex (Drag Chain Rated) Cable
A specially constructed cable for continuous flexing in a drag chain. The conductors are stranded with a special lay (pitch), and the jacket is flexible (PUR or TPE). Rated for millions of flex cycles. This is the cable for any moving application.
| Cable Type | Flex Rating | Jacket | Best For |
|---|---|---|---|
| PVC (static) | None (fixed only) | PVC | Sensors in fixed locations |
| PUR (high-flex) | 5–10 million cycles | Polyurethane | Drag chains, moving axes |
| TPE (extreme flex) | 10–20 million cycles | TPE | High-speed axes, long travel |
| Robot cable (twist-rated) | Twist (rotational) | PUR/TPE | Robot dress packs |
Step 1: Where Does the Cable Go?
The application determines the cable type.
- Fixed sensor (stationary): Static PVC cable. Cheap.
- Moving axis (in a drag chain): High-flex PUR cable (article 66).
- Robot dress pack: Robot-rated cable (twist and bend resistance).
- Outdoor/washdown: PUR or TPE jacket (oil/water resistant).
- High-flex over long travel: TPE cable (highest cycle rating).
The sensor that flickered on the moving axis had a static PVC cable. It wasn’t rated for flexing. Use high-flex cable for anything that moves.
Step 2: Connector Type (M8, M12)
Sensors use standard circular connectors.
M8 Connector
Small (8 mm thread). 3-pin or 4-pin. For small sensors (Ø6.5 mm proximity, small photoelectric). Compact. Limited pin count.
M12 Connector
12 mm thread. 3-pin, 4-pin, 5-pin, 8-pin. Standard for most sensors. More pins (for sensors with signals + power). Rugged. This is the default for most automation.
Match the connector to the sensor. An M12 sensor has an M12 connector. Don’t try to adapt M8 to M12 — use the right one.
The cable rule: If the sensor moves (in a drag chain or on a robot), use a high-flex PUR or TPE cable. If it’s fixed, PVC is fine. The sensor that flickered had a static cable on a moving axis — the conductors work-hardened and broke. Use drag-chain-rated cable for any flexing application.
Step 3: Pin Assignment (NPN vs PNP)
The connector pins carry the signal. The pinout depends on the sensor type (NPN or PNP, article 63).
- Brown (+24 V): Power supply positive.
- Blue (0 V): Power supply ground.
- Black (signal): The output (NPN or PNP).
- White (auxiliary): For 4-pin sensors (second output, or IO-Link).
Standard M12 4-pin: 1=+24V (brown), 2=auxiliary (white), 3=0V (blue), 4=signal (black). Match the sensor’s pinout to the cable. A mismatched cable (wrong pin order) = no signal.
Step 4: Cable Length and Voltage Drop
Long cable runs (over 10 m) cause voltage drop. The sensor needs 24 V at its terminals. If the cable is too thin (24 AWG) over 20 m, the voltage at the sensor drops to 20 V. The sensor might not work.
- Short runs (under 5 m): 24 AWG (0.25 mm²) is fine.
- Medium (5–15 m): 22 AWG (0.34 mm²).
- Long (over 15 m): 20 AWG (0.5 mm²) or 18 AWG (0.75 mm²).
For sensor cables, 0.34 mm² (22 AWG) is standard. For long runs, go to 0.5 mm².
Shielding (For Analog or High-Speed Signals)
Most digital sensor signals (proximity, photoelectric) don’t need shielding. But analog sensors (pressure transducers, load cells) or high-speed encoder signals do.
- Unshielded: Standard digital sensors (proximity, photoelectric). Cheap.
- Shielded: Analog signals, encoder cables, IO-Link. The shield grounds at one end (the controller end).
Don’t ground the shield at both ends (creates a ground loop). One end only (typically the controller). Check the sensor manual.
IP Rating of the Connector
The connector must match the environment.
- IP67: Standard. Dust-tight, waterproof (temporary immersion).
- IP69K: Washdown. High-pressure water (food, pharmaceutical).
- IP65: Splash-proof. For indoor, dry environments.
For washdown, use IP69K connectors. For general automation, IP67 is standard.
Cable Assembly: Pre-Made vs. Field-Wireable
- Pre-made (factory assembled): The connector is attached at the factory. Tested, reliable. Standard.
- Field-wireable: The connector is assembled on site (screws the wires into the connector pins). For custom lengths or repairs. But it’s more failure-prone (loose screws).
Use pre-made cables for production. Use field-wireable only for custom lengths or repairs.
A Sensor Cable Checklist
- Is the sensor fixed or moving? (Drag chain?)
- If moving: high-flex PUR/TPE cable?
- Connector type: M8 or M12?
- Pin count: 3, 4, 5, or 8?
- Pinout: NPN or PNP? (Match the sensor.)
- Cable length? (mm² wire gauge for long runs.)
- Shielded? (Analog or encoder?)
- IP rating? (IP67 standard, IP69K washdown.)
- Pre-made or field-wireable? (Pre-made for production.)
- Is the jacket oil-resistant? (For machine environments.)
- Is the cable routed away from power cables? (EMI.)
- Spare cables in stock? (For quick replacement.)
The Bottom Line
Sensor cable and connector selection starts with whether the cable moves. The sensor that flickered had a static PVC cable on a moving axis — the conductors broke from flexing. Use high-flex PUR/TPE cable for drag chains and moving robots. Pick M8 or M12 connectors to match the sensor, match the pinout (NPN/PNP), and use shielded cable for analog signals. Pre-made cables are more reliable than field-wired ones. The sensor that works for years wasn’t the cheapest cable — it was the right flex rating for the motion.