Solved* quick answer is close wincnc, rename CNCSCRN.INI, start wincnc (has errors), exit wincnc, rename CNCSCRN.INI back to original name. *not sure if this is a temp or perm fix solution.
tldr; WinCNC buttons do not reflect executed commands
#Explanation
Yesterday the machine and program was working just fine. Problem happened earlier today.
Opened up wincnc, clicked on servo to enable servo's. clicked on warmup. Everything went fine. What happened afterwards was where the real trouble started.
I clicked on T1 to preload the tool (bad habit?) and the machine shifted quickly to the right and I immediately aborted the process.
A breakdown of what happened - When I clicked on T1, I expected to get Tool 1. What was executed was "Engraver Mode" which shifts the to the right and drops the laser engrave down.
I figured maybe I just miss-clicked so I attempted it again. Same thing happened. Went to work troubleshooting.
#Troubleshooting
Restart WinCNC (multiple times)
Reboot computer
Power down & unplug computer ~5 min
Checking WinCNC files (any/all modification dates are well out of reach of just happening today)
So inside of WinCNC if you click on Options, then Buttons you'll notice all of the buttons and attached macro's.
When scrolling down I noticed a problem. There were multiples of the same line item. (see attached)
Tried searching for the macro's name inside of WinCNC's program folder and found 2 files excluding the macro itself that seemed helpful. CNCSCRN.INI and WINCNC.INI
There was also the log file startup.log. Looked at this and saw that when WinCNC opened it loaded both of the ini files.
line 19-22
Checking main program directory...
Initializing variables...
Loading WINCNC.INI...
Checking variables...
Line 48-50
Creating main program window...
Loading CNCSCRN.INI and setting up interface...
Showing main program window...
#The Problem
WinCNC is assigning macro's to buttons when the loaded .ini is correct
WinCNC - Options - Buttons - Is show incorrect data where multiple lines/buttons refer to the same command.
When changing one of them, they all change.
When clicking "Default" it will default to the last 2 images.
Screenshot 2023-11-09 115235.png Screenshot 2023-11-09 115136.png Screenshot 2023-11-09 120839.png Screenshot 2023-11-09 120915.png
CNCSCRN.INI last modified 2019
WINCNC.INI last modified ~2 weeks ago (changed softlimits, saved then reverted back to original)
The affected buttons are almost all of them. Just a few moments ago I realized "Lathe_Home" was also duplicated.
Realized I had a backup folder. Ran WinCNC(backup) from that. The "Buttons" seemed correctly marked.
renamed wincnc.ini(orig) and copied over wincnc.ini(backup).
Ran Wincnc(orig) Looked at buttons and they seemed to have corrected. Clicked on Initialize and it ran the program just fine.
////This part (incorrect XYZ) has been solved: answer further down. Text is kept as reference for future use. \\\\\\
However. My x0y0z0 (absolute) seems to be a little off now. This is right after the initialization.
Not really sure what the blue line is but if it represents my frustration I'd say it's mostly accurate. (I'm sure there's an absolute Gcode that fix this*)
Screenshot 2023-11-09 131431.png
Did another test with the laser (alignment) laser came on and turned off as it should. Clicked on Laser xy0 and it did a rapid move in the +x+y. Panic aborted.
Looked at what was run and it seems it ran "lathe home"
Thought it was fixed using the back up but I guess not. Taking a break from troubleshooting. Any other ideas?
Running directly from the wincnc backup
Running from a network backup of wincnc
Running a VM of a previous image of windows (I have ~90 days worth of this --only really need yesterday since it worked fine then.)
tldr; WinCNC buttons do not reflect executed commands
#Explanation
Yesterday the machine and program was working just fine. Problem happened earlier today.
Opened up wincnc, clicked on servo to enable servo's. clicked on warmup. Everything went fine. What happened afterwards was where the real trouble started.
I clicked on T1 to preload the tool (bad habit?) and the machine shifted quickly to the right and I immediately aborted the process.
A breakdown of what happened - When I clicked on T1, I expected to get Tool 1. What was executed was "Engraver Mode" which shifts the to the right and drops the laser engrave down.
I figured maybe I just miss-clicked so I attempted it again. Same thing happened. Went to work troubleshooting.
#Troubleshooting
Restart WinCNC (multiple times)
Reboot computer
Power down & unplug computer ~5 min
Checking WinCNC files (any/all modification dates are well out of reach of just happening today)
So inside of WinCNC if you click on Options, then Buttons you'll notice all of the buttons and attached macro's.
When scrolling down I noticed a problem. There were multiples of the same line item. (see attached)
Tried searching for the macro's name inside of WinCNC's program folder and found 2 files excluding the macro itself that seemed helpful. CNCSCRN.INI and WINCNC.INI
There was also the log file startup.log. Looked at this and saw that when WinCNC opened it loaded both of the ini files.
line 19-22
Checking main program directory...
Initializing variables...
Loading WINCNC.INI...
Checking variables...
Line 48-50
Creating main program window...
Loading CNCSCRN.INI and setting up interface...
Showing main program window...
#The Problem
WinCNC is assigning macro's to buttons when the loaded .ini is correct
WinCNC - Options - Buttons - Is show incorrect data where multiple lines/buttons refer to the same command.
When changing one of them, they all change.
When clicking "Default" it will default to the last 2 images.
Screenshot 2023-11-09 115235.png Screenshot 2023-11-09 115136.png Screenshot 2023-11-09 120839.png Screenshot 2023-11-09 120915.png
CNCSCRN.INI last modified 2019
WINCNC.INI last modified ~2 weeks ago (changed softlimits, saved then reverted back to original)
The affected buttons are almost all of them. Just a few moments ago I realized "Lathe_Home" was also duplicated.
Realized I had a backup folder. Ran WinCNC(backup) from that. The "Buttons" seemed correctly marked.
renamed wincnc.ini(orig) and copied over wincnc.ini(backup).
Ran Wincnc(orig) Looked at buttons and they seemed to have corrected. Clicked on Initialize and it ran the program just fine.
////This part (incorrect XYZ) has been solved: answer further down. Text is kept as reference for future use. \\\\\\
However. My x0y0z0 (absolute) seems to be a little off now. This is right after the initialization.
Not really sure what the blue line is but if it represents my frustration I'd say it's mostly accurate. (I'm sure there's an absolute Gcode that fix this*)
Screenshot 2023-11-09 131431.png
Did another test with the laser (alignment) laser came on and turned off as it should. Clicked on Laser xy0 and it did a rapid move in the +x+y. Panic aborted.
Looked at what was run and it seems it ran "lathe home"
Thought it was fixed using the back up but I guess not. Taking a break from troubleshooting. Any other ideas?
Running directly from the wincnc backup
Running from a network backup of wincnc
Running a VM of a previous image of windows (I have ~90 days worth of this --only really need yesterday since it worked fine then.)
Comment