Combinatorial Coolants: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
Jeffb (talk | contribs)
Danm (talk | contribs)
Minor fixes, remove LASTOperation from doCoolOff sample per new info from Development
Line 14: Line 14:


==Post Changes==
==Post Changes==
Compost14 is required in order to create a post that supports Combinatorial Coolants. Compost4 does not support this feature.
Each post will need to go through a one-time upgrade process in order to be compatible with the Combinatorial Coolants feature. If a post has not been upgraded, the post can still be used with a new MDD as long as only one coolant per process is selected. If more than one coolant is selected in a process, a non-upgraded post will throw an Exception.
Each post will need to go through a one-time upgrade process in order to be compatible with the Combinatorial Coolants feature. If a post has not been upgraded, the post can still be used with a new MDD as long as only one coolant per process is selected. If more than one coolant is selected in a process, a non-upgraded post will throw an Exception.


Line 27: Line 29:
* Parameter - This will be available if this coolant has an associated parameter. (See Pressure Options in the MDD)
* Parameter - This will be available if this coolant has an associated parameter. (See Pressure Options in the MDD)
* Parameter Suffix - This will be available if this coolant has an associated parameter. (See Pressure Options in the MDD)
* Parameter Suffix - This will be available if this coolant has an associated parameter. (See Pressure Options in the MDD)
* On - Check this box if the M-code on this row will turn the coolant on. Uncheck this box if the M-code on this row will turn the coolant off. Therefore, in most cases, every coolant will need two entries in the table, an On entry and an Off entry.
* On - Check this box if the M-code on this row will turn the coolant on. Uncheck this box if the M-code on this row will turn the coolant off. This means that, in most cases, every coolant will need two entries in the table, an On entry and an Off entry.
* Priority - If multiple coolants are turned on at the same time, they will be output in the Priority order entered here. Priority 1 will be output before priority 2, and so on.
* Priority - If multiple coolants are turned on at the same time, they will be output in the Priority order entered here. Priority 1 will be output before priority 2, and so on.
* TG - Select which toolgroups are allowed to use this coolant, or select ANY to prevent the post from restricting this coolant.
* TG - Select which toolgroups are allowed to use this coolant, or select ANY to prevent the post from restricting this coolant.
Line 46: Line 48:


doCoolOff:
doCoolOff:
LASTOperation InitCoolantLoop('AllOff')
InitCoolantLoop('AllOff')
while(IterateCoolantLoop?)
while(IterateCoolantLoop?)
SeqLabC ThisCoolantCode EOL
SeqLabC ThisCoolantCode EOL

Revision as of 20:02, 22 July 2020

Combinatorial Coolants

Combinatorial coolants is a new feature in GibbsCAM v14 that allows for multiple coolants to be active on a single operation, extended options for coolants such as multiple pressures, and a new set of post commands.

MDD Changes

The MDD has additional options for coolants as follows:

  • Coolant Type - Select the coolant type from the list, which is based upon the legacy coolant types.
  • Display Name - Check this box if you wish to enter a custom name for this coolant.
  • Scope - This dropdown allows you to limit this coolant to specific Toolgroups or Part Stations, or allow this coolant for the whole Machine.
  • Pressure Options - If this coolant has pressure options, select either Numeric to allow a number to be entered for the pressure, or select List to enter specific pressure options into the text box. Each line of the text box will be a separate option in the Process dialog.
  • Activate / Deactivate Location - Allows you to specify whether this coolant should be activated and deactivated Off Part (Far) or On Part (Near).

Post Changes

Compost14 is required in order to create a post that supports Combinatorial Coolants. Compost4 does not support this feature.

Each post will need to go through a one-time upgrade process in order to be compatible with the Combinatorial Coolants feature. If a post has not been upgraded, the post can still be used with a new MDD as long as only one coolant per process is selected. If more than one coolant is selected in a process, a non-upgraded post will throw an Exception.

Form Changes

Clicking the "Upgrade to Combinatorial Coolants" button will often bring up a "Coolant TG/PS out of scope" dialog. Clicking Yes in this dialog is intended to keep the coolants that are in the currently bound MDD, while clicking "No" is intended to keep the coolants that are in the ToolGroup and Part Station dialog of the current post.

  • Code Prefix - Enter the M code related to this coolant.
  • Parameter Prefix - This will be available if this coolant has an associated parameter. (See Pressure Options in the MDD)
  • Parameter - This will be available if this coolant has an associated parameter. (See Pressure Options in the MDD)
  • Parameter Suffix - This will be available if this coolant has an associated parameter. (See Pressure Options in the MDD)
  • On - Check this box if the M-code on this row will turn the coolant on. Uncheck this box if the M-code on this row will turn the coolant off. This means that, in most cases, every coolant will need two entries in the table, an On entry and an Off entry.
  • Priority - If multiple coolants are turned on at the same time, they will be output in the Priority order entered here. Priority 1 will be output before priority 2, and so on.
  • TG - Select which toolgroups are allowed to use this coolant, or select ANY to prevent the post from restricting this coolant.
  • PS - Select which part stations are allowed to use this coolant, or select ANY to prevent the post from restricting this coolant.
  • Coolants - Select which coolants from the currently bound MDD this row's M-code applies to.
  • Spindle Effect - If the M-code on this row effects both a spindle and a coolant, you can select the appropriate option here, otherwise None should be selected.
  • Trash Can icon - Delete this row.

Prog Changes

In a simple upgrade scenario, you should be able to simply replace the existing doCoolOn and doCoolOff with updated versions of these subs that uses the new while loop and the InitCoolantLoop command as follows:

doCoolOn:
	InitCoolantLoop('AllOn')
	while(IterateCoolantLoop?)
		SeqLabC ThisCoolantCode EOL
	END
RETURN

doCoolOff:
	InitCoolantLoop('AllOff')
	while(IterateCoolantLoop?)
		SeqLabC ThisCoolantCode EOL
	END
RETURN

If you wish to make use of the Near/Far options in the MDD, you will need to create near on and far on versions of doCoolOn (using the NearOn and FarOn arguments for InitCoolantLoop) and doCoolOff (using NearOff and FarOff), and then calling those subs at the appropriate points in your Approach and Retract loops.

doCoolOnFar:
	InitCoolantLoop('FarOn')
	while(IterateCoolantLoop?)
		SeqLabC ThisCoolantCode EOL
	END
RETURN

doCoolOnNear:
	InitCoolantLoop('NearOn')
	while(IterateCoolantLoop?)
		SeqLabC ThisCoolantCode EOL
	END
RETURN

doCoolOffFar:
	InitCoolantLoop('FarOff')
	while(IterateCoolantLoop?)
		SeqLabC ThisCoolantCode EOL
	END
RETURN

doCoolOffNear:
	InitCoolantLoop('NearOff')
	while(IterateCoolantLoop?)
		SeqLabC ThisCoolantCode EOL
	END
RETURN