Can I override the Control Definition settings in a post processor ?
The short answer is yes. First you must remember that the CD settings tied to pre-defined post variables only override the variable initialization. If the pre-defined variable is used throughout the post to change back and forth between options the CD setting will have no effect on this.
To override a CD setting in the Post Processor all you need to do is use the pre-defined variable in a formula or assignment. To override the initial value from the CD we suggest adding the pre-defined postblock PPREP$ to the post and adding your variable assignments in this postblock.
In this example we will override the enable canned drilling cycles for a Mill post (.PST) or Setup sheet (.SET)from what is shown here in the Control Definition.

This is an image from the initialization section showing the settings of the enabled canned drilling variables. Notice they are all enabled just like in the CD image above.
If you were to change the initialization of these variable to disable the canned cycles by replacing the yes$ above with a no$, the CD settings will be used and the cycles will be enabled. To override the CD settings we would add the pprep$ postblock and the following assignments. The lines of code below will override the enable canned drilling settings in the CD and disable the canned cycles for drilling, peck drill and chip break.
|