Hello Guest it is March 28, 2024, 07:23:49 AM

Author Topic: Scripter Compile Error bites again :(  (Read 15364 times)

0 Members and 1 Guest are viewing this topic.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Scripter Compile Error bites again :(
« on: February 18, 2018, 06:29:44 AM »
Hi all

I'm trying to run one of my first batches of parts on my wonderful Bridgeport conversion and Mach is doing it damnedest to P me off!

Halfway through the third run of the second part, so its made about 15 toolchanges and start/stop cycles already, it decides to start the code with no spindle motor, luckily i was close enough to an E-Stop to save my work and tool.

Going to MDI - S1000 M3  all you get is the "Scripter Compile Error in M3.m1s" - not had this for a while but have suffered tool breakage plenty of times before - there is NO trigger for it, just random.

I restarted Mach and it still will not run so i'm stuck now and no idea what to do, parts need to go tomorrow so the pressure is there as well :(

Was there ever a definitive fix for this issue?

I really can't use it with this uncertainty which i thought was gone.

Any quick suggestions?????

Using V062 BTW

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Scripter Compile Error bites again :(
« Reply #1 on: February 18, 2018, 08:19:55 AM »
Delete the M3.m1s macro, and create a new one with this line:

DoSpinCW()


This seems to happen repeatedly for a small number of users. I've never seen it in 10 years.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: Scripter Compile Error bites again :(
« Reply #2 on: February 18, 2018, 08:56:42 AM »
I did have a look inside it as i read there can be 'odd' characters in there but it looked ok, had a coffee and sandwich, calmed down, went back out and the damn thing worked ok??

I'll try the delete and remake next time but is there a trend for this error in certain versions??

It can get expensive if you're not 100% on the stop button.

How could Mach alter the file - surely it just reads macros, not re-writes them each time??

Re: Scripter Compile Error bites again :(
« Reply #3 on: February 18, 2018, 03:39:52 PM »
Hi Dave,
you're right it doesn't sound like the source file changing, its fine on most occasions just occasionally the complier will
fail.

Is it possible to have the macro complied and sitting in the macro folder so it doesn't have to get complied at runtime?

Mach4 does something like that, it will compile a source file if theres no object code but otherwise it reaches for
the object code, ie compiled code, preferentially.

If Mach3 could do the same thing it would avoid the potential compiler error.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: Scripter Compile Error bites again :(
« Reply #4 on: February 18, 2018, 03:46:05 PM »
As far as i know, no.

I can't understand how it fixed itself either, but it's really annoying when you're already being careful because of changes made to the machine etc, have work to do, not much time and it throws this pointless random error up.

Even restarting Mach and re-homing did not fix it, just left it 45 minutes and off it goes again?
Re: Scripter Compile Error bites again :(
« Reply #5 on: February 18, 2018, 04:29:03 PM »
Hi Dave,
my guess is that its the compiler that fails not the source code.

VB is, to my knowledge, an interpreted language and as such subject to runtime compile errors.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'

Offline TPS

*
  •  2,501 2,501
    • View Profile
Re: Scripter Compile Error bites again :(
« Reply #6 on: February 19, 2018, 01:52:05 AM »
Hi Dave,

i had the same Thing a couple of years ago, well without the self Fixing after 45 minutes.

the only Thing i noticed, when i watched my M3 macro with a HEX Editor was,
that the EOF() was directly behind the ")" of the DoSpinCW().

All i did was to put a couple of 'empty' lines (CRLF) after the DoSpinCW().

The Problem never came up again.

i really can't tel you wether it was

-coincidence
-woodoo
-or just luck.

Thomas
 
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: Scripter Compile Error bites again :(
« Reply #7 on: February 19, 2018, 02:09:43 AM »
Thanks, i'll try that

Can't do any harm :)
Re: Scripter Compile Error bites again :(
« Reply #8 on: February 19, 2018, 06:14:00 AM »
Dave, Make sure you are wearing your lucky hat when you do make the change.

Mike
We never have the time or money to do it right the first time, but we somehow manage to do it twice and then spend the money to get it right.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: Scripter Compile Error bites again :(
« Reply #9 on: February 19, 2018, 07:43:15 AM »
Needs more than luck with Mach3 i think, the planets have to be aligned sometimes!