Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: Greolt on March 27, 2009, 04:51:52 AM
-
For a little while I have been getting strange behaviour of my spindle speed control.
Thought it must be a glitch in my electronics.
The symptom I have had is, the gcode sets the rpm. The DRO updates as it should..
But the actual RPM is whatever was last used. Until I nudge the override, then it goes to the correct rpm.
However I have discovered there is some problem with the spindlespeed.m1s
Here is the line. As far as I know this is Mach standard issue,
rpm = GetRPM() SetSpinSpeed( rpm )
The VB editor does not like it. Calls a syntax error on "SetSpinSpeed"
Version R3.042.022
Greg
-
Are they on the same line in the macro? Think they should be on different lines, ie
rpm = GetRPM()
SetSpinSpeed( rpm )
Hood
-
Yes you are spot on Hood. That fixed it.
Funny thing is I have Mach loaded on three computers and every one of them in every profile had it on one line.
How did that happen? Must have ghosts in the house or something.
I certainly did not do it.
Thanks, Greg
-
Weird, maybe I better look at mine LOL
Hood
-
Just looked and mine are all OK, maybe you do sleep typing instead of walking ;D
Hood
-
In BASIC, you use a colon to separate multiple commands on one line. You might look for the magical colon on your other three machines. Or try it. I have no idea if it even pertains to the VB in Mach.
Steve
-
Just checked mine out of curiosity.
RC
-
Hah!!!! I am not going mad after all. ;D
What would do that?
Greg
-
I haven't a clue Greg.
This is on my office PC and only used for sim.
RC