High Speed Machining Post Edit?

High Speed Machining Post Edit?

LibertyMachine
Mentor Mentor
1,457 Views
7 Replies
Message 1 of 8

High Speed Machining Post Edit?

LibertyMachine
Mentor
Mentor

The post is a heavily modified Fanuc post.

What I'd like to obtain:

When I am using Adaptive tool paths (ie; High Feed metal removal) I would like to insert a code at the beginning of the tool and right at the end.

 

Currently posts this:

 

T1 M6 (.500 EM R.03 STUB)

G0 G90 G54 X1. Y1. S2900 M3

G43 H1 Z.25 M8

So on and so forth until the end:

G0 Z.25 M9

G49 G53 Z0 M19

M1

 

What I would like:

 

T1 M6 (.500 EM R.03 STUB)

G332 R3. (ACCURACY/SPEED PRIORITY)

G40G49

G05.1 Q1(AICC ON)

G0 G90 G54 X1. Y1. S2900 M3

G43 H1 Z.25 M8

So on and so forth until the end:

G0 Z.25 M9

G05.1 Q0 (AICC OFF)

G49 G53 Z0 M19

M1

 

 

Whether it's a user variable that I have to toggle, or built right into the post, it matters not.

Software is Fusion 360 Ultimate, Windows 10, machine is a Mori-Seiki DuraVertical 5100 with a Fanuc 0M control

 

Thanks!

 


Seth Madore
Owner, Liberty Machine, Inc.
Good. Fast. Cheap. Pick two.
0 Likes
Accepted solutions (1)
1,458 Views
7 Replies
Replies (7)
Message 2 of 8

skidsolo
Alumni
Alumni
Accepted solution

You could do it this way:

Add this variable to the start of the post

 

var aiccOn = false

 

Now add this to onSection at line 707

 

if(hasParameter("operation-strategy") && (getParameter("operation-strategy") == "adaptive" || getParameter("operation-strategy") == "adaptive2d")) {

  writeBlock("G332 R3. (ACCURACY/SPEED PRIORITY)");

  writeBlock(gFormat.format(40), gFormat.format(49));

  writeBlock (gFormat.format(5.1), "Q1(AICC ON)");

  aiccOn = true

}

 

Then add this to onSection End:

function onSectionEnd() {

  if(hasParameter("operation-strategy") && (getParameter("operation-strategy") == "adaptive" || getParameter("operation-strategy") == "adaptive2d")) {

    if (aiccOn) {

      writeBlock("G05.1 Q0 (AICC OFF)");

       aiccOn = false

    }

  }

 

Andrew W. Software engineer (CAM Post Processors)
0 Likes
Message 3 of 8

LibertyMachine
Mentor
Mentor

Sorry for the delay un responding to your suggestion. My laptop at my day job was out of commision (crosses fingers and hopes for an upgrade)

I will give this a shot this afternoon. 

Quick question though: Will this just put my G332 and G05.1 on every tool, or is there something in the logic that controls when it is inserted into the tools that actually need it?


Seth Madore
Owner, Liberty Machine, Inc.
Good. Fast. Cheap. Pick two.
0 Likes
Message 4 of 8

skidsolo
Alumni
Alumni
The code checks for adaptive and adaptive2d operations it does not care about the tool
Andrew W. Software engineer (CAM Post Processors)
Message 5 of 8

LibertyMachine
Mentor
Mentor

ooooooh, I like that. Now I really need to get it implemented. Thanks!


Seth Madore
Owner, Liberty Machine, Inc.
Good. Fast. Cheap. Pick two.
0 Likes
Message 6 of 8

LibertyMachine
Mentor
Mentor

That works really nice, thank you sir


Seth Madore
Owner, Liberty Machine, Inc.
Good. Fast. Cheap. Pick two.
0 Likes
Message 7 of 8

Anonymous
Not applicable

Hello sir @skidsolo

I was looking for information in the forum and I saw your answer here, I wonder if you could help me please with my problem with speed also in the Post Processor.

I have a cb ferrari machine 3axis milling and I used the PP of selca and adapt it, now I want to fix a maximum speed in the post processor and when I enter a speed bigger that in HSM, I want to have a error message ( I dont want that the code will be generated)

How can I do that please?

Thanks a lot for your attention

Have a good day.

0 Likes
Message 8 of 8

sevenfive85
Advocate
Advocate

@skidsolo Hi, this only work if the first operation is 2d adaptive or 3d adaptive but when it is second operation or after code does not appear.  Is there anyway for the post to scan all the operation type for that tool and output that code if strategy is present?

 

 

0 Likes