Hello Guest it is April 20, 2024, 12:58:48 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

2131
General Mach Discussion / Re: Probably simple but...(G-Code help)
« on: January 12, 2016, 11:55:50 AM »
Hmm, good points I guess, its a toss-up then of your cool preview method and doing the layering myself OR letting scam do the layering and having to run the full code just for a preview.

I think I might opt for your version.

I need to sort out my probe trigger logic now to stop it firing when it loads code.

2132
General Mach Discussion / Re: Probably simple but...(G-Code help)
« on: January 12, 2016, 10:31:55 AM »
Ok, did a search and found your original Sheetcam thread :)

You need to add this too...

ADD TO  OnRapid()

   Sline1 =  (endX * scale)
   Sline2 =  (endY * scale)

Trouble I have now is that it does not recognise the outside offset and just pastes the sub number after every M03

Do you have to manually select the operations in sheet cam as inside and outside ops - it normal does this for me.
Any ideas

Edit...

Yes you do or sheet cam makes all op an outside offset. :(

Means remembering to move the outside cut to a new layer I guess :(

2133
General Mach Discussion / Re: Probably simple but...(G-Code help)
« on: January 12, 2016, 10:03:00 AM »
Hmm, if i paste this into my post, i get an error and the post fails???

 if  (string.find(operationName, _("Outside Offset") )) then
     post.TextDirect("o549 \n")
     post.Text (" X")
     post.Number (Sline1,"0.0000")
     post.Text(" Y")
     post.Number (Sline2,"0.0000")
     post.Eol()
   end

Are you running SheetCamTNG ???

2134
General Mach Discussion / Re: Probably simple but...(G-Code help)
« on: January 12, 2016, 03:31:41 AM »
Brilliant, thats going in for sure :)

BTW, what do these lines do?

post.Text (" X")
post.Number (Sline1,"0.0000")
post.Text(" Y")
post.Number (Sline2,"0.0000")

Obviously they are for X & Y but ??

My guess is that they tell it to run form the current X/Y location??

2135
General Mach Discussion / Re: Limit switches and G28.1
« on: January 12, 2016, 03:26:22 AM »
Thought as much, thanks

2136
General Mach Discussion / Re: Probably simple but...(G-Code help)
« on: January 11, 2016, 04:48:23 PM »
Lets see if i grasped this,

you add a line to the POST to place o549 after the outside profile start, then add a button to your screen that calls that part of the code bypassing the M3

To do a dry run you press your new button and NOT the normal start button??

Sounds way better than my version :)

Its a pain running the full code just to check fit etc.



Edit
I can't find "outside profile" anywhere in the sheet cam post docs, is it available in all posts?

2137
General Mach Discussion / Re: Probably simple but...(G-Code help)
« on: January 11, 2016, 04:01:34 PM »
There is a list, will see if i can find it, you can do quite a few things with a brain

2138
General Mach Discussion / Re: Probably simple but...(G-Code help)
« on: January 11, 2016, 03:37:33 PM »

why do you need to use a brain.... why not an M-code to trigger the output directly?

I started out using a macro but was shown it was better to use g-code and a brain - i'll try and find the thread

Here we go...
http://www.machsupport.com/forum/index.php/topic,31543.0.html

2139
General Mach Discussion / Re: Probably simple but...(G-Code help)
« on: January 11, 2016, 03:35:06 PM »
Use while Isloading() to block the function so that when it is loading the file it cannot function. With a brain you should be able to monitor teh Isloading LED. Just thinking off the top of my head.

I am not sure what you mean by dry run. Do you run teh entire program ??   I do use a dry run feature but it only runs teh outside contour of the part to see IF it fits the material and it does NOT run the TOM or fire the torch when it runs.

(;-) TP


How do you control your dry run? It sounds easier than mine which does the full run with TOM and I had to add code to allow it to run motion without an arc-ok signal ;)

WhileIsLoading - would that work during Regen Path too and where would I use it ? I an using G-gode and brain no macro's :)

2140
General Mach Discussion / Limit switches and G28.1
« on: January 11, 2016, 03:16:46 PM »
Am I correct in my assumption that limits are disabled when doing a G28.1 homing??