Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-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
Joined
Apr 25, 2005
Messages
14
Location
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" }
}




 
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
 
Try it with the variable declaration of

global mom_sys_coolant_code

instead of

global mom_sys_coolant_code(OFF)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top