Hello Guest it is April 13, 2024, 05:53:19 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 - BR549

481
##### General Mach Discussion / Re: Probably simple but...(G-Code help)
« on: January 12, 2016, 01:28:47 PM »
Here is a thought as wth Arts logic when you mix a true/false with a number it does not always go as one would think. Try it by adding teh two values and using that logic  1+1 = 2  so try IF =2 then run . IF you post your brain I can test it here.

(;-) TP

482
##### General Mach Discussion / Re: Probably simple but...(G-Code help)
« on: January 12, 2016, 01:16:26 PM »
You may want to try the opposite of the isloading()  >>>   File loaded (led) Or figure out WHY your logic does not work.  It would seem that it should.

Yes that is all that goes into the button script.

(;-) TP

483
##### General Mach Discussion / Re: Probably simple but...(G-Code help)
« on: January 12, 2016, 12:07:43 PM »
Scam is suppose to do a good job of auto selecting inside from outside. You may want to have a chat with Les over at Sheetcam about it.  I am very much old school and do 99% of layering in teh cad stage (Like one should be doing (;-) ) The I do not have to worry about what Scam will do with it.  I only really have 4 layers with artsy stuff.

Inside1 (0)
Inside2 (0b)
No offset (2)
Outer (1)

484
##### General Mach Discussion / Re: Creating G-Code
« on: January 12, 2016, 11:08:14 AM »
OH MAN Tweakie will Never be able to wear his old hats now. His head will be too big.

485
##### General Mach Discussion / Re: Probably simple but...(G-Code help)
« on: January 12, 2016, 11:02:36 AM »
I never let Scam assign layers I do that part myself.  Scam is a bit weird in some aspects and to me auto layer assignments is one of those things.  OF course it could just be me BUT I never have problems if I do that part (;-)

That MAY be some of your weird pig tailing on cuts ?   IF Scam starts on 1 side then ends on the other ??

(;-) TP

486
##### General Mach Discussion / Re: Limit switches and G28.1
« on: January 11, 2016, 06:15:49 PM »
Yes you are.

(;-) TP

487
##### General Mach Discussion / Re: Probably simple but...(G-Code help)
« on: January 11, 2016, 06:14:09 PM »
YOu have teh idea here is a excert from the Gcode program and the Section where teh Post is modified to add teh Oword. You add teh Post code to teh OnPenDown() section.

N6040 X1.0409 Y9.8085
N6050 G28.1 Z0.50
N6060 G92 Z0.0
N6070 G00 Z0.1370
N6080 G92 Z0.0
N6090 G00 Z0.1200
N6100 M03
N6110 G04 P0.3
o549
N6120 X1.0409 Y9.8085
N6130 G01 Z0.0800 F20
N6140 G02 X1.1015 Y9.9299 I0.0911 J0.0304 F130.0
N6150 G01 X1.1047 Y9.9303 F130
N6160 G02 X1.1475 Y9.9024 I-0.0008 J-0.0480 F130.0
N6170 G01 X1.1496 Y9.8986 F130
N6180 G02 X1.4537 Y9.2508 I-2.1754 J-1.4162 F130.0

function OnPenDown()
if(dist >= (refdistance/scale)) then
dist = 0
--      modaltext (" G00")
--      text(" Z")
--      number (pierceheight  * scale, "0.0000")
--      eol()
post.ModalText(" G28.1 Z")
post.Number(zrefslowdown, "0.00")
post.Eol()
post.ModalText(" G92 Z0.0\n")
post.ModalText (" G00")
post.Text(" Z")
post.Number (switchoffset, "0.0000")
post.Eol()
post.ModalText(" G92 Z0.0\n")
post.ModalText (" G00")
post.Text(" Z")
post.Number (pierceHeight  * scale, "0.0000")
post.Eol()
else
post.ModalText (" G00")
post.Text(" Z")
post.Number (pierceHeight  * scale, "0.0000")
post.Eol()
end
if (preheat > 0) then
post.Text ("\n G04 P")
post.Number (preheat,"0.###")
post.Eol()
end
post.Text ("\n M03\n")
if (pierceDelay > 0) then
post.Text (" G04 P")
post.Number (pierceDelay,"0.###")
post.Eol()
end

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

end

488
##### General Mach Discussion / Re: Probably simple but...(G-Code help)
« on: January 11, 2016, 04:32:36 PM »
In sheetcam I Changed teh ouside profile to include a line after teh M3 runs.  It is the Oword for Gcode subs.

(outside profile)
code
code
M3   (fire the torch)
o549
code
code
etc

Then from a button you use a Trick to directly GOTO teh Oword inside the Gcode program. This only works in ONE direction so there is no need for a return M99 as there is nothing to return to.

Code"M98 P549"
End

The prgram will jump directly to teh Oword(o549) and start running the outside profile . The outside profile is the tail end of the Gcode so when it completes it simply rewinds and is ready to run OR repeat the dry run if needed.

(;-) TP

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

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

490
##### General Mach Discussion / Re: Understanding Mach3 Plasma, ARC OK, halting motion
« on: January 11, 2016, 12:44:52 PM »
YEP with CandCNC you have to use either one or the  other delays you cannot mix the two. BUT it has always been that way . WHAT did you change to cause a problem again ?? What did you do the first time you saw this problem to fix it.

Could be a corrupt XML mixing values that you cannot see.

(;-) TP