G41/G42 discussion.

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

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: 418
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: 418
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: 545
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: 545
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: G41/G42 discussion.

Postby ger21 » Sun Mar 25, 2018 3:08 pm

Dan's question is really about the last 4 drilling operations, which appear to be affected by the G42 at the start of the code.
Gerry
UCCNC 2017 Screenset - http://www.thecncwoodworker.com/2017.html
ger21
 
Posts: 1143
Joined: Sat Sep 03, 2016 2:17 am

Re: G41/G42 discussion.

Postby Dan911 » Sun Mar 25, 2018 3:16 pm

dezsoe wrote: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.)


Thanks Dezsoe, you found another bug in my plugin!!! I added it to my loooooooong list.

But I don't think any of the bugs/problems you mentioned has anything to do with screen pic I posted. if you remove the G42 from code you will see the code runs and draws fine. I also noticed if I run code with canned cycle in G90 it draws and runs fine also.

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

Re: G41/G42 discussion.

Postby dezsoe » Sun Mar 25, 2018 3:29 pm

(Sorry for the off, I only wanted to help Dan.)

I'm sure it is a bug. That's why I tested with single line and then I found that is draws good while moving to the wrong position.
dezsoe
 
Posts: 545
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: G41/G42 discussion.

Postby Dan911 » Sun Mar 25, 2018 3:41 pm

dezsoe wrote:(Sorry for the off, I only wanted to help Dan.)

I'm sure it is a bug. That's why I tested with single line and then I found that is draws good while moving to the wrong position.


Thank you Dezsoe....and you did. BTW I found the problem, coming out of the forloop I meant to remove that feedrate because not really needed and just removed the variable and not the "F".

Thanks again,
Dan
Dan911
 
Posts: 418
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: G41/G42 discussion.

Postby Vmax549 » Sun Mar 25, 2018 8:18 pm

There are still a few G91 quirks in UCCNC (;-)

Also when you are done with Tool Comp you need to uncomp UCCNC so not to cause problems on down teh road. You issued a G40 but no leadout to uncomp. You do not want to depend on the next section if any to uncomp . THAT will bite you hard one day (;-) . Also it is best to make comp calls on their own line.

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

G41 D1 X0.000 Y0.000 or

G41 D1
X0.000 Y0.000

G40 X-.25 Y-.25 or

G40
X-.25 Y-.25

(;-) TP
Vmax549
 
Posts: 1300
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: G41/G42 discussion.

Postby Dan911 » Sun Mar 25, 2018 10:20 pm

Thanks Terry for your suggestions/tips....I will be sure to follow.

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

PreviousNext

Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 2 guests