Announcements

Announcement: We’re aware of an issue affecting starting a new topic from category pages and creating new blog posts. New topics can still be started directly from the relevant board. Learn more here.

No G28 in the beginning

No G28 in the beginning

Anonymous
Not applicable
4,680 Views
7 Replies
Message 1 of 8

No G28 in the beginning

Anonymous
Not applicable

Does anyone know how to modify a generic post processor, like Fanuc to disable G28 in the beginning of a program? Our company doesn't need it.

 

N10 G90 G94 G17 G49 G40 G80

N20 G28 G91 Z0.

N30 G90

 

How to remove N20 and N30 blocks?

 

Thanks

0 Likes
Accepted solutions (1)
4,681 Views
7 Replies
Replies (7)
Message 2 of 8

daniel_lyall
Mentor
Mentor

Set show sequence numbers to no for N10, N20 so on that will stop N, why G28, it can be removed with a post processor edit  

gfhgfhgfg.pnggfhgfhgfg.png


Win10 pro | 16 GB ram | 4 GB graphics Quadro K2200 | Intel(R) 8Xeon(R) CPU E5-1620 v3 @ 3.50GHz 3.50 GHz

Daniel Lyall
The Big Boss
Mach3 User
My Websight, Daniels Wheelchair Customisations.
Facebook | Twitter | LinkedIn

0 Likes
Message 3 of 8

GeorgeRoberts
Autodesk
Autodesk

Hello,

 

Thanks for posting. The G28 safe retract line is put in the post processors to ensure the machine is at a safe Z position prior to any movements that could cause issues. If you would like to remove the G28, please ensure you enter in a sensible safe retract line to replace it.

 

Cheers

-

George Roberts

Manufacturing Product manager
If you'd like to provide feedback and discuss how you would like things to be in the future, Email Me and we can arrange a virtual meeting!
0 Likes
Message 4 of 8

Anonymous
Not applicable
Accepted solution

I figured it out: moving the } to new place. Thank all of you!

 

// stop spindle before retract during tool change
if (insertToolCall && !isFirstSection()) {
onCommand(COMMAND_STOP_SPINDLE);
// }  (removed } )

// retract to safe plane
retracted = true;
writeBlock(gFormat.format(28), gAbsIncModal.format(91), "Z" + xyzFormat.format(0)); // retract
writeBlock(gAbsIncModal.format(90));


} //added } here

 

 

0 Likes
Message 5 of 8

GeorgeRoberts
Autodesk
Autodesk

Hello,

 

Thanks for posting your progress. Moving the bracket there will still output G28 on toolchanges (if it is not the first one). You can comment out the single line by using two forward slashes '//'. To actually remove this line, change it from this:

 writeBlock(gFormat.format(28), gAbsIncModal.format(91), "Z" + xyzFormat.format(0)); // retract

to this:

// writeBlock(gFormat.format(28), gAbsIncModal.format(91), "Z" + xyzFormat.format(0)); // retract
-

George Roberts

Manufacturing Product manager
If you'd like to provide feedback and discuss how you would like things to be in the future, Email Me and we can arrange a virtual meeting!
0 Likes
Message 6 of 8

schlotterbeckmachine
Contributor
Contributor

This solution removed G28 from the beginning only, correct?

0 Likes
Message 7 of 8

daniel_lyall
Mentor
Mentor

Depending on what is in the post now a lot of posts are different now compared to 2 years ago.


Win10 pro | 16 GB ram | 4 GB graphics Quadro K2200 | Intel(R) 8Xeon(R) CPU E5-1620 v3 @ 3.50GHz 3.50 GHz

Daniel Lyall
The Big Boss
Mach3 User
My Websight, Daniels Wheelchair Customisations.
Facebook | Twitter | LinkedIn

0 Likes
Message 8 of 8

schlotterbeckmachine
Contributor
Contributor

In this particular case it is generic fanuc turning that's had some edits made. I'd like to keep G28 prior to tool changes but want it cut out at program start. 

0 Likes