Hello Guest it is January 08, 2026, 02:14:13 PM

Recent Posts

Pages: « 1 2 3 4 5 6 7 8 9 10 »
31
Mach4 General Discussion / Re: Registers from a Macro
« Last post by SwiftyJ on January 03, 2026, 04:19:45 AM »
Are you executing this inside ZeroBrane to test or from within Mach? Which build of Mach4 are you using?

This line: mc.mcCntlSetLastError("crap") is also missing "inst"
32
Mach4 General Discussion / Re: Can't seem to get PWM output
« Last post by SwiftyJ on January 03, 2026, 04:16:20 AM »
Isn't this just a case of it doesn't know what spindle speed you want, so it's not going to start until you tell it a speed? You could type a speed into the 'PGM RPM' DRO below the Spindle On/Off button before pressing the button, or you could modify the SpinCW() function to set an S value.
33
Mach4 General Discussion / Re: Can't seem to get PWM output
« Last post by jcizek on January 02, 2026, 07:46:25 PM »
Thanks Arturo,  but I don't have a C25.   I don't really think I need it, I've got the PWM problem resolved, I just can't figure out the Mach4 spindle buttons.  Very strange that they work (the on/off and speed slider) fine AFTER you issue ANY M03 or M04 command, but not until then.  Gotta be a variable or something not populating at Mach4 startup I am thinking, but I am deep in learning how all the Lua stuff works right now in hopes that that will uncover what's going on here.

Thanks
James
34
Mach4 Plugins / Re: MACH4 Problem z G83
« Last post by mirek1362 on January 02, 2026, 11:06:45 AM »
Bez różnicy czy G98 jest przed g G83 czy po  I tak nie działa.

It doesn't matter if G98 is before or after G83, it still doesn't work.
35
Mach4 General Discussion / Re: Centroid KP-1 Probe ESS C82 board Mach4
« Last post by arturod on January 02, 2026, 06:15:58 AM »
From what you are saying, I see that you are connecting this to the terminals of the C82.  Keep in mind that the inputs of the C82 use bidirectional optos that work from +5vdc to +24vdc.  Maybe you are not wiring the correct common for the signals.  I think that the output of the centroid probe is equivalent to an NPN, and this wiring diagram may help:
https://www.cnc4pc.com/knowledge/article/195

You can also open a ticket in our website and send pictures of your wiring and we will give you a hand with this: https://www.cnc4pc.com/helpdesk/customer-care-4?contact_form=1

Arturo Duncan
https://cnc4pc.com
36
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
38
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.
39
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.
40
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
Pages: « 1 2 3 4 5 6 7 8 9 10 »