Does any one know how to query a custom coolant in Compost?
I created a new MDD for a machine with 4 coolant options, two of which did not fit the 6 standard options available in Compost.
Thanks in advance,
Scott
Does any one know how to query a custom coolant in Compost?
I created a new MDD for a machine with 4 coolant options, two of which did not fit the 6 standard options available in Compost.
Thanks in advance,
Scott
In the MDD editor, the coolants drop down allows for 6 coolants that are pre-defined keywords.
They are Flood, Mist, Thru Spindls, Hi Pressure, Pulse, and Flood Thru Spindle.
Additionally, the drop down box contains allowances for 14 additional "custom coolants" - labelled Custom1 through Custom14.
These, or any of the coolants can be called by whatever name you choose by checking custom name in the MDD editor.
In my case, the machine I am working on has spindle through air as well as an external air blow which "do not fit the standard keywords"
Certainly, I can use the standard keywords, and lie to the post, but I would rather not.
My issue is, how do I query "Custom1" - "Custom14" in the post.
Presuming you got the MDD working so the custom coolants are available in gibbs. (something I can't get working right :)).
In the post where you do a "CoolOn" and/or "CoolOff" you will need to branch to these booleans. They determine what coolant option is selected in gibbs and what coolant type is turned on currently in case they have a different MCODE then M09.
doCoolOn:
IF ThruSpin?
'M12'
Save# Num#('22') Num#('1')
ELSE
IF HiPressure? { Air }
'M12'
Save# Num#('22') Num#('2')
ELSE
IF FloodThruSpin?
CoolOn EOL
SeqC 'M12'
Save# Num#('22') Num#('3')
ELSE
IF Pulse? { Flood and Air }
CoolOn EOL
SeqC 'M51'
Save# Num#('22') Num#('4')
ELSE { Flood }
CoolOn
Save# Num#('22') Num#('0')
END
END
END
END
RETURN
doCoolOff:
IF Equal? Recall# Num#('22') Num#('1')
'M09'{WAS M89}
ELSE
IF Equal? Recall# Num#('22') Num#('2')
'M09'{WAS M59}
ELSE
IF Equal? Recall# Num#('22') Num#('3')
CoolOff EOL
SeqC 'M09'{WAS M89}
ELSE
IF Equal? Recall# Num#('22') Num#('4')
CoolOff EOL
SeqC 'M09'{WAS M59}
ELSE
CoolOff
END
END
END
END
RETURN
"Teach the ignorant, care for the dumb, punish the stupid."
sld4121 figured it out in a series private messages. I'm posting here for the benefit of the group.
The book makes reference to:
ExtraCoolant?
"This command will return true if the current
operation’s coolant is of the type
“CustomCoolantN” in the MDD, where “N” is a
number from 1 to 14. This allows for the MDD
to have more then the normal six coolant types
(20 total types).
sld4121 Wrote:
Got it!
ExtraCoolant? put me over the hump.
Here is what you need.........
IF ExtraCoolant? Num#'1'
So by adding additional loops to the subroutines doCoolOn: and doCoolOff: then invoking them throughout your post you can add coolant options.
"Teach the ignorant, care for the dumb, punish the stupid."
As an addendum, you can also use the following
IF ExtraCoolant? ('1')