Hello Guest it is April 23, 2024, 07:09:07 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 - Davek0974

2151
General Mach Discussion / Re: Probably simple but...(G-Code help)
« on: January 11, 2016, 02:27:16 AM »
Hmm,

Without that G04 the Z emits a very short screech, but at a point when the Z should not be moving at all - right at the beginning? I could maybe video this as it is repeatable.

G0 over a sort distance just seemed unnecessarily hard, time saved is nil, so why beat the machine up doing a short pair of rapids when a smooth co-ordinated move is better :)

Can't be losing steps - this is a DRO issue only, not physical, I have not got as far in testing yet to prove lost physical steps, just that the DRO does not always return to zero which seemed odd as that was where it came from :) But if as you say it is made up then no worries at all, even if its not 0.1mm is bugger all in the real world, metal expansion is probably a bigger issue :)

The button changing Z is worrying as Z definitely changes, again, I could video this action.

2152
General Mach Discussion / Re: Custom plasma probing code?
« on: January 10, 2016, 11:41:06 AM »
Almost there now, I need to sort out how to trigger the probe when I am in "dry run' mode as otherwise it just crashes the Z into the plate :(

Currently the probe control valve circuit is only live if two parameters are met -

The user variable 1239 must be = 1 (this is controlled from g-code)
The Extract fan (output 1) is turned on (this stops the probe from triggering as the G-code is loaded into mach as it only comes on during a live run)

So I thought add another brain that triggers the output if the 'Dry-Run' LED (UserLed 2244) is lit AND the Run LED is lit but it did not work.

Is there a way to achieve what i need here easily??
Can you run two brains against one output??

2153
General Mach Discussion / Re: Probably simple but...(G-Code help)
« on: January 10, 2016, 09:41:26 AM »
Its working nicely thanks, here's the final subroutine code, If there is any surplus code in there please let me know, I have hopefully commented it correctly...
BTW the idea is to use an offset probe as height sensor.

G91 (switch to incremental mode)
G01 X28.00 Y4.00 F6000 (position probe switch)
G04 P0 (wait until the move finishes)
G90 (switch to absolute mode)
#15239=1 (this var is monitored by a brain and triggers the probe cylinder)
G04 P0
G28.1 Z5.000 (probe the surface)
G92 Z0.000 (zero the Z axis DRO)
#15239=0 (raise the probe)
G00 Z#15045 (apply the probe switch offset from settings screen DRO)
G92 Z0.000 (zero the Z axis)
G00 Z5.00 (raise the Z axis for travel)
G91 (switch to incremental mode)
G01 X-28.00 Y-4.00 F6000 (put the axes back to where we came from)
G90 (switch to absolute mode)
M99
%

I'm using G01 moves as the G0 move was a bit vicious.

Queries....

1 - If i remove line 3, it makes the Z motor screech for some reason???

2 - It does not put the axes back where they came from. It varies but is always out by about 0.05mm to 0.15mm every time??

3 - When I press my "set origin" button it makes the Z axis change, this is not wanted, any idea how i fix that??
The button code is...
DoOemButton(1008)
DoOemButton(1009)
DoOemButton(242)
DoOemButton(160)

Many thanks

2154
General Mach Discussion / Re: Problem with round letters
« on: January 10, 2016, 05:58:02 AM »
What machine is this?

A plasma table?
Wood routing table?
Other?

It's not a milling machine thats for certain;)

2155
I had very odd behaviour using ActivateSignal until I also used ArcOk then it all worked nicely and much faster.

2156
General Mach Discussion / Re: Probably simple but...(G-Code help)
« on: January 10, 2016, 03:34:40 AM »
Great, thanks,

I wasn't grasping the Incremental/Absolute switch

Should work nicely.

2157
General Mach Discussion / Probably simple but...(G-Code help)
« on: January 09, 2016, 04:36:38 PM »
If I have my axes at say X100 and Y100 and in g-code I want to temporarily move to say curretntX+50 currentY+50 , do something then move back to where i was before, how would I code it??

Do i need to be looking at the DRO's etc as variables and adding/subtracting my move ?? or is there a sensible way??

Anyone care to throw an example my way??


:)

2158
General Mach Discussion / Re: Problem with round letters
« on: January 08, 2016, 09:43:10 AM »
To reduce tool loading, run at a lower speed on the X/Y
Or increase tool speed/rpm but only of course if the tool/material can take it

2159
General Mach Discussion / Re: Problem with round letters
« on: January 08, 2016, 07:17:15 AM »
Is there any backlash in either of the axes??

2160
General Mach Discussion / Re: Mach3 and the THC...
« on: January 05, 2016, 02:20:59 PM »
It definitely does not seem to be updating correctly at the end of a cut - whatever the THC 'moves' DRO shows at the end of the run is the error in the work DRO after being told to go to Z15 so it never really reaches Z15 - baffling, any ideas?