Hello Guest it is January 17, 2021, 05:03:05 PM

Author Topic: Scripter Compile Error  (Read 3246 times)

0 Members and 1 Guest are viewing this topic.

Scripter Compile Error
« on: March 21, 2017, 10:09:18 AM »
I have this message "Scripter Compile Error, In:M3.M1S".  Could you expane what it means in English.
Jay

Offline Tweakie.CNC

*
  • *
  •  8,611 8,611
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Scripter Compile Error
« Reply #1 on: March 21, 2017, 11:35:01 AM »
Hi Jay,

In your Mach3 / macros / Mach3Mill folder is the file M3.m1s

The contents of that file is usually   DoSpinCW()

If the contents of that file have been changed and the syntax is incorrect then Mach3 will report the "Scripter Compile Error, In:M3.m1s" when M3 is called in your Gcode or MDI instruction.

Tweakie.
 
KEEP SAFE !
Re: Scripter Compile Error
« Reply #2 on: March 21, 2017, 03:39:42 PM »
What program will open the m3.m1s file?
Jay

Offline Tweakie.CNC

*
  • *
  •  8,611 8,611
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Scripter Compile Error
« Reply #3 on: March 22, 2017, 02:34:02 AM »
Hi Jay,

It's a text file so you can open it in notepad.

Correction to my earlier post as you may be using a profile other than Mach3Mill...

Bottom right of the main screen is your Profile: the M3.m1s file you need to look at is in the  Mach3 / macros / <your profile> folder.

Tweakie.
KEEP SAFE !
Re: Scripter Compile Error
« Reply #4 on: March 22, 2017, 08:53:14 AM »
For some reason the file had "DoSpinCW()00000".  I removed to "00000" and we will see what happens next time.
Thank You
Jay

Offline Davek0974

*
  •  2,605 2,605
    • View Profile
    • DD Metal Products Ltd
Re: Scripter Compile Error
« Reply #5 on: January 14, 2018, 11:10:25 AM »
This is also a bug in some flavours of Mach3, 062 seems pretty good.
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.
Re: Scripter Compile Error
« Reply #6 on: November 04, 2020, 03:09:18 PM »
Hi does anyone know what causes this issue? It happens from time to time on my setup - I actually checked m3.m1s, m4.m1s and m5.m1s, they all had extra characters after the command. They appear as a rectangle since they can't be displayed in notepad I imagine.

I'm running R3-043-062

It's frustrating since it's caused me a couple of workpiece crashes. I know how to fix it, but do we know what causes it? It seems odd that the software would rewrite these files.

Thanks

Offline TPS

*
  •  1,884 1,884
    • View Profile
Re: Scripter Compile Error
« Reply #7 on: November 05, 2020, 01:14:13 AM »
i do not what causes the issue, but i did the following:

-Operator -> VB Script Editor
-Open your M3.M1s
-use Save as and select Compiled Code (*.mcc)

-do this for M4 M5 as well
-then move the original *.M1s files to an other Folder to have them as a backup
-test
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.

Offline Davek0974

*
  •  2,605 2,605
    • View Profile
    • DD Metal Products Ltd
Re: Scripter Compile Error
« Reply #8 on: November 05, 2020, 01:18:05 AM »
i do not what causes the issue, but i did the following:

-Operator -> VB Script Editor
-Open your M3.M1s
-use Save as and select Compiled Code (*.mcc)

-do this for M4 M5 as well
-then move the original *.M1s files to an other Folder to have them as a backup
-test

This does seem to work, i did not get the error after compiling those macros. ;)
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.
Re: Scripter Compile Error
« Reply #9 on: November 05, 2020, 04:54:19 AM »
Thanks for the responses! Just to make sure I have understood correctly, I can replace the .m1s text files with compiled files (so with .mcc file extension). These can can be used (read) by the software and also be less susceptible to becoming corrupted?