Macro for changing skim feedrate

Macro for changing skim feedrate

nguyenthinhvt95
Advocate Advocate
1,034 Views
3 Replies
Message 1 of 4

Macro for changing skim feedrate

nguyenthinhvt95
Advocate
Advocate

Hi all you guys

I have a macro for changing the skim feed rate if the tool type is the drill.

But It takes too much time for activating all toolpath -> checking tool-type -> add to the group.

Does anybody help me to change the skim feed rate without toolpath activate?

 

Accepted solutions (3)
1,035 Views
3 Replies
Replies (3)
Message 2 of 4

cfastNJWK6
Advisor
Advisor
Accepted solution

You can change the rapid feedrate like this:

FOREACH $t IN folder('Toolpath') {
	$t.feedrate.Rapid = 3000
	}

 

 

0 Likes
Message 3 of 4

nguyenthinhvt95
Advocate
Advocate
Accepted solution

@cfastNJWK6 Thank you for your suggestion.

Base on your idea I already applied it to my macro and it's working well.

Now, It just activates for which toolpath have "coolant == thru" and "skim feedrate > 3000". It save a lot of time instead of activating all toolpath. 

 

 

Foreach Ncp In Folder ('Group') {
Foreach item In components ($Ncp) {
if $item.coolant == "thru" {
if $item.feedrate.rapid > 3000 {
ACTIVATE Toolpath $item.name
FORM FEEDRATE
EDIT RSPEED "3000"
RESET TOOLPATH FEEDRATE
}
}
}
}
FORM ACCEPT FEEDRATE

0 Likes
Message 4 of 4

Cobra.007
Enthusiast
Enthusiast
Accepted solution

This should be even faster

 

Foreach Ncp In Folder ('Group') {
Foreach item In components ($Ncp) {
if $item.coolant == "thru" and $item.feedrate.rapid > 3000 {
$item.feedrate.rapid = 3000
}
}
}

0 Likes