Hi Bret,
Attached is the scrip for my button that incrementally adds .010” to the Z work offset.
The processing LED (1214) is used to prevent clicking the button while the scrip is processing. The loops slow down the script execution. Without these features, if the operator clicks too rapidly DRO 49 will not reliably register the increment.
Here is the problem I am trying to solve. If the operator exits Mach3 without canceling, DRO (1006) will retain its value. Upon restarting the retained value will be shown but DRO49 will have been automatically set to it’s original work offset table value. If he runs a part program under these conditions he will be cutting at finish dimension rather than at the added value shown in DRO(1006).
Also the message box that Mach3 presents on exiting: “Save fixture settings?” can be confusing.
What I would like to do either on exiting or opening Mach3 is to: Set DRO(1006) to zero and set DRO(49) to the DRO(1011) value. How can I do this?