Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

In the Fanuc post, we need to preload first tool at the beginning of program prior to M6 (tool change command)

nweisz
Participant

In the Fanuc post, we need to preload first tool at the beginning of program prior to M6 (tool change command)

nweisz
Participant
Participant

The generic Fanuc post preloads the first tool after the last tool is loaded in the program.
We would rather need it on a separate line before the tool change command at the beginning. This is the current output at the beginning of the program:

%

O3030 (TOP)

G90 G94 G17 G49 G40 G80

G20

G28 G91 Z0.

G90

 

(50MM FACE MILL)

T1 M06

T2

S3500 M03

G54

M08

G00 X5.4943 Y1.1

G43 Z0.6 H01

G00 Z0.2

G01 Z0.1 F50.

............

 

How can we modify the post to get this result?

%

O3030 (TOP)

G90 G94 G17 G49 G40 G80

G20

G28 G91 Z0.

G90

 

(50MM FACE MILL)

T1

M06

T2

S3500 M03

G54

M08

G00 X5.4943 Y1.1

G43 Z0.6 H01

G00 Z0.2

G01 Z0.1 F50.

.............

 

Thanks

0 Likes
Reply
Accepted solutions (1)
485 Views
3 Replies
Replies (3)

Arun.rs
Autodesk
Autodesk
Accepted solution

Hi @nweisz 

 

Thanks for raising your concern via Forum.

 

Open 'fanuc.cps' file in a 'Visual Studio Code' or 'Notepad++' to do the required modifications.

 

1. Go to line number 1469

 

Change from this :

writeBlock("T" + toolFormat.format(tool.number), mFormat.format(6));

 

To This:

writeBlock("T" + toolFormat.format(tool.number));
writeBlock(mFormat.format(6));

 

Regards



Arun.RS
Technical Consultant - Post Processor
1 Like

nweisz
Participant
Participant
Thank you. This is what we needed.
1 Like

Arun.rs
Autodesk
Autodesk

HI @nweisz 

 

About your query about the preload, you can simply untick the option in Post Properties,

 

Preload Tool.png

 

Hope this helps !

 

Regards



Arun.RS
Technical Consultant - Post Processor
0 Likes