Skip to main content

Install Instructions

Tensile Mill Install


 M31 CONTROLLER INSTALLATION & WIRING Step 1.1 — Mount the M31 Controller

Install the M31 Motion Controller in the bottom-left section of the control panel.
Ensure it is firmly mounted and positioned so that the J1–J18 terminals face outward for wiring access.


image.png

IYPimage.png

Step 1.2 — Install the X Limit Wire Into J1 Input 00

Insert the X-axis limit switch wire into terminal J1 → Input 00.
Tighten the screw terminal firmly.

Step 1.3 — Install the Y Limit Wire Into J1 Input 01

Insert the Y-axis limit switch wire into terminal J1 → Input 01.

Step 1.5 — Install the Z Limit Wire Into J1 Input 02

Insert the Z-axis limit switch wire into terminal J1 → Input 02.

image.png

Step 1.6 — Verify Limit Order

Ensure the limit switches are connected in this order:

  • 00 → X

  • 01 → Y

  • 02 → Z

SECTION 2 — EMERGENCY STOP WIRING Step 2.1 — Route E-Stop Wires to J6

Locate the E-Stop pair and route them into the J6 terminal on the M31.

image.png


Step 2.2 — Connect E-Stop (ESTP) and +24V at J6

Connect:

  • ESTP → E-Stop signal

  • +24V → E-Stop supply

image.png

SECTION 3 — POWER WIRING Step 3.1 — Wire 24V Power Inputs

Connect the main 24V power to J8 Power:

  • 24V+ → brown wire

  • 24V– → blue wire

image.png

image.png

SECTION 4 — OUTPUTS AND RELAY WIRING Step 4.1 — KM1 Pump Relay Output into J10 Output 0

Insert the wire labeled J4KM1 or KM1 pump relay into:

  • J10 → Output 0

image.png

SECTION 5 — J12 MOTOR / ENCODER / SIGNAL BLOCK Step 5.1 — Connect S+ Using Wire 6208

Insert wire 6208 into terminal J12 → HwEN.

Step 5.2 — J12 slot 01 Using Wire 6209

Insert wire 6209 into terminal J12 → H-

Step 5.3 — Connect DrEN and D– in the J12 terminal

You have two paired wires:

  • +24V → goes to DrEN

  • 6210 → goes to D–


image.png

SECTION 6 — ETHERCAT CONNECTION Step 6.1 — Plug EtherCAT Cable into M31

Connect the EtherCAT cable from the servo drives into the EtherCAT port on the M31.

image.png


Step 6.2 — Connect MACHJ20 Cable to HMI

Plug the top Ethernet port labeled MACHJ20 into the HMI LAN port.

image.png

SECTION 7 — HMI ARM INSTALLATION Step 7.1 — Replace Factory Bolts with M8 × 1.25 × 35mm

Use four M8 × 1.25 × 35mm hex-head screws

image.png

ensure you have a length (horizontal) measurement of (13 1/2in ) on your arm 

and a height (vertical) measurement of ( 9in) on your arm

Step 7.2 — Mount Base of HMI Arm

Secure the HMI arm base to the cabinet using the four upgraded screws.

image.png 

image.png

Step 7.3 — Feed HMI Cables Through Cabinet and Arm

Feed all HMI cables:

  • Through front cabinet bottom panel

  • Through the HMI arm base

  • Up through arm segments

image.png

image.png

Step 7.4 — Insert and Tighten Arm Elbow

Install the horizontal arm (Cut to 13 1/2 inches), insert the internal cushion, then the elbow piece, 

tighten screws,

image.png

image.png

image.png

Step 7.5 — Install vertical arm (Cut to 9 inches) and route Cables Into HMI Back Panel

Feed cables up into the rear panel opening of the HMI.

image.png

image.png

image.png

Step 7.6 — Before mounting HMI Rotate HMI to (Confirm Movement in the correct direction and not backwards)

Ensure the screen rotates freely in the correct direction.

image.png

then mount the HMI

image.png

SECTION 8 — NETWORK CABLING Step 8.1 — Route Motion Control Cable to LAN1

connect from M31 and route cable into the LAN1 port on the HMI.

along with plugging in the power and zero and ground into the back panel

image.png

SECTION 9 — SOFTWARE SETUP (HMI) Step 9.1 — Download Correct MachMotion Version

On the HMI:

  • Power on

  • Download MachMotion

  • Find latest tensile mill customer backup

  • Compare version numbers on server vs. local machine

Step 9.2 — Copy Machine Backup to USB

Copy newest backup onto USB → transfer to machine.

Step 9.3 — Rename Old Mach4 Folder

Rename existing folder:

  • Mach4 → Mach4_old

Step 9.4 — Copy New Mach4 Folder

Paste new backup, rename folder to:

  • Mach4 (no spaces, no periods)

SECTION 10 — DRIVE SOFTWARE (VFD + SERVO) Step 10.1 — Install Required Software

Install:

  • DCISoft 1.26 (for VFD)

  • Leadshine software (for Servos) (witing the M Drive)
  • MotionStudio v2.3.2

Ensure computer/HMI has:

  • USB-B

  • USB-C

Step 10.2 — Set MotionStudio Language to English

Open MotionStudio → Click language → select English → press Yes → restart.

Step 10.3 — Locate Correct MS300 Software Version

Use:

DELTA_IA-MDS_VFDSoft_V1-58_SW_20180725

10.4.1 — Install the Software

  1. Locate the installer file.

  2. Right-click and select Run as Administrator.

  3. Install using all default settings.

  4. When completed, launch the program.


10.5 — Connect to MS300 VFD

10.5.1 — Prepare the VFD

  1. Power ON the machine.

  2. Ensure the VFD is connected to the control PC via your USB-to-RS485/Modbus adapter.

10.5.2 — Detect the VFD in Software

  1. Open MDS VFDSoft.

  2. Click Scan.

  3. Select the COM port the USB adapter uses.

  4. Press Connect.

10.5.3 — Upload Correct Parameters

  1. Load your saved MS300 configuration file (if provided).

  2. Press Write to Drive.

  3. Cycle power to the VFD.


10.6 — Install Servo Drive Software

The Yaskawa, Delta ASDA-B2, Leadshine, or other servo drives require their manufacturer configuration utility.

10.6.1 — Install Servo Utility (Example: Delta ASDA-Soft)

  1. Open installer.

  2. Install with default settings.

  3. Connect USB-RS232/USB-Mini cable to servo drive.

  4. Open the utility software.

10.6.2 — Load Drive Parameters

  1. Identify each drive (X, Y, Z).

  2. Load the correct .prm file or factory configuration.

  3. Write parameters to the drive.

  4. Reboot the servo drive.

10.7.1 — Open VSI Device Manager

  1. Go to:
    C:\Mach4Hobby\VSI Device Manager

  2. Launch VSI Device Manager.

  3. Click Scan in the top-left.


10.7.2 — Select the Controller

After scanning, you should see a device with the following IP:

192.168.208.35
(This is the MachMotion M31 control board.)

  1. Click to highlight 192.168.208.35.

  2. Verify that the device information loads in the lower panel.


10.7.3 — Enter Loader Mode

In the lower panel of VSI Device Manager:

  1. Click “Load Mode”
    (sometimes labeled Boot Mode, Loader Mode, or Load Boot File Mode depending on software version)

The M31 will switch into loader mode, allowing firmware changes.


10.7.4 — Update the FPGA

  1. Click Fast FPGA (button in lower panel).

  2. Browse to the most up-to-date FPGA file provided by MachMotion.
    (File extension is usually .rbf)

  3. Click Open / Write to begin flashing the FPGA.

  4. Reboot the controller when prompted.


10.7.5 — Update the Firmware

After reboot:

  1. Click Firmware Update (or Load Firmware File).
    (Button is in the same lower panel as the FPGA option.)

  2. Browse to the latest firmware file (.bin).

  3. Click Write to flash firmware.

  4. Wait for confirmation.

  5. Reboot the controller again.


10.7.6 — Finalize

  1. Close VSI Device Manager.

  2. Power cycle the entire machine:

    • Turn OFF main power

    • Wait 10 seconds

    • Turn power ON again

This ensures the M31 loads the new firmware and FPGA.

10.8 — Verify EtherCAT & Controller Status in Mach4

After updating the FPGA and Firmware and power cycling the machine, you must confirm that Mach4 recognizes the controller and all EtherCAT devices correctly.

10.8.1 — Launch Mach4

Open Mach4 normally from the HMI.

Wait for the main screen to finish loading.


10.8.2 — Check M31 Status

Open:

Diagnostics → M31 Status Panel

Verify:

  • Controller: Connected

  • Firmware Version: Updated

  • FPGA Version: Updated

  • EtherCAT: Running

  • Axis Drives: Enabled / Idle

  • No Faults or Lost Steps warnings

If anything shows red or Not Connected, power-cycle again.


10.8.3 — Check EtherCAT Devices

Open:

Diagnostics → EtherCAT

You should see:

  • M31 Controller

  • X-Axis Servo Drive

  • Y-Axis Servo Drive

  • Z-Axis Servo Drive

  • Any additional EtherCAT devices (IO blocks, tool setter blocks, etc.)

All devices should show:

  • Status: OK / Operational

  • Heartbeat: Active

If any drive is offline, check:

  • EtherCAT cable connections

  • Drive power

  • Termination (if required)

  • Drive alarms


10.8.4 — Verify Physical Inputs/Outputs

Before programming IO in Mach4, confirm that the hardware physically works.

Open:

Diagnostics → M31 I/O Monitor

Check:

  • Press the E-Stop → EStop changes state

  • Activate each Limit Switch → corresponding input toggles

  • Probe/tool setter → toggles input when depressed

  • Turn ON outputs manually (if toggling allowed) → coolant relay clicks / output LED activates

This proves the board and wiring are correctly connected before configuring Mach4.


10.9 — Program Inputs in Mach4 (Correct Method)

Now that inputs are verified, configure them in Mach4’s control system.

10.9.1 — Open the Control Configuration

Mach4 Menu → ConfigureControl…

Click the Input Signals tab.


10.9.2 — Assign Each Machine Input

For each input:

  1. Check Enabled

  2. Device should be set to M31

  3. Set the correct Input Number (0–7 depending on J1 terminal)

  4. Set Active Low if your switch is wired Normally Closed (NC)

Function Mach4 Signal Name M31 Input # Physical Terminal
X Limit X-- 0 J1-00
Y Limit Y-- 1 J1-01
Z Limit Z-- 2 J1-02
Probe Probe Input As wired J1-xx
E-Stop EStop ESTP input J6

10.9.3 — Save Inputs

Click OK, then restart Mach4 when prompted.


10.10 — Program Outputs in Mach4

Now configure coolant, spindle enable, and any auxiliary outputs.

10.10.1 — Open Output Signals

Mach4 Menu → ConfigureControl… → Output Signals


10.10.2 — Assign Outputs

For each output:

  1. Enable the output

  2. Set Device to M31

  3. Assign Output # (0–7 depending on J10 terminals)

Your Likely Output Mapping:

Function Mach4 Output M31 Output # Terminal
Coolant Pump Flood 0 J10-00
Mist (optional) Mist 1 J10-01
Spindle Enable SpindleOn 2 J5 or J10-02
PWM Spindle/Laser PWM J7 PWM pin J7

If a relay behaves backward, toggle Active Low.


10.10.3 — Save Outputs

Click OK
Restart Mach4.


10.11 — Configure Homing & Soft Limits

Homing MUST be set up before calibrating the machine.

10.11.1 — Open Homing Settings

Mach4 → Configure → Control → Homing/Soft Limits


10.11.2 — Assign Homing Order

  1. Z Axis — Home Order 1

  2. X Axis — Home Order 2

  3. Y Axis — Home Order 3


10.11.3 — Set Homing Directions

Based on typical tensile mill design:

  • Z homes Positive (UP)

  • X homes Negative

  • Y homes Negative

Reverse direction in Motor Config if needed.


10.11.4 — Test Homing

Click Ref All Home

Verify:

  • Z raises to switch

  • X moves to its limit

  • Y moves to its limit

  • No axis crashes or moves opposite

If incorrect direction:
Mach4 → Configure → Control → Motors → check Invert Motion


10.12 — Axis Calibration (from Your PDF)

Based on “mach4-axis-motor-calibration.pdf”

Mach4 supports Manual and Automatic axis calibration.


10.12.1 — Open Calibration Tool

Mach4 → Configure → Plugins → Machine Calibration

Choose Manual Calibration or Automatic Calibration.


Manual Calibration Procedure (Recommended for Precision)

10.12.2 — Manual Calibration Steps

  1. Select the axis (X/Y/Z).

  2. Enter a commanded distance (e.g., 2.0000 inches).

  3. Click Enable.

  4. Click Move.

  5. Measure actual travel using:

    • Dial indicator

    • Caliper

    • Gauge block

  6. Enter the actual distance traveled.

  7. Click Submit — Mach4 calculates new Steps Per Unit.

  8. Click Accept.

Repeat for each axis.


Automatic Calibration Procedure

10.12.3 — Automatic Method

Enter:

  • Motor model

  • Gear ratio

  • Ball screw pitch

  • Microstep setting

Mach4 calculates theoretical values and loads them.

Fine-tune afterward with manual calibration.


10.13 — Final Machine Validation Checklist

Before running production or test cycles, verify:

10.13.1 Mechanical

✔ All axes home correctly
✔ No binding or sticking
✔ Motors run smoothly

10.13.2 Electrical

✔ IO states correct
✔ Outputs activate correct devices
✔ All limits function
✔ E-stop functions every time
✔ No servo drive alarms
✔ VFD responds to Mach4 commands

10.13.3 Software

✔ EtherCAT online
✔ M31 connected with firmware/FPGA updated
✔ Correct Mach4 profile loaded
✔ Calibration accuracy within tolerance
✔ Soft limits verified

Step 11- Mount and wire Tool Setter

image.png

11.1- Enlarge Tool Setter cable pass-through hole to fit the armored section of the cable and add 2 cable tie down points (8/32 screws and nuts)

image.png

11.2- Run Tool Setter cable through the cable track

image.png

11.3- Run Tool Setter Cable out of the cable track and into the black loom, down into the cabinet

image.png

11.4- Wire the Tool Setter into the M31

Orange Wire- Tool Setter Touch-    Label 6114-    J1 Port 5

Blue Wire- Tool Setter Limit-   Label 6116-    J1 Port 6

Green Wire- 24VDC+ Common-    Label 6115-    J2 Port 2

Brown Wire- 24VDC+ Common-    Label 6113-    J2 Port 3

Red Wire- 24VDC+ Common-    Label 6112-    J2 Port 4

Grey Wire- 0VDC- Common-    Label 0V-    J11 Port 1

image.png