Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tamstb5100 with mach3
• Yes – the STB5100 is a 5-axis USB motion-control card that can be run from Mach3 via the dedicated “BL-UsbMach” (Novusun) plug-in.
• The board does not use (or need) the LPT/parallel-port driver; all step/dir timing is generated on the STB5100 itself.
• Correct operation depends on:
– installing a plug-in that matches your Mach3 build,
– supplying both logic-side (5 V USB) and field-side (12-24 V) power,
– wiring step/dir, limit, e-stop and spindle pins exactly as listed in the board manual, and
– understanding current limitations (no software-slave axis, max ≈ 100 kHz per channel, etc.).
Hardware architecture
• STB5100 contains a small MCU/FPGA that receives motion vectors from Mach3 over USB and generates deterministic step pulses (≤ 100 kHz, 2–5 µs min. pulse width).
• It provides five step/dir outputs (XP|XD … BP|BD), four general-purpose opto-isolated outputs (OUT1-OUT4), five isolated inputs (IN1-IN5), a relay (RL-NO, RL-COM), a 0–10 V analog spindle output (VSO) and an MPG header.
• Two power domains are mandatory:
– +5 V from the USB-B connector (logic & PC-side of optos)
– 12–24 V DC (> 0.5 A) on the 2-pin terminal (field-side of optos, relay coil, analog stage).
• Because step generation is local, the PC no longer requires a deterministic kernel; Mach3 can therefore run on 32- or 64-bit Windows (XP → Win 11) as long as the plug-in loads.
Software/plug-in chain
• Only the “BL-UsbMach.dll” supplied by Novusun/Sainsmart will expose the STB-series controller to Mach3 (Config » Plug-in Control » BL-UsbMach).
• Use Mach3 build 3.043.062-066; older or heavily patched versions sometimes fail to open the plug-in’s property page.
• After enabling the plug-in you do not enter pin numbers under “Ports & Pins”; mapping is done once inside the plug-in dialog (figure 1). Mapping must match the silk-screen labels:
| Axis | STEP (PUL-) | DIR (DIR-) | Enable |
|---|---|---|---|
| X | XP (Pin 2) | XD (Pin 3) | ENA (Pin 14) |
| Y | YP (Pin 4) | YD (Pin 5) | — |
| Z | ZP (Pin 6) | ZD (Pin 7) | — |
| A | AP (Pin 8) | AD (Pin 9) | — |
| B | BP (Pin 16) | BD (Pin 17) | — |
(Pin numbers shown are those printed on the PCB, not Mach3 LPT numbers.)
Motion characteristics
• Pulse width auto-scales with frequency but verify that the chosen driver (TB6600, DM542, etc.) can accept 3.3–5 V logic with ≥ 2 µs pulses.
• Max reliable rate from field reports ≈ 80–100 kHz. At 8× micro-step and 200 step/rev, that is ≈ 375 mm/s on a 5 mm-pitch screw – plenty for hobby routers.
Limitations and work-arounds
• No axis-slaving in firmware. If you need gantry squaring, hardware-tie the A-axis STEP/DIR to Y (or buy a board whose firmware supports slaving, e.g. NVEM/NVUM 7-axis, UC300, SmoothStepper). Inverse DIR on only one side if motors are mirrored (simple 74HC04 inverter or use opposite driver polarity).
• Only one on-board relay; external solid-state relays may be needed for coolant, vacuum, etc.
• Analog spindle output is un-buffered; keep shielded twisted pair to VFD AVI/ACM and tie grounds.
Typical commissioning sequence
• Novusun continues to update the BL-UsbMach plug-in (last public build mid-2023).
• Community patches add soft-limits and MPG MPG configuration; check CNCzone “STB5x00 thread.”
• Ethernet motion cards (ESS, UC300ETH, Planet-CNC) are gaining favor due to lower EMI sensitivity and real-time buffering; if you outgrow USB, migration is straightforward.
• Mach3 itself is end-of-life; future-proof projects can adopt Mach4 or UCCNC, but STB5100 is Mach3 only.
• Why no standard “Ports & Pins”? – Because USB cards implement virtual IO. The LL (low-level) driver in the card already knows which physical line is “Pin 2,” so Mach3’s legacy LPT bitmap is bypassed.
• Pulse/Dir topology: STB5100 uses common-anode wiring (PUL+/DIR+ permanently tied to +5 V). If your driver uses common-cathode, reverse the connections (DIR+ → 5 V, DIR- → XD).
• Charge-Pump: some board revisions expose a 12.5 kHz watchdog input; the plug-in can generate it from pin 17. Leave disabled unless you need fail-safe lockout.
• Mach3 is closed-source, licence bound to one PC. Using a cracked copy violates ArtSoft EULA and may cause plug-in refusal.
• Always wire a physical e-stop in series with drive power; depending solely on USB for stop commands is unsafe.
• Mount the controller in a grounded metal enclosure to reduce radiated USB noise.
• Route step/dir as shielded twisted pair, 5 V single-ended, ≤ 30 cm if possible.
• Use ferrite bead on USB cable; disable Windows “USB selective suspend.”
• Keep the 0–10 V analog line separate from stepper wiring; add RC filter 100 Ω/0.1 µF at VFD input if erratic.
• If you experience intermittent disconnects, insert a powered USB hub or move the PC ground reference closer to machine ground.
• Because firmware is proprietary, custom features (rigid tapping, backlash comp at controller level) are not available.
• Reported freezing on Windows 10 22H2 stems from FTDI driver 2.12.x; revert to 2.10.x or use Zadig-libusbk.
• Investigate open-source motion stacks (GRBL-ESP32, FluidNC) if you need Ethernet, web UI, or g-code streaming from SD.
• Compare jitter and throughput of STB5100 vs ESS/UC400 vs DDS-controlled STM32 boards.
• Look up IEC 60204-1 for machinery safety wiring, and ISO 13849-1 for e-stop performance levels.
The STB5100 + Mach3 ensemble is an inexpensive path to 5-axis hobby CNC control. Install the correct BL-UsbMach plug-in, power the board’s two domains, map axes inside the plug-in (not Ports & Pins), respect its limitations (no firmware slaving, ≤ 100 kHz step), and pay attention to shielding and grounding. For higher reliability or advanced features you may eventually migrate to Ethernet or Mach4-class controllers, but for light-duty routers, plasma tables and engravers the STB5100 remains a viable, budget-friendly option.
User question
os master salwe
Artificial Intelligence Response
Direct answer to the question
2) Master/slave (axis slaving) in CNC motion control (e.g., Mach3/STB5100)?
Please confirm which topic you meant so I can focus the details. Provisional, consolidated guidance follows for both.
Detailed problem analysis
Operating systems (OS) master–slave (leader–follower)
CNC/motion control axis master–slave (leader–follower)
Current information and trends
Supporting explanations and details
Ethical and legal aspects
Practical guidelines
Possible disclaimers or additional notes
Suggestions for further research
Brief summary