Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: fast89 on December 10, 2018, 05:08:05 PM

Title: scripter compile error
Post by: fast89 on December 10, 2018, 05:08:05 PM
I have a lathe with a tool changer. Been running for years. In past years, maybe once a year i would have a scripter compile error and it would fail to change tools and crash. The past 4 months i've had it happen at least 4 times. Twice i caught it and the other two....well it knocked the turret out of alignment. Restart mach and it will be fine. So my question is, why does this randomly happen? How can i make it stop executing code if an error occurs?
Title: Re: scripter compile error
Post by: TPS on December 12, 2018, 01:57:26 AM
one Thing what could help would be,

-open your toolchange macro with VBScript Editor
-use the File -> save As and select by filetype -> compiled  code (*.mcc)
-then backup your original M1S file and delete it from macro Folder so that only the mcc Version is left


i did this with my M3 M4 M5 macros when i had this scripper Compiler error, and it never showed up again