Hello Guest it is July 18, 2025, 09:47:56 AM

Recent Posts

Pages: « 1 2 3 4 5 6 7 8 9 10 »
21
General Mach Discussion / Re: Mach 3 Welder Setup and Rotary Question
« Last post by fpm007 on July 16, 2025, 08:51:03 AM »
I've no real idea but my gut feeling is that I would call the F1500 parameter BEFORE N6.
Once executed, the 'F' parameter persists until the next 'F call'.

This does not change anything. The machine has to "think" when it sees the M5 and allows the rotary to stop for a split second. Its like it need to process the code faster.

Surely the machine also has to 'think' when it sees the F1500 - and that is within the [Start] [Stop] 'loop' so simply moving that out of the loop ought to have some effect?

I moved it after N5 and it still did not change anything.
22
General Mach Discussion / Re: Mach 3 Welder Setup and Rotary Question
« Last post by JG on July 16, 2025, 08:34:58 AM »
I've no real idea but my gut feeling is that I would call the F1500 parameter BEFORE N6.
Once executed, the 'F' parameter persists until the next 'F call'.

This does not change anything. The machine has to "think" when it sees the M5 and allows the rotary to stop for a split second. Its like it need to process the code faster.

Surely the machine also has to 'think' when it sees the F1500 - and that is within the [Start] [Stop] 'loop' so simply moving that out of the loop ought to have some effect?
23
General Mach Discussion / Re: Mach 3 Welder Setup and Rotary Question
« Last post by fpm007 on July 16, 2025, 08:23:21 AM »
I've no real idea but my gut feeling is that I would call the F1500 parameter BEFORE N6.
Once executed, the 'F' parameter persists until the next 'F call'.

This does not change anything. The machine has to "think" when it sees the M5 and allows the rotary to stop for a split second. Its like it need to process the code faster.
24
General Mach Discussion / Re: Mach 3 Welder Setup and Rotary Question
« Last post by JG on July 16, 2025, 07:52:05 AM »
I've no real idea but my gut feeling is that I would call the F1500 parameter BEFORE N6.
Once executed, the 'F' parameter persists until the next 'F call'.

25
General Mach Discussion / Mach 3 Welder Setup and Rotary Question
« Last post by fpm007 on July 16, 2025, 07:39:21 AM »
I have been using Mach 3 with a rotary setup for a while now. I am trying to fix one spot on my code where I am having some build up of weld because the rotary axis stops for a split second. I have several different ideas on how to fix this but I cannot get my code to function like I want it to. Is there a way to turn on a rotary for X amount of time rather than rotating to a degrees. Or is there a way to put a M3 in a line and have the rotary continue to move. I will post my code that I am using below. Between lines N7 and N8 there is a split second stall in the rotary. If there was a way to have that continuously move while the weld tapered out this setup would work perfectly.

N1 (USER 3)
N2 G91
N3 G0 A0.0
N4 M8 (GAS ON)
N5 G04 P1.5
N6 M3 (Start Weld)
N7 G01 A-400.0 F1500.00 (ROTATIONAL SPEED)
N8 A-60.0 M5 (Stop Weld)
N9 G04 P1.5 (DWELL FOR POST FLOW TIME)
N10 G0 A520.0 X-0.400 (MOVE TO NEXT START POSTION)
N11 M30
26
General Mach Discussion / Re: CNC Router stop start and also mouse freeze
« Last post by Tweakie.CNC on July 16, 2025, 12:02:32 AM »
The spindle power supply come from the same 230 volt as al the other power supplies and all are earthed together maybe it should haave it's own supply and earth.
please advise?

I have no experience of using DC spindle motors so all I can say is try it and see if it cures the issue.

Tweakie.
27
Mach4 General Discussion / Re: Hello folks. Need macro help please
« Last post by Cbyrdtopper on July 15, 2025, 04:31:18 PM »
Same process for the code.
Set the function up in the screen load script exactly the same as stated above.  Only this time you don't need to set the input up in the SigLib.  Just the function like the gotoworkzero. 
Then just add a button to the screen and in the "Clicked Script" just put the function in the code.  GoToToolSetter()
28
Mach4 General Discussion / Re: Hello folks. Need macro help please
« Last post by MikeSibleyTN on July 15, 2025, 04:29:08 PM »
Thank you very much!  A screen button would be much better.

Mike
29
Mach4 General Discussion / Re: Hello folks. Need macro help please
« Last post by Cbyrdtopper on July 15, 2025, 04:26:47 PM »
You can do this with an on screen button if you'd like.  You can use the Go To Work Zero button as an example and then the Go To Work Zero Function in the screen load script and copy and modify it how you would like.
But you can do this with a keyboard input if you want.
Set a keyboard button in the Keyboard Plugin.  Name the input and select a Key, do not assign it a function, just click the function and close it so it says "none". 
Close mach4 to initialize the change.
In the inputs tab in the Mach4 Configure, activate an input and set the input's device to Keyboard and then in the dropdown select the keyboard input you want to use.

In the screen load script (in the screen editor), use the GoToWorkZero function as an example.  Copy the function and rename it whatever you like and paste it right below the gotoworkzero function.
Name it GoToToolSetter() if you want.  Adjust the code to do what you want.  If you have working home switches and you know what your position is going to always be, you can use G53 G00 X## Y## Z##.  this will use the machine coordinates.  Otherwise, just use G90 G00 X## Y## Z##.
I would suggest looking at the gotoworkzero code again, it uses a safe move to Z0 then moves XYA and the moves Z again. 

At the top of the screen load script in the SigLib, there are examples of how to use and input to run a function.  Copy one of those and set it to your input number you set up in the Mach4 configure and then set it to run your code. 

---------------------------------------------------------------
-- Go To Tool Setter function.
---------------------------------------------------------------
function GoToToolSetter()
    mc.mcCntlMdiExecute(inst, "G00 G53 Z0\nG53 G00 X2.00 Y0.50\nG53 G00 Z-1.0")--With Z moves & Machine Coords.
   --mc.mcCntlMdiExecute(inst, "G90 G00 X2.00 Y0.50")--Without Z moves & Without Machine Coords.
end

[mc.ISIG_INPUT1] = function (state) -- this is an example for a condition in the signal table.
         if (state == 1) then
          GoToToolSetter()
       end
end,

30
General Mach Discussion / Re: CNC Router stop start and also mouse freeze
« Last post by johannes on July 14, 2025, 02:51:35 PM »
Hi Tweakie
Thank you very much for the information. I am not sure in windows XP if you can Set the usb port to always on.
I disconnected the spindle motor and run the cut again without spindle and everything work ok when spindle is disconnected.
Any ideas. the spindle power supply come from the same 230 volt as al the other power supplies and all are earthed together maybe it should haave it's own supply and earth.
please advise?
Pages: « 1 2 3 4 5 6 7 8 9 10 »