Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Captain Midnight on September 19, 2010, 02:02:53 AM

Title: Scriptor Compile Error?
Post by: Captain Midnight on September 19, 2010, 02:02:53 AM
I am trying to setup my spindle. 2hp AC with VFD. It starts and stops, but S won't change the speed. I can change speeds by changing the overide percentage, but not by entering M3S400, or M3S800, ect. Speed stays the same. If I go to pulley setup, and change the max speed, my base S speed is differant, but still won't vary with S changes. What should I look at? While doing all this, I get a message that says, "Scriptor Compile Error. In Spindle Speed. mis"
Thanks
Title: Re: Scriptor Compile Error?
Post by: Hood on September 19, 2010, 03:40:42 AM
Sounds like the SpindleSpeed macro is wrong, what is in that macro, you will find it in C:\Mach3\macros\*****  where **** is the name of the profile you are using, ie Mach3Mill or the name you have called it if a custom profile has been set. The file you are looking for will be called spindlespeed.m1s

Hood
Title: Re: Scriptor Compile Error?
Post by: stirling on September 19, 2010, 03:48:38 AM
just took a look at the out-of-the-box macro and it looks like this on my system

rpm = GetRPM() SetSpinSpeed( rpm )  

whereas syntactically it should look like this

rpm = GetRPM()
SetSpinSpeed( rpm )

Ian
Title: Re: Scriptor Compile Error?
Post by: Captain Midnight on September 20, 2010, 12:38:59 AM
Thank you Hood, that was the problem.
Title: Re: Scriptor Compile Error?
Post by: mike303 on January 09, 2011, 05:56:36 PM
or so...

rpm = GetRPM() : SetSpinSpeed( rpm ) 


i trap the same. and after this i read the first sites from VB-language description