Integrex Tool Eye Sensor: Wire Color to PCB Pad Mapping

Jason IP10 min read
Other ManufacturerSensor IntegrationTroubleshooting
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Overview

The Mazak Integrex series multi-tasking machines use a fixed-mounted tool eye sensor inside the work envelope to detect tool length, tool presence, and (on some models) broken-tool conditions. The sensor is a 3-wire DC diffuse-reflective photoelectric switch, typically supplied by Omron as an E3Z-family diffuse-reflective head. On the Integrex, the sensor body is frequently potted or covered with an epoxy/clear-coat on the rear to resist coolant ingress, and the only serviceable entry point is the lead-wire side or, if the rear cover can be removed, the small SMD PCB that terminates the leads.

The failure mode discussed in the field — an operator pulling a stuck sensor and tearing the three lead wires off the small internal PCB pads — is one of the most common in-cell repairs on Integrex cells. The fix is straightforward once the wire-to-pad mapping is known, but the data is rarely printed on the housing and the OEM wiring diagram is not always shipped with the machine. This article consolidates the field-proven color convention, the PCB pad layout, the safe rework procedure, and the Mazak parameter re-set required after a sensor replacement.

Affected Hardware and Typical Part Numbers

While the Integrex platform accepts several Omron E3Z variants, the wire color scheme is consistent across the 3-wire DC versions:

Common OEM P/N Pattern Sensor Type Output Supply
E3Z-D61 / E3Z-D81 Diffuse-reflective, infrared LED NPN NO / PNP NO 12–24 VDC
E3Z-D62 / E3Z-D82 Diffuse-reflective, infrared LED NPN NC / PNP NC 12–24 VDC
E3Z-LL61 / E3Z-LL81 Diffuse-reflective, laser class 1 NPN NO / PNP NO 12–24 VDC
E3Z-LL63 / E3Z-LL83 Diffuse-reflective, laser, narrow beam NPN NO / PNP NO 12–24 VDC
E3Z-T61 / E3Z-T81 Through-beam or retro, infrared NPN / PNP 12–24 VDC

Verify the exact variant by reading the laser-etched label on the sensor barrel before ordering a replacement. Cross-reference the Mazak spare-parts list with the Omron E3Z photoelectric sensor catalog or call Omron technical support with the serial plate data.

The Wire Color Convention

Two color sets appear in this repair, and both are correct — they are simply the external lead colors versus the internal PCB silkscreen:

External Lead (PVC jacket) Internal PCB Pad (silkscreen) Function Voltage / Current
Brown Red V+ (power supply positive) +12 to +24 VDC
Blue Green V− (power supply negative / 0 V) 0 VDC
Black Black Output (NPN sink or PNP source, model dependent) ≤ 100 mA load
Critical: The output wire is the one that returns to the Mazak controller I/O board (typically a 24 VDC sinking input card on the INTEGREX Matrix, SmoothX, or Fusion 640M controller). The output stage is not interchangeable with V+ or V−. Wiring black to V+ will short the 24 V supply through the output transistor the moment the sensor is powered.

If the silkscreen has worn off the PCB (common after coolant exposure), use a magnifier and look for the copper trace going to the power-input filter cap — the pad feeding the cap positive is V+ (red), and the pad on the ground side is V− (green). The remaining pad is the output (black).

Confirming NPN vs PNP Before Powering Up

The Integrex I/O cards are 24 VDC and are almost always sinking (NPN) inputs on the tool-measure probe circuit. Re-installing a PNP-output sensor in place of an NPN unit will produce a continuously-OFF input even with a tool in front of the eye, and can also back-feed voltage into the input card through the output stage. Verify the output topology with a multimeter before soldering the wires to the pads:

  1. Apply 24 VDC between the brown (V+) and blue (V−) leads from a bench supply, current-limited to 50 mA.
  2. Set the meter to diode/continuity. Place the red probe on V+ (brown) and the black probe on the output lead (black).
  3. With no target in front of the sensor, an NPN output reads open (OL) and a PNP output reads ≈ 0.7 V (the body diode of the output FET).
  4. Place a white card 50 mm in front of the lens. The reading should invert — NPN now reads ≈ 0.7 V, PNP now reads open.

If the sensor behaves as PNP and the machine is wired for NPN, swap for the correct variant rather than re-wiring. PNP-to-NPN adaptation with a pull-down resistor is possible but is not recommended in a coolant-rich cell because the added discrete components fail quickly.

Safe Removal Procedure to Prevent Pad Tearing

The pads on a sensor PCB are small SMD-style lands with through-hole plating for the lead wires. Pulling axially on the cable is the most common cause of pad lifting. To prevent a repeat failure:

  1. De-energize first. Drop the e-stop and lock out the 24 VDC distribution breaker feeding the tool-eye circuit. The Integrex I/O backplane stays live even with the main spindle drive off.
  2. Clean the area. Use coolant wand or chip wand to clear chips from the sensor pocket. Coolant in the lens produces false triggers during re-setup.
  3. Loosen the mounting hardware (typically two M3 cap screws on a clamp block) before pulling. The sensor is a press-fit in a bored seat on most Integrex models; pulling while the clamp is engaged rips the pads.
  4. Cut, do not pull. If the wires must be separated from the PCB, snip them 25 mm above the pad with flush cutters, then de-solder each stub individually. This preserves the pad land.
  5. Document the orientation of the LED emitter window relative to the spindle axis with a marker on the body before removal. Re-installing rotated 180° will not damage anything but will require re-teaching the target offset.

Soldering the Leads Back to the Pads

Use a temperature-controlled iron at 320 °C with a 1.6 mm chisel tip and 0.5 mm lead-bearing solder (Sn60/Pb40 or Sn63/Pb37). Lead-free SAC305 is acceptable but requires 350 °C and shorter dwell time to avoid pad lift.

  1. Strip 3 mm of insulation from each lead and pre-tin. Twist the strands tight before tinning to avoid stray whiskers.
  2. Apply a small amount of no-clean flux (RMA type) to each pad.
  3. Position the lead on the pad, heat the pad (not the wire) for 1.5–2 seconds, and feed a small amount of solder to the pad/wire interface.
  4. Inspect each joint at 10× magnification. A good joint shows concave fillet wetting both the pad and the lead. A convex ball indicates cold joint — reheat.
  5. Strain-relieve the cable. Apply a single bead of silicone RTV (Dow Corning 732 or equivalent) over the three joints, then clamp the cable 30 mm back from the PCB with the existing cable tie on the sensor body.
Critical: Do not use cyanoacrylate (super glue) or epoxy over the joints as a strain relief. CA fumes corrode the SMD components and epoxy will not release for future service. Neutral-cure silicone only.

Re-Installation and Mechanical Alignment

  1. Slide the sensor into its bore until the emitter window is flush with the front face of the mounting block.
  2. Torque the M3 clamp screws to 0.6 N·m (5 in·lb). Overtightening cracks the plastic barrel.
  3. Verify the cable exits downward (away from chip flow) and is routed in the existing P-clip on the table casting.
  4. Re-apply power to the 24 VDC distribution and confirm the sensor LED illuminates.

Mazak Parameter Re-Set (Tool Eye Calibration)

After any tool-eye hardware disturbance, the Integrex controller must re-learn the tool-eye Z offset. The parameter paths differ by controller generation, but the underlying data is the same.

Controller Parameter Path Parameter Name Typical Value
Mazatrol Matrix PARAM → TOOL DATA → TOOL EYE Tool Eye Z (machine coord.) −50.000 to +50.000 mm
Mazatrol Matrix PARAM → TOOL DATA → TOOL EYE Tool Eye X (radial offset) 0.000 mm
SmoothX / SmoothAi MAZATROL → SETUP → PROBE / TOOL EYE Tool Eye Reference Z User-measured
Fusion 640M MDI → PARAMETER → 8701 / 8702 Tool eye Z position User-measured

Procedure on a Mazatrol Matrix controller:

  1. Jog the spindle to a known reference tool (a calibrated 50 mm steel block held in the spindle, for example).
  2. From the TOOL EYE screen, select CALIBRATE. The controller will jog the spindle down toward the sensor and sample the trigger point.
  3. Confirm the reading matches the reference within ±0.005 mm. If not, repeat with the spindle slowed to 10 % rapid (override dial on the operator panel).
  4. Save the parameter set (PARAM → SAVE) and cycle power to commit non-volatile storage.

Verification Tests

  1. Trigger test: Place a piece of white paper 50 mm in front of the sensor. The output LED on the sensor body should illuminate and the controller's tool-eye input bit should go active in the I/O diagnostic screen.
  2. Re-trigger test: Remove the paper. The output should de-assert within 1 ms (E3Z standard response time).
  3. Coolant soak test: Run a 5-minute wash-down program with the table flooded. The sensor must not false-trigger. If it does, the lens seal has been compromised and the sensor must be replaced rather than re-sealed.
  4. Cycle test: Run a tool-length measurement macro (Mazatrol M-code TEM or G65 macro depending on post-processor) over 25 tool changes. Maximum repeatability spec on the Integrex is ±0.005 mm; values above this indicate the calibration was not saved or the cable is partially broken.

Troubleshooting Matrix

Symptom Likely Cause Corrective Action
Sensor LED never lights after re-install V+ / V− reversed, or 24 VDC breaker open Verify polarity with DMM at the connector; reset breaker
Sensor LED on, controller input always OFF Output wire on V+ pad, or NPN/PNP mismatch Re-solder output to black pad; verify sensor variant
Sensor LED on, controller input always ON Output wire on V− pad, or short to ground Inspect solder joints for bridges
Sensor triggers but repeatability ±0.05 mm Strain on cable moving the sensor body Re-clamp cable 30 mm from body; re-calibrate
Sensor false-triggers during coolant cycle Coolant film on lens, or lens seal damaged Wipe lens; if persistent, replace sensor
Sensor triggers but Mazak reports TOOL EYE ERROR 2034 Calibration parameter not saved, or spindle not at reference position Re-run CALIBRATE; cycle power; confirm SAVE
Solder pad lifted off PCB during rework Excessive iron dwell time, or pulled cold Use 30 AWG wire-wrap wire to bridge to next viable trace; replace sensor if multiple pads lifted

Preventive Recommendations

  • Add the tool-eye sensor to the monthly preventive-maintenance checklist — wipe the lens with isopropyl alcohol and verify the cable strain relief is intact.
  • Print the wire-to-pad diagram from this article and laminate it to the inside of the cell's electrical cabinet door so the next operator has the answer immediately.
  • Stock one spare E3Z sensor variant (matched to the existing output topology) on the spare parts shelf. The Omron E3Z family is field-replaceable in under 15 minutes once the parameter is known.
  • Train operators to never pull a stuck sensor axially. If chips have packed around the barrel, flood and brush first, then loosen the clamp screws, then extract.

FAQ

What wire color goes to which pad on the Integrex tool eye sensor?

The external brown lead solders to the red PCB pad (V+, +24 VDC), the external blue lead to the green pad (V−, 0 VDC), and the external black lead to the black pad (output to the controller I/O). The internal silkscreen uses red/black/green while the external PVC jacket uses brown/black/blue — they are the same three conductors.

How do I tell if the sensor is NPN or PNP before re-wiring it?

Power the sensor from a 24 VDC bench supply on the brown and blue leads, then measure with a multimeter on diode mode between V+ and the black output lead. A reading near 0.7 V with no target indicates PNP; an open circuit (OL) with no target indicates NPN. The Integrex I/O cards are normally wired for NPN sinking inputs.

What Mazak parameter stores the tool-eye Z offset?

On a Mazatrol Matrix controller, the parameter is at PARAM → TOOL DATA → TOOL EYE, labeled "Tool Eye Z". On a Fusion 640M it lives in parameter 8701/8702. The value is a machine coordinate, not a work offset, and must be re-saved and power-cycled after every calibration.

What iron temperature and solder should I use on the sensor PCB?

Use a temperature-controlled iron at 320 °C with a 1.6 mm chisel tip and 0.5 mm lead-bearing solder (Sn60/Pb40 or Sn63/Pb37). Lead-free SAC305 is acceptable at 350 °C. Heat the pad, not the wire, for 1.5–2 seconds and apply neutral-cure silicone RTV over the joints for strain relief — never cyanoacrylate or epoxy.

What is the maximum tool-length measurement repeatability after re-calibration?

The Integrex tool-eye circuit is specified for ±0.005 mm repeatability over 25 measurement cycles. If the spread is greater, the cable strain relief is suspect (re-clamp 30 mm from the sensor body), the lens is fouled with coolant film, or the parameter was not committed to non-volatile storage.

Back to blog