×
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

Post Builder: Coolant off

Post Builder: Coolant off

Post Builder: Coolant off

(OP)
I am building a post with postbuilder.
Problem:
I have three different coolant types and they each need their own M-code to turn off the cooling (M09, M59, M88).
In the postbuilder there is only one M-code you can use.
It uses the variable mom_sys_coolant_code(OFF).
Even when I try to set it in custom command to another value it still has the initial value "09".
(See attachment (picture) where I put it in the Postbuilder-tree, the name of the custom command is PB_CMD_Coolant_off)

global mom_coolant_mode
global mom_sys_coolant_code(OFF)

switch $mom_coolant_mode {
    "FLOOD"    { set mom_sys_coolant_code OFF) "09" }
    "MIST"    { set mom_sys_coolant_code(OFF) "59" }
    "THRU"    { set mom_sys_coolant_code(OFF) "89" }
}




 

RE: Post Builder: Coolant off

From the image you posted it looks like you need to move your custom command to the start of path.  At the end of path the coolant may already be off so the command does not get triggered.  From the looks of your code you are setting the variable for the coolant off based on what was turned on.  


 

John Joyce
Tata Technologies iKS
1675 Larimer St.
Denver, CO
www.myigetit.com

RE: Post Builder: Coolant off

Try it with the variable declaration of

  global mom_sys_coolant_code

instead of

  global mom_sys_coolant_code(OFF)  

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