×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

tool list same tool with diif tracking point output

tool list same tool with diif tracking point output

tool list same tool with diif tracking point output

(OP)
I am trying to make a tool list for one turning machine & it is require Tool list at the top of the pgm.
When I am using same grooving tool (same tool no) for two or more than two operations with different tracking point.
I want to output the tool two times in tool list, with different adjust register i.e. left & right used in operation.
I try to use the standard tool list CC. & customised it to suit my requirement.
What I did is :
proc MAP_TOOL_TYPE { } {
global mom_tool_type
global mom_tool_left_adjust_reg
global mom_tool_right_adjust_reg
global mom_tool_adjust_register
if {[string match "Milling*" $mom_tool_type]} {
return "MILL"
} elseif { [string match "Turning*" $mom_tool_type]} {
return "LATHE"
} elseif { [string match "Grooving*" $mom_tool_type] && $mom_tool_left_adjust_reg != $mom_tool_adjust_register } {
return "GROOVER"
} elseif { [string match "Grooving*" $mom_tool_type] && $mom_tool_right_adjust_reg != $mom_tool_adjust_register } {
return "GROOVEL"
} elseif { [string match "Threading*" $mom_tool_type]} {
return "LATHE"
} elseif { [string match "Drilling*" $mom_tool_type]} {
return "DRILL"
} else {
return ""
}
}
I am switching the tool type for output as above.
But somehow the procedure is holding the mom_tool_adjust_register value of last operation either left or right.
& i am not getting the required result.
Any thoughts how to get this done.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources