Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Post Builder: Coolant off

Status
Not open for further replies.

boomstra

Automotive
Apr 25, 2005
14
0
0
GB
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" }
}




 
Replies continue below

Recommended for you

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
 
Status
Not open for further replies.
Back
Top