moog2
Mechanical
- Jan 16, 2007
- 441
In the post builder, there is a custom command, as follows..
#
# This custom command allows you to modify the feed rate number
# after it has been calculated by the system
#
global mom_feed_rate_number
set mom_sys_frn_factor 1.0
if [info exists mom_feed_rate_number] {
return [expr $mom_feed_rate_number * $mom_sys_frn_factor]
} else {
return 0.0
}
I've added this to a post, but nothing changes?
What i'd like to do is have a line at the start of the program where the operator can enter a percentage value which the posted feed will be factored to.
The controller is Fanuc, so pretty standard stuff.
Can anyone explain how to use this custom command or point me in the right direction?
#
# This custom command allows you to modify the feed rate number
# after it has been calculated by the system
#
global mom_feed_rate_number
set mom_sys_frn_factor 1.0
if [info exists mom_feed_rate_number] {
return [expr $mom_feed_rate_number * $mom_sys_frn_factor]
} else {
return 0.0
}
I've added this to a post, but nothing changes?
What i'd like to do is have a line at the start of the program where the operator can enter a percentage value which the posted feed will be factored to.
The controller is Fanuc, so pretty standard stuff.
Can anyone explain how to use this custom command or point me in the right direction?