Hello Guest it is April 26, 2024, 09:34:56 AM

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 - DazTheGas

611
as a norm the tool change script will go in the macro folder as m6,

what moves the carousel at moment ie is it set up as an axis
does it need homing to know where it is

pm if its easier

Daz

612
A bit more info would be helpfull.

Daz

613
Mach4 General Discussion / Re: Use probing for tool zeroing
« on: December 02, 2015, 03:30:37 PM »
ok updated to set z axis on probe touch

Code: [Select]
local ToolSetter = 15.7 -- change to your toolsetter height
mc.mcCntlGcodeExecuteWait(0,"G91 G31 Z-15 F40") -- change feedrate and depth to suit
mc.mcCntlGcodeExecuteWait(0,"G91 Z2 F40") -- change feedrate and retract to suit
mc.mcCntlGcodeExecuteWait(0,"G91 G31 Z-3 F10") -- change feedrate to suit
mc.mcAxisSetPos(0, mc.Z_AXIS, ToolSetter) -- set dro to height of toolsetter
mc.mcCntlGcodeExecuteWait(0,"G91 Z5 F40") -- change feedrate and retract to suit, use this Z rectract value for line 7
wx.wxMessageBox("Remove ToolSetter") -- remove if needed
mc.mcCntlGcodeExecuteWait(0,"G90 Z0 F50") -- move tool to zero,  change feedrate to suit

Daz

614
Mach4 General Discussion / Re: Use probing for tool zeroing
« on: December 02, 2015, 02:23:25 PM »
we set Z zero at the trip point, which is stored in a variable.

Good point, I will have a change and perhaps send the value to a pound value

Daz

615
Mach4 General Discussion / Re: x-Carve Arduino USB w/GShield
« on: December 02, 2015, 01:12:43 PM »

616
Mach4 General Discussion / Re: Use probing for tool zeroing
« on: December 02, 2015, 01:01:33 PM »
line by line, I us metric

1. Sets the toolsetter height
2. Probes down a maximum of 15mm at a feedrate of 40
3. moves back up 2mm
4. Probes back down at a slow feedrate of 10 for more accuracy
5. Retracts a small amount to remove toolsetter as ive seen some with a small lip around them
6. inform operator to move toolsetter
7. moves back down the toolsetter height + the 5mm we raised on line 5, this leaves the tool on top of stock
8. set z dro to 0

if that helps

Daz

617
Mach4 General Discussion / Re: Use probing for tool zeroing
« on: December 02, 2015, 11:23:06 AM »
OMG your right although the probing screen does work I cant see a way of using a toolsetter to zero the z, not too worry heres what i use.

Create a button and in the script put

Code: [Select]
local ToolSetter = 15.7 -- change to your toolsetter hight
mc.mcCntlGcodeExecuteWait(0,"G91 G31 Z-15 F40") -- change feedrate and depth to suit
mc.mcCntlGcodeExecuteWait(0,"G91 Z2 F40") -- change feedrate and retract to suit
mc.mcCntlGcodeExecuteWait(0,"G91 G31 Z-3 F10") -- change feedrate to suit
mc.mcCntlGcodeExecuteWait(0,"G91 Z5 F40") -- change feedrate and retract to suit, use this Z rectract value for line 7
wx.wxMessageBox("Remove ToolSetter") -- remove if needed
mc.mcCntlGcodeExecuteWait(0,"G91 Z-"..ToolSetter +5 .." F50") -- change feedrate and retract to suit
mc.mcAxisSetPos(0,mc.Z_AXIS,0) -- set Z axis to 0

Daz

618
Mach4 General Discussion / Re: Use probing for tool zeroing
« on: December 01, 2015, 11:04:23 AM »
The probing screen does work, i will be doing a video over the coming weekend, i have just been too busy later on other stuff, pedio if you go into the video section and have a look at the m6 command i did you will find a bit of code there that can be customised to do an autozero.

Daz

619
Mach4 General Discussion / Re: Auto Tool Zero
« on: November 24, 2015, 11:24:20 AM »
one of the problems when the default profile is duplicated is that when updates come out you tend to update mach4 core only, if you dont look in the default profile at the changes then some functions could be missing from the startup script or plc, although the modules get updated but theres probably code changed in the buttons. This normally looks to the end user that a function has broken when in fact it has been made to run better.

take the RefHomeAll button - all that is in there now is one call to a function that resides in the startup script.

you would benefit from installing mach4 again into a different directory and running the default profile so you can see the changes, believe me Jarhead there is a better more improved default screen.

As for the topic of updates I am looking into a way of highlighting changes withing the screensets as even myself bypassed some functions and settings that had been added.

As for the autotool i will post my code that i use but wont be till tomoro, im always away on a tuesday and friday night so only have me tablet.

Daz

620
Mach4 General Discussion / Re: Auto Tool Zero
« on: November 24, 2015, 03:27:22 AM »
The autotool was removed from the main screens in favour of using the probing section, ive just checked and the measure z is working.

Daz