Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: keithmech on January 22, 2009, 09:06:13 PM

Title: start relay
Post by: keithmech on January 22, 2009, 09:06:13 PM
.I made up a one line brain that was to turn on the spindle
with a 5 sec delay as a test.I found that:as soon as the spindle is started
the relays on my breakout board would close.I turned off the brain
and on the spindle setup added a 5 sec delay.This did nothing.
I then turned off the outputs on the ports /pins for the spindle start.
The spindle would still run.I then changed the port and pin numbers to something
stupid ,still worked.
Is there something in the xml file for my Bob Campbell breakout board that is doing this?
I just added a Smooth stepper, might this be the cause?
.Maybe use relays not connected to the breakout board?
Title: Re: start relay
Post by: keithmech on January 24, 2009, 07:23:52 PM
any one want to look at the xml files I have to see why the spindle start relays on the campbell
board engage in any state .ie wrong pin #, wrong port # delays added thru brains or spindle
setup.I fact the only way I found so they will not turn on is by removing the DoSpinCW()
in the m3 macro.
Title: Re: start relay
Post by: Hood on January 24, 2009, 07:37:52 PM
Attach your xml and I will have a look.
FYI the delay in Spindle Setup is not a delay in activating the relays, it is a delay to let your spindle get up to speed before the axis will start moving.
Hood
Title: Re: start relay
Post by: keithmech on January 24, 2009, 08:07:21 PM
Thanks Hood
Title: Re: start relay
Post by: Hood on January 24, 2009, 08:20:06 PM
Can you zip and attach your brains folder as well please.
Hood
Title: Re: start relay
Post by: keithmech on January 24, 2009, 08:28:51 PM
I just added the starttest brain I was using.It is very simple
Title: Re: start relay
Post by: Hood on January 24, 2009, 08:46:39 PM
Ok dont see anything wrong but not really familiar with that board.
 Just to clarify, does it take an M3 or M4 or screen button press to start the spindle or is it just always on?
Hood
Title: Re: start relay
Post by: keithmech on January 24, 2009, 08:51:27 PM
It will start with an M3/4 or a button press.
Title: Re: start relay
Post by: Hood on January 24, 2009, 08:56:17 PM
Weird
Is the speed controllable? Think maybe I need to have a look at the manual, which revision of board do you have as I think there are at least a couple.
Hood
Title: Re: start relay
Post by: keithmech on January 24, 2009, 09:09:34 PM
I'm using rev 5.Yes the speed is controllable.I only discovered this when I
tried to implement a delay for my big mill.I was going to use it for the gear change.
I may have to go back and rethink my gear shift.The gear shift brain is attached.
Title: Re: start relay
Post by: Hood on January 24, 2009, 09:13:06 PM
Ok I think I may see what is happening, the manual will take a bit of reading but from first look it seems the analogue signal is linked to the Step pin, as step pin is pin 1 it is the same pin as the relay is on, so looks like it is your step pulse that is triggering it. Have you adjusted the pots?
Its getting late here (2:20am)  and need some sleep.
Hood
Title: Re: start relay
Post by: keithmech on January 24, 2009, 09:20:01 PM
We'll carry on tommorrow. ;)
Title: Re: start relay
Post by: Hood on January 24, 2009, 09:22:13 PM
;D
Title: Re: start relay
Post by: keithmech on January 25, 2009, 04:20:23 PM
Hi Hood
I did away with the start/run relays on my bob and connected the vfd to the modbus
control.I'm using the cubloc 290 so I have 91 i/o's to choose from.It now is working fine.
Funny how the bob is reacting ,I would like to know how to control the spindle relays
 that are built on to the board.Now for the tool changer.I like the hot swap idea of poppabears
and if I can find the code try to implement it on my 25 position tool drum.
Thanks for the help.