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