Hello Guest it is May 04, 2024, 01:49:42 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Graham Waterworth

321
Mach4 General Discussion / Re: About G Code of Mach4 Demo
« on: August 30, 2021, 09:35:36 PM »
It could be the M29 command, ridged tapping is only supported in the industrial version I think.

It could also be you need to be in feed per rev G95

322
Mach4 General Discussion / Re: Mach4 lathe macros
« on: August 26, 2021, 08:31:04 PM »
To call a tool in Mach4 lathe you use T0202

(T02) Tool 2 (02) offset 2

You need to set your steps per for 1 degree of rotation on the turret, number of degrees is calculated for the number of tools moved.

8 Station turret needs to move 45 degrees per tool.

You also need to change these lines to the following lines

Change test data for real data

selectedtool = 5 -- mc.mcToolGetSelected(inst)
currenttool   = 1 -- mc.mcToolGetCurrent(inst)

To

selectedtool = mc.mcToolGetSelected(inst)
currenttool   = mc.mcToolGetCurrent(inst)


323
Mach4 General Discussion / Re: Mach4 lathe macros
« on: August 24, 2021, 08:58:44 PM »
You could try this macro, I have no idea if its any good to you.

No warranty given or implied.

Code: [Select]
-- Mach4Turn 8 position tool Turret

 function m6()
 
 inst = mc.mcGetInstance()
 selectedtool = 5 -- mc.mcToolGetSelected(inst)
 currenttool  = 1 -- mc.mcToolGetCurrent(inst)
 Rlock = 1   -- ' Sets the Relock Movement in Degrees Value 

  if (selectedtool > 8) or (selectedtool < 1) then
    mc.mcCntlSetLastError(inst,"Tool Number Out of Range.")
    do return end
end
 
 if (selectedtool == currenttool) then
  mc.mcCntlSetLastError(inst,"No tool change needed.")
    do return end
end
 
 --'------ Select Tool ------------------------------------
 
mc.mcCntlSetLastError(inst,"Moving to Tool " ..selectedtool )
   
if (selectedtool > currenttool) then
Moves =  selectedtool - currenttool
Moves = (Moves * 45) + 1
mc.mcCntlSetLastError("  G00 A" ..Moves);
end   
         
if (selectedtool < currenttool) then
Moves = ((8 - currenttool) + selectedtool)
Moves = (Moves * 45) + 1 
mc.mcCntlSetLastError(" G00 A " ..Moves);
end   
       
  mc.mcCntlSetLastError(inst,"Tool Loaded")

--'------------ end Tool Change ------------------------

mc.mcCntlSetLastError(inst," Turret Locking ")
mc.mcCntlGcodeExecuteWait(inst,  "G52 A-" ..Moves);
mc.mcCntlGcodeExecuteWait(inst,  "G00 G90 A0");
mc.mcCntlGcodeExecuteWait(inst,  "G00 G91 A-" ..Rlock ); -- ' Lock Turret
mc.mcCntlGcodeExecuteWait(inst,  "G52 A0");
mc.mcCntlGcodeExecuteWait(inst,  "G90");   --' Reset to ABS
tool = selectedtool
 
mc.mcToolSetCurrent(inst, selectedtool)

if (mc.mcInEditor() == 1) then
m6()
end
end

325
PoKeys / Re: Pokeys57CNC/Mach4 and 2 Probes
« on: August 22, 2021, 02:32:50 PM »
I would pass the probe signals through a relay that is switched by an M code into G31

326
General Mach Discussion / Re: driver watchdog question
« on: August 22, 2021, 02:22:19 PM »
The Watchdog setting is stored in the XML file for the profile in use so it could be something is corrupting the file.

Are you shutting Mach3 down or killing the power?

327
G-Code, CAD, and CAM discussions / Re: Gcode pauses after macro
« on: August 22, 2021, 02:15:36 PM »
Posting a copy of the macro will help.

328
G-Code, CAD, and CAM discussions / Re: Running four axis simultaneously
« on: August 22, 2021, 02:10:26 PM »
You only have one planner so so all movement is blended, to be able to move different axis at different speeds and feeds you need multi planner controllers where 2 or more gcode files can be run and synced so that more that one operation can be done.

Mach4 was designed to do this in the industrial version.

 

329
General Mach Discussion / Re: Part machines 180 deg out
« on: August 22, 2021, 01:55:30 PM »
Your machine axis is reversed

330
General Mach Discussion / Re: machine goes haywire when plasma fires
« on: August 15, 2021, 09:11:48 PM »
Poor shielding of cables, not enough earthing, no common earthing between devices and many many more can cause this.