Hello Guest it is March 28, 2024, 07:51:15 PM

Author Topic: S code problem  (Read 12025 times)

0 Members and 1 Guest are viewing this topic.

Re: S code problem
« Reply #10 on: September 20, 2012, 01:34:14 AM »
Okay, that didnt do any thing one way or the other. I had the machine in manual control. When I switched it back to CNC mach3 I had no rotation at all with a S code. I will add the changing codes for spindle control. I really feal the problem is in this code
Re: S code problem
« Reply #11 on: September 20, 2012, 01:34:50 AM »
oops forgot the code, , next
Re: S code problem
« Reply #12 on: September 20, 2012, 01:36:16 AM »
try this

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: S code problem
« Reply #13 on: September 20, 2012, 03:10:12 AM »
Ok go to Config then Ports and Pins then Motor Setup and change the spindle Dir to 0. Next go to Spindle setup and set the Min PWM to 5 and see if that helps.
Hood
Re: S code problem
« Reply #14 on: September 21, 2012, 12:34:28 AM »
No Help. Spindle Dir was 0. MinPWM was 0, now 5. I did notice ( maybe it was always there) but lower left corner. Under Spindle speed a yellow bar was flashing. I clicked on Spindle CW F5 and then the yellow  bar and it quit but as soon as I coded another code it was flashing again

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: S code problem
« Reply #15 on: September 21, 2012, 02:50:06 AM »
The yellow flashing means Mach has switched on the spindle. Does this flash as soon as you start Mach or do you have to run some code for it to start?

How do you have the VFD wired?
Hood
Re: S code problem
« Reply #16 on: September 21, 2012, 02:41:01 PM »
spindle speed light only flashes when M3 or 4 is coded. Not a S code,
<
Geckodrive, 4 axes stepper motor system is used
VFD top row, left to right: V1 red, to 5 on gecko V2 blue to 6 on G dr, com, black, to 7  on G Dr
<
VFD bottom row. com , black to power supply Grd. AN1 is green to 9 on G Dr. 12V Red to 9 on G dr.
<On Gecko Dr, is gray to stepper switch  11 is Red to Power S . 12 IS Black to power s.

Hope this helps

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: S code problem
« Reply #17 on: September 21, 2012, 03:06:17 PM »
What I think I would first do is grab a volt meter and see if the Gecko is putting out voltages correctly in relation to commanded spindle speeds and yes you nned to call a M3/M4 as well as the S word. If you just command a S500 without telling Mach to turn the spindle on with a M3/4 then you will just set the spindle speed DRO but not actually turn the spindle on at that speed.
Hood
Re: S code problem
« Reply #18 on: September 21, 2012, 10:11:40 PM »
I coded G1 X5.0 both M4 and 3 S200 and 800. I see no notable difference with one exception.
AN1 is lower at 12.44 volts. the other points are all close to 12.98. What wire runs speed or is it a combination of wires. Grabbing at threads here  wondering if maybe a wire is missing

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: S code problem
« Reply #19 on: September 22, 2012, 04:28:27 AM »
Just looked at the Gecko manual and you should be measuring between the pins highlighted in the pic below. If it still doesnt look right then make sure you disconnect them from your VFD and try again as your VFD may be connected wrong.
Hood