DStyle TMS
Overview
TMS posts are usually written as B or C style advanced mill posts. This allows the machine to make use of the work fixture capability and reuse each op toolpath as a subroutine or subprogram. There are times when ether a machine does not support work fixtures, or does not lack the required number of fixtures. In these cases a D style TMS post must be made
Limitations
In order to program a TMS part with out using work fixtures it is necessary to output each operation individually in the main program. Since each operation is done at a different location, subs can not be used to shorten the code. D style TMS posts are written to ignore the user sub preference and always output the program with out using any TMS subs.
Subs for Z repeats, drilling, and patterns can still be used.
Code Changes
The code changes to support D style output in a TMS post are extremely simple. Simply place the code
IF Flag('7')
SetFlag('mpNoSubs')
SetFlag('mpUseCS1')
END
After the call to CustomCmd('mpInit')
Example
.
.
IF CustomBool?('mpMultiPart')
{ If the customer has activated the TMS plug-In software, the the post will go into its }
{ TMS post "mode". If the plug-in is not being used, then the post acts like a normal post }
CustomCmd('mpInit')
IF Flag('7')
SetFlag('mpNoSubs')
SetFlag('mpUseCS1')
END
IF Flag?('mpNoSubs')
{ In a TMS NoSubs case, the first run needs to output the contents of any sub}
{ but not the main program g-code that surrounds that sub. Essentially any op }
.
.
This will force the post into no sub mode, and tell the TMS plugin to output each op in CS1.
Version
D style TMS posts that use this code require GibbsCAM 9.5.14 or later.
Simple option
As of 9.9.20 you will be able to simply call SetFlag('mpForceLonghand') in progstart and the TMS system will act like the user had picked "no subs" in the GUI.