1. Overview
This reference documents a hard-wired safety interlock that prevents a pneumatic chuck clamp (also called a tool-retention clamp or drawbar clamp) from releasing while the spindle is still rotating. The integration is built around three components:
- MASSO controller (G3 / G3 Touch / G3 Mk2) sourcing a TTL chuck-clamp output that is only energised when the spindle is at zero speed and the spin-down timer has expired.
- Omron MX2 VFD (frequency inverter), parameter C026 = 21, which routes a "spindle running" status onto the on-board relay output (terminals MA/MB/MC).
- Pneumatic / solenoid chuck clamp powered from an external 24 V DC supply.
The same wiring applies to the Hitachi WJ200, which is a rebranded Omron MX2 with identical parameter numbering and identical relay output terminals. SJ-series pneumatic chucks (ER11 / ER16 / ER20 collet spindles) such as the Sorotec HF-Motorspindel 6508 (0.8 kW water-cooled) and the Mechatron STC-65-24-ISO10-S tool changer are typical end devices.
2. Prerequisites and Hardware
| Item | Specification | Typical Part |
|---|---|---|
| MASSO controller | MASSO G3 / G3 Touch / G3 Mk2, firmware with chuck-clamp output support | MASSO G3 |
| VFD | Omron MX2 (MX2-AB / MX2-DB) or Hitachi WJ200 (rebranded MX2) | Omron MX2 User Manual (I570-E2-02) |
| Spindle | ER11 / ER16 / ER20 collet, water-cooled or air-cooled, ISO10 or ISO20 taper | Sorotec HF-Motorspindel 6508 |
| Chuck clamp | 24 V DC pneumatic, single-solenoid spring-return, normally closed (power-to-release) | SMC NCMB110-50 / Festo DSNU-25-...-P |
| Power supply | 24 V DC regulated, ≥ 2 A continuous (solenoid inrush) | Mean Well NDR-120-24 |
| Wire | 22 AWG stranded for signal, 18 AWG for solenoid feed | — |
| Spindle tool changer (optional) | Mechatron / Sorotec / ATC carousel | Sorotec STC 65 V2 |
Before energising anything, confirm the spindle type. ER collets do not require an orientation index — tools can be loaded at any angle — whereas BT/CT/CAT spindles require a fixed clock position before an ATC can engage. This matters for the controller side: the MASSO chuck-clamp output is gated only by speed and spin-down time, not by orientation.
3. MASSO Chuck-Clamp Output Architecture
The MASSO documentation set exposes the chuck-clamp function on a dedicated TTL output. Internally the controller only energises this output when all three of the following conditions are simultaneously true:
- The spindle command RPM = 0.
- The actual measured speed feedback (or the commanded speed, if no encoder is fitted) is below the spindle-zero-speed threshold.
- The Spindle Spin Down Delay timer has elapsed.
The Spindle Spin Down Delay is the most misconfigured parameter in this loop. If it is set too short, MASSO will assert the clamp-open output while the spindle is still physically decelerating — the collet or chuck jaws can release while the tool is still turning, which throws the part, damages the collet, or breaks the tool. Default values from MASSO are deliberately conservative (typically 5–10 s); they should be increased, not decreased, when the VFD's deceleration ramp is long.
4. Omron MX2 / Hitachi WJ200 Digital Outputs
From the MX2 user manual, the drive has three programmable digital outputs:
| Output | Type | Terminals | Voltage Drop | Suitable for TTL |
|---|---|---|---|---|
| DO1 | Open-collector optocoupler | AL0 / AL1 / AL2 (sink) | ≈ 2 V | No — TTL logic swings only 0–5 V, so 2 V sag is enough to read as a logic HIGH |
| DO2 | Open-collector optocoupler | AL0 / AL1 / AL2 (sink) | ≈ 2 V | Same as DO1 |
| Relay | Form-C dry contact | MA (NO), MB (NC), MC (COM) | 0 V (isolation) | Yes — also suitable for 24 V loads |
Use the relay output for the chuck-clamp interlock. The optocoupler outputs cannot be used directly as TTL drivers because the 2 V saturation drop means a "logic 0" still reads ≈ 2 V at the MASSO input, which is above the TTL low threshold (0.8 V). A clean dry-contact closure is mandatory.
5. VFD Parameter Configuration
Two parameters must be set before the drive is connected to the clamp circuit. Procedure (operator keypad on the front of the MX2):
- Navigate to parameter C026 (function select for relay output).
- Set C026 = 21. Function code 21 is "During run" — the relay is energised whenever the drive is outputting voltage to the motor (i.e., the spindle is commanded to spin OR is still spinning down).
- Navigate to parameter C036 (relay output inversion / contact state).
- Set C036 per your contact preference: 00 = normally-open (energise on run), 01 = inverted (de-energise on run). The default selection depends on whether you want a fail-safe closed or fail-safe open clamp logic.
- Optional: confirm A001 / A002 (run-source and frequency-source) so the relay honestly reflects the spindle commanded state.
- Optional: extend F003 / F004 (stop method / DC-brake time) so the spindle halts deterministically within the Spindle Spin Down Delay.
| Parameter | Default | Set Value | Function |
|---|---|---|---|
| C026 | 05 (fault) | 21 | Assign "During run" to relay output MA-MC |
| C036 | 00 | 00 or 01 | Choose fail-open or fail-closed contact logic |
| F003 | 0 (ramp) | 0 or 1 | Stop method: ramp-down vs free-run |
| F004 | 0.0 s | 0.5–2.0 s | DC-brake time (helps snap to zero RPM) |
| b003 | 0.0 s | ≥ spin-down timer | Decel ramp 1 (match MASSO Spindle Spin Down Delay) |
6. Step-by-Step Wiring Procedure
Wire with the controller and the VFD both unpowered. Read this entire section before landing the first conductor.
6.1 Pin map
| Wire | From | To | Signal |
|---|---|---|---|
| 1 | MASSO Clamp Open TTL output | VFD terminal AL0 (digital-input common for sink) | TTL low when clamp is permitted |
| 2 | VFD terminal AL1 (assigned as Clamp-Enable input) | VFD relay terminal MB or MA (depends on C036 invert) | Dry-contact pass-through |
| 3 | 24 V DC supply +24V | VFD relay NO terminal (MA if C036 = 00) | Power feed to solenoid rail |
| 4 | VFD relay COM (MC) | Solenoid +V terminal | Switched 24 V to the clamp coil |
| 5 | Solenoid 0 V | 24 V DC supply 0V / V- | Solenoid return |
6.2 Landing sequence
- Bond all grounds first. Tie the 24 V supply 0 V, the MASSO ground, the VFD earth, and the spindle chassis to a single star point. Floating grounds on a CNC frame will inject 5–30 V of common-mode noise into the relay coil, causing intermittent clamp release.
- Land wire 1 from the MASSO chuck-clamp output to VFD terminal AL0. If the MASSO output is sourcing (high = release), invert the polarity in the controller output settings rather than at the terminal.
- Program input AL1 in VFD parameter C004 = 01 (run command) only if you also want spindle start/stop to be controlled by the relay chain. Otherwise leave AL1 unused and bridge AL0 ↔ AL1 with the relay contact only.
- Land wire 2 — the relay contact — between AL1 and MA (or MB) using the dry contact as the breaker in series with the clamp command.
- Land wire 3 — the switched 24 V feed — to the NO side of the relay (terminal MA if C036 = 00, so the contact closes when the spindle is not running).
- Land wire 4 — solenoid +V — to MC (common).
- Land wire 5 — solenoid 0 V — back to the supply.
- Tug-test each conductor and dress to a DIN rail with strain reliefs. Solenoid inrush on a pneumatic chuck can be 3–5× holding current; loose terminals will weld themselves in the field.
6.3 Inline SVG wiring diagram
7. MASSO Spindle Spin Down Delay Tuning
The delay must be longer than the worst-case mechanical deceleration of the spindle through its final 25 % of speed. Procedure:
- Command M3 S12000 (or the spindle's max working RPM).
- Issue M5 and observe (strobe, tachometer, or HAL sensor) how long the spindle takes to reach 0 RPM.
- Add 1.0–1.5 s of safety margin.
- Enter the total into MASSO's F1-Setup → Spindle → Spindle Spin Down Delay.
- Repeat the test at S6000, S3000, and S1500 — lower RPM with shorter deceleration may not extend the delay enough.
For the Sorotec HF-Motorspindel 6508 (0.8 kW water-cooled, ER11), the manufacturer-published rundown from 24 000 RPM is about 6 s without braking and ≈ 1.2 s with DC injection. With F003 = 1 (DC brake) on the MX2 and F004 = 1.0 s, a Spindle Spin Down Delay of 3.0 s on the MASSO controller is a good starting value. Larger spindles (1.5 kW+) typically need 5–10 s.
8. Verification and Commissioning Tests
Run each test before putting the machine back into production. Carry a multimeter, an insulated clamp ammeter, and a tachometer — or use MASSO's spindle-RPM display if one is wired.
| Test | Procedure | Expected Result |
|---|---|---|
| T1 Static check | Power everything. Measure MASSO clamp output with the spindle stopped. | Output ≈ 0 V (low) or 5 V (high) per the wiring direction; the chuck does not open. |
| T2 Forced clamp while stopped | Issue M10 (clamp open) from MDI with no M3 active. | Solenoid pulls in within 50 ms, jaws open. |
| T3 Forced clamp while running | Issue M3 S6000, then immediately M10. | Solenoid must not energise. The clamp must remain closed for the full Spindle Spin Down Delay. |
| T4 Drop test | Issue M3 S12000, M5, then start a stopwatch and try M10 every 200 ms. | M10 only succeeds after the Spindle Spin Down Delay has elapsed AND spindle RPM = 0. |
| T5 Fault test | Trigger a VFD fault (e.g., E01 overcurrent during cut) and try M10. | Clamp release must still be permitted because the spindle has stopped. Relay state should reflect C036 logic. |
| T6 Power-cut test | Pull the 24 V supply while the spindle is rotating. | Clamp closes (spring-return) or remains closed (power-to-release). Machine must fail safe. |
9. Troubleshooting Matrix
| Symptom | Likely Root Cause | Fix |
|---|---|---|
| Clamp opens while spindle is rotating | VFD relay wired to NC instead of NO; C036 inverted; AL1 assigned wrong function | Verify C026 = 21, C036 = 00, contact on NO leg. Swap MA ↔ MB if logic is wrong. |
| Clamp never opens | Solenoid polarity reversed; Spindle Spin Down Delay set to maximum; AL1 not configured as input | Re-test solenoid with bench 24 V; reduce delay to 2 s for bench test; set C004 if AL1 is meant to be an input. |
| Clamp releases for <100 ms then re-closes | Optocoupler used as TTL driver (2 V drop); MASSO reads random transitions | Migrate signal path to the relay dry contact. |
| Erratic clamp release during heavy cuts | Ground loop, common-mode noise on 24 V rail | Star-ground all returns; add 100 µF electrolytic + 100 nF film across solenoid coil. |
| E03 (OC) or E07 (motor overload) fault at low RPM | b003 decel ramp set too short for Spindle Spin Down Delay; drive faults on regeneration | Lengthen b003; or set F003 = 1 (DC brake); raise b013 if regen braking resistor is fitted. |
| MASSO reports spindle speed > 0 but VFD has stopped | Encoder feedback not installed; MASSO uses commanded RPM, not actual | Fit spindle encoder, or only trust clamp logic after a manual zero-RPM verification. |
| Solenoid chatters at high RPM | EMI from VFD IGBTs coupled into solenoid coil | Move 24 V cable into shielded duct; add a flyback diode only if it is a DC solenoid and polarity permits. |
10. Safety Notes and Standards
- The relay chain is only part of the safety case. ISO 12100 (general machinery safety) and ISO 13849-1 (safety-related parts of control systems) require a risk assessment for each spindle-retention function. A belt-driven or pneumatic spindle should reach PLd category 3 at minimum if the clamp can be actuated automatically.
- For production CNC milling machines, also review ANSI/RIA R15.06 and ISO 10218-1 for industrial robot safety requirements when an ATC is fitted.
- Never use the VFD optocoupler outputs as TTL clamps drivers: the 2 V drop is enough to read as a valid high at any TTL receiver.
- The chuck itself should be specified to power-to-release (PTF / power-to-open) so that loss of compressed air or 24 V DC automatically drives the collet closed.
- Lock-out / tag-out (LOTO) the 24 V supply, the VFD main contactor, and the pneumatic air supply before any maintenance on the spindle.
Cross-reference the MASSO chuck-clamp documentation and the Omron MX2 user manual (I570-E2-02) whenever you change parameter numbering. The Hitachi WJ200 manual mirrors the same parameter table.
Why does the MASSO chuck-clamp output not protect the spindle on its own?
The MASSO output is a software-driven TTL signal that depends on the Spindle Spin Down Delay timer and the controller's idea of commanded RPM. A controller fault, missed G-code line, or stalled serial bus can drop the clamp-open command for a few hundred milliseconds — long enough to throw a tool. The Omron MX2 relay in series with the solenoid adds an independent, hardware-level proof that the spindle motor has actually stopped, because the relay only releases its contact when the drive is no longer energising the motor.
Which Omron MX2 parameter assigns "During run" to the relay?
Set parameter C026 = 21. This maps the drive's "running" status (drive output frequency > 0 or motor flux present) onto the on-board relay at terminals MA / MB / MC. Use parameter C036 to invert the contact if you need a fail-closed rather than fail-open clamp logic.
Can the MX2 optocoupler outputs (AL0 / AL1 / AL2) drive a TTL clamp input directly?
No. The optocoupler outputs have approximately 2 V of saturation drop in the "on" state. A TTL receiver interprets anything above 0.8 V as a logic HIGH, so a "logic 0" from the optocoupler still reads as HIGH at the MASSO input. Use the dry-contact relay (MA / MB / MC) only, or add an external signal conditioner / level shifter.
What should I set the MASSO Spindle Spin Down Delay to?
Measure the spindle's actual mechanical rundown time from max RPM to 0 RPM, then add 1.0–1.5 seconds. Typical values: 3.0 s for a 0.8 kW ER11 water-cooled spindle (Sorotec HF-Motorspindel 6508), 5–10 s for 1.5 kW+ spindles, and up to 15 s for high-inertia ATC spindles. Never lower this value to speed up tool changes — the clamp can release while the spindle is still rotating.
Does this wiring apply to a Hitachi WJ200?
Yes. The WJ200 is a co-developed Hitachi/Omron platform with identical parameter numbering for C026 (function select on relay) and C036 (relay inversion). Set C026 = 21, C036 to your preferred logic, and follow the same pin map. Verify in the WJ200 manual if your firmware is older than v2.00, where index 21 may need to be replaced with index 02.
Do ER11 spindles need an orientation index before the chuck clamp opens?
No. ER11 / ER16 / ER20 collets do not require a clocked orientation — the tool seats at any rotation. Only BT, CT, and CAT tapers have a drive-key and must be in a fixed angular position before an ATC can engage. For ER spindles, the chuck-clamp logic only needs the speed-and-timer gate described in this article; orientation is not required.