First Time Poster here. I'm starting to get somewhat familiar with LUA (Mostly Programming IO's and safety checks) on a CNC Router Retrofit I just finished, but looking for a little guidance on this instead of shooting in the dark.
I want to implement an on screen cycle/part countdown. The operator would click on the count, and input the number of sheets he wants to run. Then each finished cycle would reduce the count by 1. (Through M30, or a dedicated M Code if needed). If the count equals zero, attempting to cycle start would instead bring up a window that reads something like... "Parts Remaining = 0. Please Input a Value". Also I would like this value to be saved through a restart of Mach 4. (If the value is 26 when Mach 4 is closed, it will be 26 the next time Mach 4 Opens)
Any help on a sensible way to go about this is greatly appreciated! Thanks