Selection Guides · 4 MIN READ

How to choose a replacement M12 sensor cable

Match the sensor port and wiring, measure the cable route and check coolant exposure. Follow a 5 m replacement example when the old part number is unreadable.

Need help selecting? Send photos of the model, nameplate and installation; quantity may be unknown.

The failed lead

A proximity sensor on a machining centre has an intermittent connection where its cable leaves the plug. The old label says “M12” and little else. The sensor still works with a known-good service lead. Maintenance needs a permanent replacement that will reach the cabinet and stand up to the machine's coolant. This worked example follows the decision from the first photo to the enquiry.

A sensor lead routed past two clamps on a machining centre
Follow the installed cable from the sensor to the first clamp. Include the bend and service loop when measuring the replacement.

Start with the two ends

The equipment drawing shows an A-coded M12 port with four male contacts. The cable therefore needs an A-coded four-contact socket at the sensor end. Read the view caption on the drawing before comparing pin positions: a drawing viewed from the wiring side reverses the apparent layout. A photo of the damaged plug helps identify the housing shape, but the port drawing settles the coding and mating direction.

At the cabinet, the old cable ends in individual cores on terminals. Record those terminal identifiers and the sensor pin connected to each one. The replacement needs one socket and a free cable end. A socket-to-plug extension would introduce another connector and still leave the terminal connection unresolved.

Exploded socket from the equipment end: coupling nut, face seal, socket contacts, moulded body, strain relief and outer cable jacket.

Measure the installed route

In this example the cable follows 4.2 m of tray and conduit. Allow another 0.4 m for the cabinet run and service loop. The resulting 4.6 m requirement makes a 5 m standard lead a candidate. A straight connector fits the available space behind the sensor. Where a guard sits close to the port, also check the assembled length and cable bend radius. An angled head only helps if its exit points toward the available route once keyed and tightened.

Check the circuit and the exposure

The example sensor runs on 24 V DC. Its manual specifies the pin functions and the machine drawing specifies the cabinet connections. Compare both with the cable manufacturer's pin-to-core diagram. A wire colour identifies a core on that cable; the sensor manual assigns its function. Check the load against the cable assembly's rating at the installation temperature.

The cable in this example is fixed to the machine frame and receives coolant splash. Record the coolant product, working concentration and temperature. If the route crosses onto a moving axis, record the bend radius, travel and expected cycles too. A lead chosen for a stationary tray would then need a second review against the maker's moving-cable limits.

Shortlist two real cables

CandidateRelevant supplied configurationDecision for the 4.6 m route
ifm EVC0012 m; straight A-coded four-contact socket; PUR; free endToo short for a single replacement run
ifm EVC0025 m; straight four-contact socket; four 0.34 mm² coresLength candidate; wiring, clamps and coolant still require confirmation
  • ifm EVC001 — eliminate on length. The manufacturer lists a straight A-coded four-contact M12 socket, a PUR jacket and a free end. Its supplied length is 2 m. It cannot cover the measured 4.6 m route in one run. EVC001 drawing and data sheet
  • ifm EVC002 — retain for review. This version has a 5 m cable, the required socket and four 0.34 mm² cores. The drawing gives the pin-to-core correspondence. Length and mating interface are now accounted for. Before confirming the order, match those cores to the terminal schedule, verify cabinet clamp capacity and get confirmation for the named coolant under the stated conditions. EVC002 drawing and data sheet

What to send for quotation

FieldSpecifyEvidence to attach
Sensor endM12, A-coded, four-contact female socket; straight in this examplePort drawing and view direction
Cabinet endFree cores and terminal schedulePin-to-terminal mapping
LengthMeasured 4.6 m requirement; review 5 m supplied lengthRoute and service-loop measurements
InstallationFixed or moving; available connector spaceRoute photo and bend requirements
ExposureNamed coolant, concentration and temperatureSupplier suitability confirmation
ReceiptExact code, pin-to-core mapping and agreed lengthDrawing and inspection record

Example enquiry. Please quote one 5 m sensor lead with a straight M12 A-coded four-contact female socket and a free cable end. The equipment has a four-pin male port on a 24 V DC sensor. The lead follows a fixed tray on a machining centre. Attached are the port drawing, terminal schedule, installation photo and coolant details. Please identify the exact order number, confirm coolant compatibility and flag any difference from the requested wiring or dimensions.

To compare another brand, give the supplier the same enquiry and ask for its dimensioned drawing and wiring diagram. Two candidates can then be checked against the same route, port and circuit.

Browse circular connectors

Read how M12 materials, termination and ratings affect service

Need help selecting? Send photos of the model, nameplate and installation; quantity may be unknown.