Hello Guest it is January 15, 2026, 09:09:44 AM

Recent Posts

Pages: « 1 2 3 4 5 6 7 8 9 10 »
71
Mach4 General Discussion / Re: Can't seem to get PWM output
« Last post by arturod on January 02, 2026, 06:00:50 AM »
The C25 has LEDs on all I/Os, so you should see the LED for the PWM light up as soon as it is sending 100%.  There are other parameters that you are not showing in the screenshots.

It may be easier if you set up a new test profile and just run the installer to configure the C25XP on it: https://www.cnc4pc.com/knowledge/article/249

That way, you will have a working profile from which you can copy the working configuration.

Arturo Duncan
https://cnc4pc.com
73
Mach4 General Discussion / Centroid KP-1 Probe ESS C82 board Mach4
« Last post by Sabre38 on January 01, 2026, 11:28:31 PM »
bought a Centroid KP-1 touch probe, Mach 4 not detecting probe trip.  Using ESS and C82 board with Machh4.  White wire from probe to Port 2 pin 9, active low, Black wire to Common. Green wire to ground and red to +24 volts DC. I hooked a volt ohm meter from pin 9 to common and the meter indicates pin goes to common when probe tripped. Probe goes from Greed LED to Red when tripped and verified with meter.  Mach shows no change of state. Diagnostic Page probe LED does not change. Probe enabled set to port 2 pin 9 active low. selected probe 0 in Mach4.  Any help would be great.
74
SmoothStepper USB / Centroid KP-1 Probe ESS C82 board Mach4
« Last post by Sabre38 on January 01, 2026, 11:22:44 PM »
bought a Centroid KP-1 touch probe, Mach 4 not detecting probe trip.  Using ESS and C82 board with Machh4.  White wire from probe to Port 2 pin 9, active low, Black wire to Common. Green wire to ground and red to +24 volts DC. I hooked a volt ohm meter from pin 9 to common and the meter indicates pin goes to common when probe tripped. Probe goes from Greed LED to Red when tripped and verified with meter.  Mach shows no change of state. Diagnostic Page probe LED does not change. Probe enabled set to port 2 pin 9 active low. selected probe 0 in Mach4.  Any help would be great.
75
Mach4 General Discussion / Re: Can't seem to get PWM output
« Last post by jcizek on January 01, 2026, 11:35:52 AM »
OK, further testing has helped me narrow the problem down.

If I start Mach4, and hit either of the Spindle CW or Spindle CCW buttons, the appropriate relay is selected but I get no PWM.  If I go to MDI and issue a spindle command (M03 S24000 for example), everything works perfectly.  I get exactly the right PWM, the spindle spins to 24K CW.  From this point on, ALL buttons and sliders work perfect.  The On/Off CW/CCW and speed slider adjusts the spindle exactly how it's supposed to!  It's only when Mach4 starts up and before issuing an MDI command manually that PWM will not work.   I checked into the screenset (using wxRouter) and I see that the CW button calling a lua script called "StartCW()" which I assume is an internal script.

I am doing my best learning about screensets and Lua scripts, but it seems like when Mach4 starts, some variable isn't passed into the Lua script to give it a value for the PWM/Speed?  I'll continue learning about this, but if anyone has an idea on what might be missing on startup, I'd appreciate any pointers.
Thanks!

James
76
Mach4 General Discussion / Can't seem to get PWM output
« Last post by jcizek on December 31, 2025, 07:02:37 PM »
Hello all,

I am trying to convert from a simple spindle on/off relay to full control with speed.  I have choosen Port 2 Pin 4 as my PWM port, and Port 2 pin 5 as my DIR port.  The DIR works fine and is switching the CNC4PC C41 board appropriately.    But I cannot get Mach4 to send PWM at all.  I am using an Ethernet Smoothstepper and have followed all of their instructions, and double checked that against the Mach4 instructions for PWM spindle, and that also jives with the CNC4PC published instructions.   I have an oscilloscope on the PWM line to monitor it.  I do have pins 2-9 on port 2 set as output, have set all appropriate settings in both the ESS spindle config, output pins, pins config menus as well as the spindle menu in Mach4 under general config.
I know the pin works ok as when I switch it back and forth from active high to active low in PINS Config, I see the Oscope trace move from 0 to 5 volts and back.  But regardless, I cannot get ANY PWM out.
Would anyone have any suggestions on where I might look to see my error?
Thanks
James
77
Mach4 General Discussion / Registers from a Macro
« Last post by cd_edwards on December 31, 2025, 12:47:52 PM »
local inst = mc.mcGetInstance()
local hreg, rc, ignoreDustBoot
hreg, rc = mc.mcRegGetHandle(inst, "iRegs0/nf/TRC/IgnoreDustBoot")
if (mc.mcInEditor() == 1) then
   mc.mcCntlSetLastError("crap")
end

This fails on Windows 10. One Windows 11, success. I've installed the latest VC++ package on windows 10 which fixed a machipc.dll error I was getting previously.
The register exists and has a value of 1. the rc code is 0, but hreg is 0 also. This should work. It's part of a larger script which has stored values for the dustboot location.

Colten.

78
General Mach Discussion / Re: Bitsensor LAN controller plug-in
« Last post by geast on December 31, 2025, 09:25:19 AM »
Hello all.
I try to communicate with this board but with no luck. I change the IP address of the PC ethernet card to 192.168.8.100 and althougth i get a response from card by ping at 192.168.8.8 the mach3 plugin does not "see" the card.
I try both plugins BS5Axes.dll and BsEth5.dll but none of them get a response from card.
I also try with the Paraminjector.exe to change the ip address of the card but with no luck. Only the -find works and finds the card at 192.168.8.8.
Attached are the two dll files if anyone can check them.
79
You can use the Mach4GUIR.exe Remote GUI pretty easily.  Install Mach on the remote PC.  You will have to make a shortcut to launch the remote GUI and pass parameters to it.  A license is not required for the remote PC.

Mach4GUIR </r mach4.ip.address> </s screen name> [/e] [/f] [/m]

/r is required.  substitute mach4.ip.address with the ip address of the PC running the licensed Mach4.
/s is required.  It is the name of the screen set that the remote GUI uses.  You probably want to make your own custom screen set that does just what you want.  It has to be located in Screens directory of the remote PC.
/e is optional -- start the GUI in screen edit mode.
/f is optional -- start in full screen mode
/m is optional -- remove the menu.

You have to launch the remote GUI AFTER Mach is started on the controller PC.  There is no way to remotely start Mach with the remote GUI.  However, you can do Windows remote execution methods, given it is setup properly, with psexec.  https://ss64.com/nt/psexec.html

Steve


sorry for bringing up this old thread. I just discovered this and attempted it. Firewall is OFF on the machine running Mach4. There's a outbound rule allowing Mach4GUIr.exe. I can run Mach4GUIr.exe on the local machine with 127.0.0.1 but remote access is not possible as it gives me an unable to connect error. Unsure where to go from here though.

Colten
80
Mach4 Plugins / Re: MACH4 Problem z G83
« Last post by JohnHaine on December 29, 2025, 03:39:05 AM »
Why is g98 after g83? Surely g83 expects to be followed by the peck drill parameters?
Pages: « 1 2 3 4 5 6 7 8 9 10 »