G41/G42 discussion.

Post anything you want to discuss with others about the software.

Re: G41/G42 discussion.

Postby Battwell » Wed Feb 28, 2018 4:21 pm

lovely to see no gouge- on the original code i posted.- so far- the only "hobby" software ive seen to get this right . well done
getting there!!!
Uc300eth on router and mill.
UK uccnc powered machine sales. https://cncrouter.uk/atc-cnc-routers.htm
Automateanything/duzzit cnc/mercury cnc
Battwell
 
Posts: 821
Joined: Sun Sep 25, 2016 7:39 pm
Location: South Wales. Uk

Re: G41/G42 discussion.

Postby cncdrive » Wed Feb 28, 2018 11:16 pm

Thanks. :)
cncdrive
Site Admin
 
Posts: 4695
Joined: Tue Aug 12, 2014 11:17 pm

Re: G41/G42 discussion.

Postby ger21 » Wed Mar 14, 2018 3:04 pm

I was going to say that there's no way the Run from here can work without going back. :)
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2663
Joined: Sat Sep 03, 2016 2:17 am

Re: G41/G42 discussion.

Postby Dan911 » Sun Mar 25, 2018 12:35 pm

g42 prob.JPG


Is this a bug???


I created a simple part with my plugin, I used G42 for tool compensation on first cut for a square than code gives a G40 and continues with pocketing a circle and a canned cycle for 4 holes in each corner.

If I remove the G42 the code runs fine but with no tool compensation for square.
if I remove the canned cycle the code runs fine.
if I use absolute mode for canned cycle code runs fine.

If I scroll through the code it shows the way I expected, but running the code the canned cycle follows glitch path.

The active line shows G40 model at canned cycle.

Code: Select all
( Quick Cam Wizards Version 1.003)
G00G17G90G40G49G80

( Create a Part or Path Wizard 1.003)

X1.75 Y1.75
G1 G42 D1 X2 Y2 F200
M6( Tool 1 Diameter .25 )
S12222 M3
Z-0.25 F100
G1  F200
G91
G1X12 Y0
G1X0 Y12G1X-12 Y0
G1X-0 Y-12
G40G90
G0 Z1

( Cut or Pocket a Circle Wizard 1.003)

G1X8 Y8 F222
M6(Tool Diameter .25)
S12222 M3
G91
G1 Z-1.25F123
G1 Y0.125 F222
G3 Y0 I0  J-0.125
G1 Y0.125 F222
G3 Y0 I0  J-0.25
G1 Y0.125 F222
G3 Y0 I0  J-0.375
G1 Y0.125 F222
G3 Y0 I0  J-0.5
G1 Y0.125 F222
G3 Y0 I0  J-0.625
G1 Y0.125 F222
G3 Y0 I0  J-0.75
G1 Y0.125 F222
G3 Y0 I0  J-0.875
G1 Y0.125 F222
G3 Y0 I0  J-1
G1 Y0.125 F222
G3 Y0 I0  J-1.125
G1 Y0.125 F222
G3 Y0 I0  J-1.25
G1 Y0.125 F222
G3 Y0 I0  J-1.375
G1 Y0.125 F222
G3 Y0 I0  J-1.5
G1 Y0.125 F222
G3 Y0 I0  J-1.625
G1 Y0.125 F222
G3 Y0 I0  J-1.75
G1 Y0.125 F222
G3 Y0 I0  J-1.875
G1 Y0.125 F222
G3 Y0 I0  J-2
G1 Y0.125 F222
G3 Y0 I0  J-2.125
G1 Y0.125 F222
G3 Y0 I0  J-2.25
G1 Y0.125 F222
G3 Y0 I0  J-2.375
G3 Y0I0  J- 2.375F
G0 Z1.25
G1Y-2.375
G1 Z-1.5F123
G1 Y0.125 F222
G3 Y0 I0  J-0.125
G1 Y0.125 F222
G3 Y0 I0  J-0.25
G1 Y0.125 F222
G3 Y0 I0  J-0.375
G1 Y0.125 F222
G3 Y0 I0  J-0.5
G1 Y0.125 F222
G3 Y0 I0  J-0.625
G1 Y0.125 F222
G3 Y0 I0  J-0.75
G1 Y0.125 F222
G3 Y0 I0  J-0.875
G1 Y0.125 F222
G3 Y0 I0  J-1
G1 Y0.125 F222
G3 Y0 I0  J-1.125
G1 Y0.125 F222
G3 Y0 I0  J-1.25
G1 Y0.125 F222
G3 Y0 I0  J-1.375
G1 Y0.125 F222
G3 Y0 I0  J-1.5
G1 Y0.125 F222
G3 Y0 I0  J-1.625
G1 Y0.125 F222
G3 Y0 I0  J-1.75
G1 Y0.125 F222
G3 Y0 I0  J-1.875
G1 Y0.125 F222
G3 Y0 I0  J-2
G1 Y0.125 F222
G3 Y0 I0  J-2.125
G1 Y0.125 F222
G3 Y0 I0  J-2.25
G1 Y0.125 F222
G3 Y0 I0  J-2.375
G3 Y0I0  J- 2.375F
G0 Z1.5
G90
 
(Rectangular Hole Pattern Wizard 1.03 )
(Width X=11 Length Y=11)

G0 Z1
G0 X2.5Y2.5
M6
G91
S12000 
G98 G81 Z-.5 R.125 F15000
Y11
X11
Y-11

G80G90
G0 Z1


Dan
Dan911
 
Posts: 613
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: G41/G42 discussion.

Postby ger21 » Sun Mar 25, 2018 1:22 pm

The picture you show looks different from what I see, as I see two comped toolpaths in yours, but I only see one?
But yes, the drilling goes out into space.

You have a formatting issue in there on this line, which should be two lines.

G1X0 Y12G1X-12 Y0
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2663
Joined: Sat Sep 03, 2016 2:17 am

Re: G41/G42 discussion.

Postby dezsoe » Sun Mar 25, 2018 1:28 pm

Dan,

There are two lines with syntax error:

Code: Select all
(line 64)
G3 Y0I0  J- 2.375F

(line 106)
G3 Y0I0  J- 2.375F
dezsoe
 
Posts: 2049
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: G41/G42 discussion.

Postby Dan911 » Sun Mar 25, 2018 1:32 pm

Thanks Gerry, yes that's should be the next line of code and was when originally generated. I was continually editing code when trying to determine where the problem was.

Dan
Dan911
 
Posts: 613
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: G41/G42 discussion.

Postby Dan911 » Sun Mar 25, 2018 1:50 pm

dezsoe wrote:Dan,

There are two lines with syntax error:

Code: Select all
(line 64)
G3 Y0I0  J- 2.375F

(line 106)
G3 Y0I0  J- 2.375F


Hi Dezsoe, I was doing a lot of copy and pasting for reasons I just previously posted and to shorten code due to multiple passes.
I just generated again untouched with same results as pic I posted.
Code: Select all
( Quick Cam Wizards Version 1.003)
G00G17G90G40G49G80
( Create a Part or Path Wizard 1.003)

X-0.25 Y-0.25
G1 G42 D1 X0 Y0 F200
S18000 M3
Z-0.125 F100
G1  F200

G91
G1X12 Y0
G1X0 Y12
G1X-12 Y0
G1X0 Y-12
Z-0.125 F100
F200

G91
G1X12 Y0
G1X0 Y12
G1X-12 Y0
G1X0 Y-12
Z-0.125 F100
F200

G91
G1X12 Y0
G1X0 Y12
G1X-12 Y0
G1X0 Y-12
Z-0.125 F100
F200

G91
G1X12 Y0
G1X0 Y12
G1X-12 Y0
G1X0 Y-12
G40G90G0
Z1

( Cut or Pocket a Circle Wizard 1.003)

G0 Z1
G1X6 Y6 F200
M6(Tool Diameter .25)
S18000 M3
G91
G1 Z-1.0625F100
G1 Y0.125 F200
G3 Y0 I0  J-0.125
G1 Y0.125 F200
G3 Y0 I0  J-0.25
G1 Y0.125 F200
G3 Y0 I0  J-0.375
G1 Y0.125 F200
G3 Y0 I0  J-0.5
G1 Y0.125 F200
G3 Y0 I0  J-0.625
G1 Y0.125 F200
G3 Y0 I0  J-0.75
G1 Y0.125 F200
G3 Y0 I0  J-0.875
G1 Y0.125 F200
G3 Y0 I0  J-1
G1 Y0.125 F200
G3 Y0 I0  J-1.125
G1 Y0.125 F200
G3 Y0 I0  J-1.25
G1 Y0.125 F200
G3 Y0 I0  J-1.375
G1 Y0.125 F200
G3 Y0 I0  J-1.5
G1 Y0.125 F200
G3 Y0 I0  J-1.625
G1 Y0.125 F200
G3 Y0 I0  J-1.75
G1 Y0.125 F200
G3 Y0 I0  J-1.875
G1 Y0.125 F200
G3 Y0 I0  J-2
G1 Y0.125 F200
G3 Y0 I0  J-2.125
G1 Y0.125 F200
G3 Y0 I0  J-2.25
G1 Y0.125 F200
G3 Y0 I0  J-2.375
G1 Y0.125 F200
G3 Y0 I0  J-2.5
G1 Y0.125 F200
G3 Y0 I0  J-2.625
G1 Y0.125 F200
G3 Y0 I0  J-2.75
G1 Y0.125 F200
G3 Y0 I0  J-2.875
G3 Y0I0  J- 2.875F
G0 Z1.0625
G1Y-2.875
G1 Z-1.125F100
G1 Y0.125 F200
G3 Y0 I0  J-0.125
G1 Y0.125 F200
G3 Y0 I0  J-0.25
G1 Y0.125 F200
G3 Y0 I0  J-0.375
G1 Y0.125 F200
G3 Y0 I0  J-0.5
G1 Y0.125 F200
G3 Y0 I0  J-0.625
G1 Y0.125 F200
G3 Y0 I0  J-0.75
G1 Y0.125 F200
G3 Y0 I0  J-0.875
G1 Y0.125 F200
G3 Y0 I0  J-1
G1 Y0.125 F200
G3 Y0 I0  J-1.125
G1 Y0.125 F200
G3 Y0 I0  J-1.25
G1 Y0.125 F200
G3 Y0 I0  J-1.375
G1 Y0.125 F200
G3 Y0 I0  J-1.5
G1 Y0.125 F200
G3 Y0 I0  J-1.625
G1 Y0.125 F200
G3 Y0 I0  J-1.75
G1 Y0.125 F200
G3 Y0 I0  J-1.875
G1 Y0.125 F200
G3 Y0 I0  J-2
G1 Y0.125 F200
G3 Y0 I0  J-2.125
G1 Y0.125 F200
G3 Y0 I0  J-2.25
G1 Y0.125 F200
G3 Y0 I0  J-2.375
G1 Y0.125 F200
G3 Y0 I0  J-2.5
G1 Y0.125 F200
G3 Y0 I0  J-2.625
G1 Y0.125 F200
G3 Y0 I0  J-2.75
G1 Y0.125 F200
G3 Y0 I0  J-2.875
G3 Y0I0  J- 2.875F
G0 Z1.125
G1Y-2.875
G1 Z-1.1875F100
G1 Y0.125 F200
G3 Y0 I0  J-0.125
G1 Y0.125 F200
G3 Y0 I0  J-0.25
G1 Y0.125 F200
G3 Y0 I0  J-0.375
G1 Y0.125 F200
G3 Y0 I0  J-0.5
G1 Y0.125 F200
G3 Y0 I0  J-0.625
G1 Y0.125 F200
G3 Y0 I0  J-0.75
G1 Y0.125 F200
G3 Y0 I0  J-0.875
G1 Y0.125 F200
G3 Y0 I0  J-1
G1 Y0.125 F200
G3 Y0 I0  J-1.125
G1 Y0.125 F200
G3 Y0 I0  J-1.25
G1 Y0.125 F200
G3 Y0 I0  J-1.375
G1 Y0.125 F200
G3 Y0 I0  J-1.5
G1 Y0.125 F200
G3 Y0 I0  J-1.625
G1 Y0.125 F200
G3 Y0 I0  J-1.75
G1 Y0.125 F200
G3 Y0 I0  J-1.875
G1 Y0.125 F200
G3 Y0 I0  J-2
G1 Y0.125 F200
G3 Y0 I0  J-2.125
G1 Y0.125 F200
G3 Y0 I0  J-2.25
G1 Y0.125 F200
G3 Y0 I0  J-2.375
G1 Y0.125 F200
G3 Y0 I0  J-2.5
G1 Y0.125 F200
G3 Y0 I0  J-2.625
G1 Y0.125 F200
G3 Y0 I0  J-2.75
G1 Y0.125 F200
G3 Y0 I0  J-2.875
G3 Y0I0  J- 2.875F
G0 Z1.1875
G1Y-2.875
G1 Z-1.25F100
G1 Y0.125 F200
G3 Y0 I0  J-0.125
G1 Y0.125 F200
G3 Y0 I0  J-0.25
G1 Y0.125 F200
G3 Y0 I0  J-0.375
G1 Y0.125 F200
G3 Y0 I0  J-0.5
G1 Y0.125 F200
G3 Y0 I0  J-0.625
G1 Y0.125 F200
G3 Y0 I0  J-0.75
G1 Y0.125 F200
G3 Y0 I0  J-0.875
G1 Y0.125 F200
G3 Y0 I0  J-1
G1 Y0.125 F200
G3 Y0 I0  J-1.125
G1 Y0.125 F200
G3 Y0 I0  J-1.25
G1 Y0.125 F200
G3 Y0 I0  J-1.375
G1 Y0.125 F200
G3 Y0 I0  J-1.5
G1 Y0.125 F200
G3 Y0 I0  J-1.625
G1 Y0.125 F200
G3 Y0 I0  J-1.75
G1 Y0.125 F200
G3 Y0 I0  J-1.875
G1 Y0.125 F200
G3 Y0 I0  J-2
G1 Y0.125 F200
G3 Y0 I0  J-2.125
G1 Y0.125 F200
G3 Y0 I0  J-2.25
G1 Y0.125 F200
G3 Y0 I0  J-2.375
G1 Y0.125 F200
G3 Y0 I0  J-2.5
G1 Y0.125 F200
G3 Y0 I0  J-2.625
G1 Y0.125 F200
G3 Y0 I0  J-2.75
G1 Y0.125 F200
G3 Y0 I0  J-2.875
G3 Y0I0  J- 2.875F
G0 Z1.25
G90
 
(Rectangular Hole Pattern Wizard )
(Width X=11 Length Y=11)


G0 Z1
G0 X0.5Y0.5
M6
G91
S12000 
G98 G81 Z-.5 R.125 F15
Y11
X11
Y-11
G80G90
G0 Z1


M5 M9
M30

Dan911
 
Posts: 613
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: G41/G42 discussion.

Postby dezsoe » Sun Mar 25, 2018 2:18 pm

That's something in the generator. Now in the full code there are 4 lines with the same errors. Here is a copy of the last few lines of the file (see the first line):

Code: Select all
G3 Y0I0  J- 2.875F (<=== here)
G0 Z1.25
G90
 
(Rectangular Hole Pattern Wizard )
(Width X=11 Length Y=11)


G0 Z1
G0 X0.5Y0.5
M6
G91
S12000
G98 G81 Z-.5 R.125 F15
Y11
X11
Y-11
G80G90
G0 Z1


M5 M9
M30
dezsoe
 
Posts: 2049
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: G41/G42 discussion.

Postby dezsoe » Sun Mar 25, 2018 2:50 pm

And if you run it line by line, it draws good, but runs another way...

DanG42.png


(Dan, my tool changer macro could not find out which tool to insert: there's no T around the M6.)
dezsoe
 
Posts: 2049
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

PreviousNext

Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 26 guests

cron