Skip to main content

SOURCE: Input Mapping for Tool Setter and Probe - not public

Purpose

This document tells you how to map (assign) a physical input to a MachPro probing signal for:

  • a tool setter (tool length measurement switch or plate)

  • a probe (part probe, touch plate, or ohmic probe)

Definitions

  • CNC: Computer Numerical Control.

  • I/O: Input/Output.

  • Tool setter: A device that triggers when the tool touches it. MachPro uses it to measure tool length.

  • Probe: A device or circuit that triggers when it touches the part (or a probe plate). MachPro uses it to find part edges, tops, and features.

  • Input signal: A software “name” for an input state (active or inactive) in MachPro/Mach4.

  • Pin / input pin: A physical digital input on your motion controller or breakout board.

  • Pin alias: A user-defined label for a pin. It makes mapping easier to read.

  • Active-low / active-high: The electrical logic level that the software treats as “active.” Many plugins let you set this per input.

Safety

  • Keep the Emergency Stop (E-stop) circuit available and tested before you do probe moves.

  • Make sure the probe signal is inactive before you start a probing move. If the probe signal is active at the start of a G31 move, Mach4 can treat the probe as already “hit” and continue without moving as you expect.


Tutorial

Quick check: confirm the signalinput changestriggers

  1. Click the Service tab at the bottom of the screen, then the Machine I/O tab at the top of the screen
  2. Find the probe status indicator for the probe signal you plan to use (for example, Probe or Probe 1).

  3. Trigger the device by hand:

    • push the probe tip gently to the side

    • touch the tool setter

    • short the probe plate circuit (if you use an ohmic/touch plate)

  4. Make sure the correct indicator changes state (active/inactive).

If the indicator does not change, do the mapping steps in the next sections.


How-to

Map the probe or tool setter input

  1. Go to Configure > Control > Input Signals.

  2. Decide which probe signal you will use:

      • Probe (G31 / G31.0)

      • Probe 1 (G31.1)

      • Probe 2 (G31.2)

      • Probe 3 (G31.3)

    The Probe signal is usually reserved for the touch probe, and Probe 1-3 are used with tool setters.
  3. Enable the selected probe signal.

  4. Map the selected probe signal to the physical input:

    • Select your motion controller in the Device column

    • Select the input you are using on the Input Name column

  5. Set the correct active state (active-low or active-high) for that input.

  6. The State column will be green if that input is currently active. Use that to verify the input mapping and Low or High State configuration
  7. Save the configuration.

  8. Test the mapping in Diagnostics:

    • Manually trigger the probe or tool setter.

    • Make sure the correct probe indicator changes state.

Map the tool setter overtravel (limit) input

Use this when your tool setter has a second switch for overtravel (fault protection). This circuit is usually wired Normally Closed (NC) so that its state will change if there is overtravel on the device, or if the input cable is cut. 

  1. Wire the overtravel switch to a digital input.

  2. Go to Configure > Control > Input Signals.

  3. Map the overtravel input to an unused input or the Z negative limit signal.

  4. Test the overtravel switch:

    • Trigger it by hand (only if it is safe).

    • Make sure MachPro shows the limit/fault state.

  5. Keep the overtravel signal separate from the probe signal. A common setup is:

    • main tool setter switch → probe signal

    • overtravel switch → Z-- limit or a dedicated fault input


Reference

Probe signal to G-code mapping

Probe signal name in MachPro/Mach4 Probing G-code
Probe G31 or G31.0
Probe 1 G31.1
Probe 2 G31.2
Probe 3 G31.3

Troubleshooting

  • Probe indicator is always active:

    • wrong active-low/high setting

    • wiring is reversed (NO vs NC)

    • probe circuit is shorted

    • probe signal is mapped to the wrong input

  • Probing routine fails to start or gives wrong results:

    • probe signal is not mapped in Input Signals

    • wrong probe code selected (G31 vs G31.1, etc.)

  • False triggers (noise):

    • add noise filtering/debounce in the plugin (if available)

    • use shielded cable and correct grounding


Explanation

MachPro reads physical inputs from your motion controller. Each input must be mapped to a software signal so MachPro can use it.

Tool setters and probes both use the Mach4 probing system. That is why they map to probe signals (Probe, Probe 1, Probe 2, Probe 3). The probing G-code selects which probe signal MachPro watches during the move (G31, G31.1, and so on).