- 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		Ok think I know whats happening here. You haven't enabled and setup the Spindle output in Motor outputs so the spindle CW F5 isn't turning on or controlling output #14.
So try this first and I think you'll find it turns spindle on/off ok.
Ports & Pins -> Motor Outputs  / Spindle: Enabled  /Step Pin # (14)/ Step Port # (1) 
On the VFD set PD001 =1 This is external source for run command
On the VFD set PD002 = 1 This is external source for Frequency.
If this works then you may need to play with Motor tuning to get the exact speed. Also go to Pulley setup and set minimum and maximum speed.
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		Deleted because changed my mind.!!
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		the PD002  setting did the trick o.k.  i can at least turn the spindle on/off( kind of ) from  F5 . i can also increase and decrease the speed  but i still need to have the active low setting ''ticked '' for the start / stop output.  the spindle still runs on its own albeit at a very reduced speed .  i have an LED on board the BOB  for the relay outputs and  the relay for the ''start /stop ''  is constantly on because of the active low tick.  It looks like a  synchronisation issue between MACH  and VFD,  i think. ???  if there is such a setting . i also set the spindle pulley tab to   ''MIN  ZERO'' &   ''MAX to 24000''   . there must be some other setting i'm missing.    cheers jazz.
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		
	Quote:
	
		
		
			
				Originally Posted by 
PAULRO
				
			 
			the PD002  setting did the trick o.k.  i can at least turn the spindle on/off( kind of ) from  F5 . i can also increase and decrease the speed  but i still need to have the active low setting ''ticked '' for the start / stop output.  the spindle still runs on its own albeit at a very reduced speed .
			
		
	 
 Shouldn't do that at all.!! . . .  So when you push f5 for off are you saying the spindle keeps running but speed drops.?
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		Post the XML file for the profile your using for Mach3 so I can see how you have Mach setup. 
You'll find it in the Mach3 folder with the same name as the profile you use and ending with XML. 
Zip it up to post other wise won't allow you to post.
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		i made a right balls of trying to copy the XML file and deleted it instead. i tried to restore it but having no joy.  i will set it up again and get it up a.s.a.p.   sorry for the inconvience  Jazz
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		
	Quote:
	
		
		
			
				Originally Posted by 
PAULRO
				
			 
			i made a right balls of trying to copy the XML file and deleted it instead. i tried to restore it but having no joy.  i will set it up again and get it up a.s.a.p.   sorry for the inconvience  Jazz
			
		
	 
 Mach keeps a backup for you. Just look in the XML backup folder it will be there.
	 
 - 
	
	
		
1 Attachment(s)
	
	
		Re: Let the fun begin !!! ???
	
	
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		after pulling the little hair i have left on my head and trying everything i thought would improve my spindle issue i have stumbled accross  what i think is my issue and solution.  i had a single wire run from +10v (bob) to +10v (vfd).  when i made off the control cable initially between   BOB and VFD  i just used 4 core,2  for the PWM and 2 for START/STOP, all sheilded.   because i needed another signal for +10v  I ran a single cable temporarily  to test and  this is where i believe my problems  stem from.   i unknowingly  had the single cable next to a power cable and by chance moved it during the spindle running on its own and the problem dissapeared.   Now i know why  experienced builders keep the VFD outside the cabinet. i didn't realise how sensitive these signal cables are. once again a big thank you to Jazz for the time given in relation to this.      everyday is a day for school .
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		
	Quote:
	
		
		
			
				Originally Posted by 
PAULRO
				
			 
			   Now i know why  experienced builders keep the VFD outside the cabinet. i didn't realise how sensitive these signal cables are. once again a big thank you to Jazz for the time given in relation to this.      everyday is a day for school .
			
		
	 
 Sorry didn't get back to you last night but I was in workshop late and never got time to look until tonight.
I'm relieved you found something because I couldn't see anything wrong with Mach setup and come to the end of what I could suggest.!! . . . Next step was a ferry ride to Limerick.!!
Grounding and silly Wiring issues are probbaly THE most common cause of premature Hair loss.
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		Ok it occured to me last night in my sleep that noise on the 10v signal still wouldn't make the spindle Spin if the relay was working correctly.
So I still think you have some issue with the relay not being set correctly. The 0-10v signal just defines the speed reference it's the Run signal and relays that controls whether the spindle turns or not. 
I think relay is not being controlled correctly and the run circuit is still closed. Mach stops sending a speed reference when M5 or spindle button is toggled off but the noise on the 0-10v line is causing the spindle to still spin because the relay circuit is still closed. 
So only thing I can suggest now (other than you've not wired it correctly which I'm sure you have.!) is that the BOB is some how taking over controlling the relay duty's and because in Spindle setup you have the Relays enabled your getting conflicts. 
I suggest to test this theory you put the VFD back into using the on board speed control PD002 = 0 and leave the Start/stop to set to external control. (make sure the vfd speed reference is set above zero for this test) I think you will find the spindle starts again and won't stop and you can't control it using F5 which if was correct it would.
If I'm correct then try disableing the relays in spindle setup and see what happens.?
	 
 - 
	
	
		
2 Attachment(s)
	
	
		Re: Let the fun begin !!! ???
	
	
		i thought i had it all sorted  so i tried to calibrate spindle from  '' FUNCTION CONFIG'' tab. but it now has a different issue / maybe the same  one ........ 
so i tried as suggested ... PD001=1,  PD002=0   .. Result is  spindle running at top speed with no control from F5, or the '' SPINDLE SETUP '' tab in ports 'n pins.
 the ''DISABLE SPINDLE RELAYS '' or the ''MOTOR CONTROL ''  box  cannot control it  either.  i can, however turn of the  relays from the '' OUTPUT SIGNALS '' tab using the   '' ACTIVE LOW'' or ''  ENABLED''  option.   so MACH3   can control  the relays from here .   
 what has me puzzled now is  that i have used the'' MDI''  tab to input M3 S2000  and the spindle runs once i hit ''enter '' on the key board or the spindle CW F5 . the VFD shows a reading of    20,904   on its window but the DRO  for the spindle speed does not change. the  '' RPM '' value in MACH 3 has never updated since i got the spindle running  . when i turn it off and on again '' Spindle CW F5'' button or F5  from the keyboard then the  led on the BOB  for the PWM controlled relay 3   comes on , but doesn't burn as brightly as the start / stop relay led. the spindle will  begin to run at 280 RPM (VFD readout)
if i then hit ''RESET '' on the spindle  speed window the spindle turns on fully and the led for the ''PWM '' relay3 burns brightly. this really has me puzzled.      
 RELAY 3  is controlled by   LPT pin 14  dedicated for PWM.     i cannot turn this relay  off from the output tab in port & pins .
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		Ok well this confirms my suspicion that you are not correctly in control of the Relay outputs. 
First of all you don't calibrate the spindle with Function Config. Set it back to defaults and leave alone. 
To sort this your going to have to take a few steps back and deal with one issue at a time. So Forget the speed control for the moment We'll come back to speed and setting it up control later. 
Leave external control turned off in VFD, just control speed thru the VFD for now.
Lets concentrate on getting control of the outputs that turn on/off the relays. 
First I need to know the position of the Dip switches on the BOB.?
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		i have PD001=0 , PD002=0.      FUNCTION CONFIG. CALIBRATE SPINDLE  = DEFAULT.
DIPSWITCH SETTINGS...
 SW1=OFF
SW2=ON
SW3=ON
SW4=ON
SW5=ON
SW6=OFF
SW7=OFF
SW8=OFF
SW9=NOT USED
SW10=NOT USED
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		Ok well Dip switches are correct according to manual.
So we need to see whats happpening or not.!! . . . We need to see if the Relay is active so i'd recommend you disconnect the wires to VFD and check with a Meter rather than having VFD turn on/off. 
First Type M5 into MDI to make sure spindle is off. Next test for continiuty between the Contacts of Relay #1 your using for RUN. It should have NO continuity.
If it does then change the Active State of that Output. 
Now Type M3 into MDI and Check Contacts for continuity. You should now have Continuity and relay is active.
Type M5 and relay should drop out and Continuity drop.
If none of this happens then something is set wrong either in Mach3 or your wired wrong.? Only other thing it could be is the DIP switches are Wrong way around and the Relay is turned off on the BOB.!
To be honest we are getting to the point where it's very hard to help without being there at the machine.! What I've suggested may seem basic but it's necessary that things are done step by step before moving on to avoid confusion.!. . . Let me know what's happening.!!
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		my pump stopped running so i went out to get another ,this time  i bought a WHALE 12VDC SUBMERSIBLE TYPE.   it can only operate for 15mins max. at a time so
i will have to set a relay ...
   anyway, i  tried as suggested Jazz and still no joy.   I set PD001=1, PD002=1,   disconnected the wires to relay 1 ( run/stop) and tested with meter , i then  tried to trigger the relays alternating between M3 and M5 on the MDI window   but the condition of relays never changed.  however  i can go to  outputs tab  and toggle the relays on/off   and will get a result.       this BOB  came with a MACH 3 PROFILE   to be downloaded from the ZAPP website        http://www.zappautomation.co.uk/elec...board-236.html
 this should be unzipped and placed in the MACH 3  folder .  i should then use the MACH 3  loader to select the profile but when i do  nothing works . if  i use the MACH 3 loader to select the profile i had set up ( GARAGE PROFILE )   i'm able to operate the motors , etc. but have no joy with  the relays , pwm .
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		Paulro
I am not going to interfere with what Dean is trying to get you to do as this is a very difficult situation when working from afar.
.
Please don't take this the wrong way:cheerful:  But you are not helping yourself and muddying the water when you bring things up that are nothing to do with this problem.  So try and work methodically step by small step and give clear answers to the questions asked of you. Just straight bullet points are easier to follow.
.
As a matter of interest when you use M3,M5 do you hear a click from the relay?    ..Clive
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		
	Quote:
	
		
		
			
				Originally Posted by 
PAULRO
				
			 
			 anyway, i  tried as suggested Jazz and still no joy.   I set PD001=1, PD002=1,   disconnected the wires to relay 1 ( run/stop) and tested with meter , i then  tried to trigger the relays alternating between M3 and M5 on the MDI window   but the condition of relays never changed.  however  i can go to  outputs tab  and toggle the relays on/off   and will get a result.
			
		
	 
 How did you toggle it with the active state or the Enable.?
The output Active state is not a Switch for toggling any thing On/OFF. It's a Logic condition that needs to be set so things can work correctly.
The enable is just that.!! . .Your turning the output off. So if the relay changes state then you probably have the Wrong Active Logic set and relay is coming on straight away and by disabling the Output it gets turned off.! 
Set Active LO(unticked) and try M3/M5 again if relay doesn't change state(or Click) Set it HI(ticked) and try M3/M5 again. 
Don't go Chopping and changing settings all over the place as it really makes finding faults difficult. Only make one change then Test.
	 
 - 
	
	
		
1 Attachment(s)
	
	
		Re: Let the fun begin !!! ???
	
	
		i toggled the active state of the relays to see if mach3 could change the state of the relay from a non responsive state .   i have them set back now to the folowing  http://www.mycncuk.com/attachment.ph...id=15425&stc=1 the run  relay 1 is on constantly because of active high setting.  if i input M3     the spindle will run at 250-300rpm   . M5 stops the spindle again. the only relay to change state is the PWM dependant relay 3
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		Paul your not listening properly because if you'd done as I suggested then the spindle wouldn't start at all. And the speed would be controlled from the VFD using what ever speed you set. 
You need to take a few steps back and deal with one problem at a time. Stop changing settings willy nilly because this makes the Job of helping so much harder. All this does is waste yours and my time by chasing false issues. I need you to only change one thing at a time then report what happens.
First all you need to do is get Relay #1 working. Forget #2 & #3 we don't need them so you can turn them off on the BOB and disable them in Mach3.
Straight away I see that you have the Wrong Pin number set for Relay #1. It should be Pin 16 not 14. 
Pin 14 is for the PWM Speed control which I believe is working fine just needs setting up for correct speeds which can be done later. NOT NOW.!!
So to re cap Tell me which terminals your connecting to on the Relay. 
Set Output #1 = pin16 Active LO.
Turn off the Enable for Outputs #2, #3.
Next the relay will have 3 terminals which are you connecting to.?
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		i have relay 1( OUTPUT 1)
 set to pin 16, active LO. ( ticked)    ( all other relays disabled. )
  TERMINALS on relay 
N.O CONTACT =FOR on VFD
COMMON= DCM on VFD
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		RELAY 1 is on . i metered accross the N.O  contact and common  and have continuity.
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		
	Quote:
	
		
		
			
				Originally Posted by 
PAULRO
				
			 
			RELAY 1 is on . i metered accross the N.O  contact and common  and have continuity.
			
		
	 
 Ok well first makes sure Spindle is OFF. Type M5 in MDI. Check Continuity again. 
If still got continiuty then Change active state (NO Tick) and Check continuity again. It should drop Off. Type M3 and it should give continiuty again.
If it does you are working correctly.
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		On the side topic of pumps - I use a similar Whale pump. I use 12V to run it for a few seconds to purge bubbles more quickly, but I then run it on 5V. Seems to circulate enough water to keep the spindle cool, and I have run it like that for quite a few 5-6hr sessions continuously with no apparent ill effects.
Good luck with the Mach3/BOB issues!
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		that's O.K.   Relay turns on/off  using M3/M5. i had to change active lo setting to set it correct way .
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		
	Quote:
	
		
		
			
				Originally Posted by 
PAULRO
				
			 
			that's O.K.   Relay turns on/off  using M3/M5. i had to change active lo setting to set it correct way .
			
		
	 
 Ok Great now next step is to test on VFD.
So first set VFD PD002 = 0. We are just testing ON/OFF  for now so control speed on the VFD Key pad.
Set PD001 = 1 Then Connect wires Back to Relay contacts and M3/M5 should start and Stop VFD.
DO NOT TRY Controlling speed yet.!!
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		that's fine, M3/M5 starts and stops spindle
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		Ok great.!! . . . Now we can turn to speed control. But we are not going to connect any wires yet and stay with the meter.
First make sure Spindle output is enabled in Motor outputs and setup correctly. It should be set to:
 Step pin = pin14 
Step Port =1
Step Low active = No tick.
Next Spindle Setup. Go to Spindle control and select:
Use Spindle motor output = Ticked
PWM Control =Ticked
PWMbase Freq = 50%
MinimumPWM = 5%
Next go to menu Config/ Spindle pulleys:
Pulley #1
Minimum Speed = 0
Maximum Speed = 24000
Ratio = 1
Now set meter to DC volts. Put Positive Probe to FIV and Negative Probe to GND on XP24. ( You will need 10V from VFD connected to 10V on XP24 but leave ACM & VI disconnected)
With Spindle off (M5) you should have 0v on meter. Check this first before doing any thing. 
If Ok and 0V then type M3 S12000 in MDI and you should read a voltage around 5v try this and let me know.!
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		
	Quote:
	
		
		
			
				Originally Posted by 
JAZZCNC
				
			 
			Now set meter to DC volts. Put Positive Probe to FIV and Negative Probe to GND on XP24. ( You will need 10V from VFD connected to 10V on XP24 but leave ACM & VI disconnected)
			
		
	 
 No sorry made a Mistake here. 
You need 10V and ACM from VFD connected leave VI disconnected from FIV.
Still probe between FIV and GND to check Voltage coming out.
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		i have
 0.0 volts  with M5 ,   as expected. 
0.03 volts with M3 S12000
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		
	Quote:
	
		
		
			
				Originally Posted by 
PAULRO
				
			 
			i have
 0.0 volts  with M5 ,   as expected. 
0.03 volts with M3 S12000
			
		
	 
 Did you read my correction.? 
Also VFD will need to be powered up.
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		0.0 v with M5   
6.4v with M3  S12000
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		
	Quote:
	
		
		
			
				Originally Posted by 
PAULRO
				
			 
			0.0 v with M5   
6.4v with M3  S12000
			
		
	 
 
Ok well this is where it gets a little sketchy with this BOB because I'm not quite sure which settings to tweak to fine tune the voltage.
Start by changing the Spindle Pulley Max speed to a higher number then check the voltage and see if it goes down.? 
We are looking to get around 5V With S12000 and 10V with S24000. 
I'll try and see if I can find out how the speed Ref voltage is handled and changed with this BOB.
Edit: 
Ok well after bit of thought it occured to me that the Steps per setting in Motor tuning for spindle could be used as the Carrier frequency and with 2000 steps which I think you will be set at will give around 6V. So Leave spindle pulley Max set at 24000 and change the Steps per setting to 2400 and see what happens.?
Let me know.
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		my meter started to fluctuate  and give different readings so i had to wait and get a new battery this morning and double check  the readings  against the readings from last night .   
New reading  as follows:( checked at least 20 times!!)
 1.5v  with M5
8.1v with   M3 S12000. 
  appologies for the delay  and inconvenience.
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		i set the Steps per in motor tuning  to 2400 and the readings  remained   as follows :
1.5v  with M5 
7.9v to 8.1v  , M3 S12000.
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		
	Quote:
	
		
		
			
				Originally Posted by 
PAULRO
				
			 
			i set the Steps per in motor tuning  to 2400 and the readings  remained   as follows :
1.5v  with M5 
7.9v to 8.1v  , M3 S12000.
			
		
	 
 In Deans temporary absence change the steps to 1600 and report back the  Volts as before.   But say in your post what you have done so Dean will know.   Clive
	 
 - 
	
	
	
		
Re: Let the fun begin !!! ???
	
	
		steps per ,  1600
1.5v,  M5
8.0v, M3 S12000.
Cheers Clive
	 
 - 
	
	
		
2 Attachment(s)
	
	
		Re: Let the fun begin !!! ???
	
	
		i decided to carry out some more tests and checked the voltage readings between FIV & GND .
i started with the spindle motor tuning  and changed the  ''STEPS PER''  using different values and checking the result for change 
I also changed the spindle pulley max value just to see if that made a difference 
all values recorded were  fluctuating by + or - 0.1 volts .
i'm guessing that when i had the spindle control wired in and set up in MACH 3  that the issue of it runing on its own was down to the   constant prescence of the 1.5 volts   between  terminals FIV & GND.  i cannot seem to reduce this value  as the tables reveal.  the ''steps per '' value in  motor tuning ( increase or reduction) had no bearing on the  much sought after 5 volt target. 
on the other hand , because Jazz had mentioned the '' spindle pulley max'' as a possible solution  to the voltage target  i decided to check that out .
the results  show a reduction of the voltage towards the target value of 5 volts using M3 S12000 but the M3 S24000  results drifted below the 10 volt requirement .   The ''M5 '' results held firm at the usual 1.5 v
 so that is the state of play at the moment.  
  it would appear the the PWM  can deliver a variable range  of  5 to 6 volts  and is constantly  delivering 1.5 volts  when spindle is programmed off. 
Then again i might be reading the results incorrectly because i do not have the required knowledge to take this problem futher. perhaps there is another solution or variable that can come into play that will change the present outcome