Dynomotion

Group: DynoMotion Message: 4994 From: Bengt Sjoelund Date: 5/18/2012
Subject: Re: PWM to VFD
No worries Tom,

If my math is OK the ratio is 0.959

Will get to this maybe tomorrow evening when I come back from the shooting range from a full days driving and long range competition shooting.

If I get it right I should copy what I have for the fourth axis and paste ch4 data to my init file.
EnableAxis(0);
EnableAxis(1);
EnableAxis(2);
>>?? EnableAxis(?);
>>?? DefineCoordSystem(0,1,2,-1);

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Sorry for the delay.
>  
> The gear ratio will not be a problem.  That can be treated just like there is a different number of encoder counts/rev.  It would be nice to know the exact ratio.  What is it?
>  
> I uploaded a new C file V4 that should allow selecting the speed range.  The Speed Range is selected using Virtual IO Bit 48.  0=LO 1=HIGH.
>  
> Later this will allow us to select the speed range from either the Mach3Spindle control stuff or Rigid tapping stuff.
>  
> So now let's try repeating the previous experiments again, but for both speed ranges.
>  
> #1 Using the Digital IO screen Set Virtual Bit 48 off.
>  
> #2 run your init.c to configure everything including the spindle axis
>  
> #3 run the new C program
>  
> #4 Test using Jog4=XXX for all +/- speeds up to your max expected Low Speed RPM
>  
>  
> Then set bit 48 on and repeat for up to your max expected Hi Speed RPM.
>  
> Regards
> TK
>  
>  
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wednesday, May 16, 2012 7:53 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
>
> Hi Tom,
>
> I have today verified my spindle speeds as follows:
>
> 16000 = 240rpm at the encoder shaft that is the ingoing shaft into gearbox. I have been in the belief that it was 1:1 with spindle but actually no.
> Spindle rotates at 254.4 rpm at commanded 16000 and at 32000 the rpms are 480 / 509.2 so I hope this can be adjusted in c-file if necessary.
>
> I use a Phototachometer http://www.pedak.nl/Lutron/pdf/Dt-2234a.pdf
>
> As regards shifting from LO to HI on the run works but not if tool is cutting as it takes a short time to stabilize the rpm.
> So I would prefer that speed shifting is done when tool is not cutting
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > ok that's progress.  I'm surprised it isn't more accurate.  With this method there could be some speed variation but the average speed pretty much must be exact.  How are you measuring?  You might check the counts with a stop watch.  For example Jog4=16000 should be exactly 240 RPM.  If you watch the counts on the Axis Screen the time from 1 million counts to the next should be:
> >  
> > 1000000/16000 = 62.5 seconds
> >  
> > BTW Jog4=-16000 should be -240 RPM
> >  
> > I suppose we may as well handle the Hi/Lo Speed stuff next.
> >  
> > How do you expect this to work.  Is it ok to switch speeds while running?  For example if the User or the Gcode selects:
> >  
> > S200
> > S500
> > S1000
> > S1500
> >  
> > Is is ok to just at some point suddenly turn off Low Speed and switch to High speed on the fly while adjusting the PWM appropriately.  Or is it required to come to a full stop and then switch?
> >  
> > Could you perform a test using the Digital IO screen and the PWM1KHz.c example to manually make a test?
> >  
> > Regards
> > TK
> >  
> >  
> >  
> >  
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tuesday, May 15, 2012 2:11 PM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> > Change to 85000 gives following jog4=
> > 8000 127rpm
> > 16000 254rpm
> > 32000 508rpm
> > 64000 1018rpm
> > 6000 95rpm but a bit unstable as I can hear
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >
> > > If you still have Max Error = 4000  and P gain = 0.0031?
> > >
> > > Then 4000 x 0.0031 = 12 PWM counts
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tuesday, May 15, 2012 11:52 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > > Jog4=4000 SP turns 15rev stops 1sec turns 15r stops 1sec etc.....
> > > Opening cfile OutputtoPWMDirv3.c
> > > Compile/download/run
> > > load my data
> > > Disable/zero/move 3sec/6000
> > > Spindle rotates ~1.5rev
> > > Axis screen
> > > Dest goes to 6000 and counts down.
> > > Pos overshoots 10-20 and zeroes at -10-20 (varies from move to move)
> > > When 60000 is commanded Dest goes up to 60.000 and down
> > > Pos somewhere about 51-52000 and counts down
> > > When 100000 Dest goes up to 100000 and down
> > > Pos to 83.000+ and ends at +40 to 50
> > > Checked rpm's to be ~200rpm
> > >
> > > Sorry but I cannot set higher speeds, what figures to change?
> > >
> > > Checked PWMto1kHz and 100PWM = 512rpm
> > >
> > > All spindle movement starts with CCW
> > >
> > > Sorry for long delay but something odd with Yahoo as my keyboard is like typeing in tar.
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > Are you saying you enter Jog4=4000 and the Spindle turns 15 turns and stops forever?
> > > > ÃÆ'‚ 
> > > > Could you explain things in more detail what you are doing and exactly what happens?ÃÆ'‚  Please include as much information as possible including things like information on what the commanded Dest and Encoder Position is doing on the Axis Screen and whether the axes remain enabled and so forth?
> > > > ÃÆ'‚ 
> > > > I suppose we should go back to the Step Response Screen.ÃÆ'‚  I asked how many revs the Spindle was moving for the plotted moves and you never answered.ÃÆ'‚  I asked to test larger and faster speeds and you never responded.ÃÆ'‚  I don't know whether you did those requests and all was good or did not test.ÃÆ'‚  All you have shown is a slow 6000 count move.ÃÆ'‚  Is that move 1.5 Revs?
> > > > Regards
> > > > TK
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tuesday, May 15, 2012 7:54 AM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > > You are one early bird ;)
> > > >
> > > > #1 OK
> > > > #2 -4000 = CW / turns the spindle ~15turns and stops ~1sec / 67rpm
> > > > #3 -40000 runs the spindle with 67 rpm
> > > >
> > > > #2 if jog4=4000 it turns 1rev stops 1rev stops etc
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Ok let's go one step at a time.ÃÆ'Æ'‚ÃÆ'‚  Let's get Console Jogs to work.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > #1 On the Step Response Screen use the Zero and Move buttons to Download and Enable the Spindle Axis and verify it is functioning properly as your previous plots showed.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > #2 On the Console Screen Enter:ÃÆ'Æ'‚ÃÆ'‚  Jog4=4000ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚  Does the spindle rotate 1 rev per second?ÃÆ'Æ'‚ÃÆ'‚  If not, explain what happened.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > #3 On the Console Screen Enter:ÃÆ'Æ'‚ÃÆ'‚  Jog4=40000 Does the spindle rotate 10 rev per second (600 RPM)?
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Regards
> > > > > TK
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tuesday, May 15, 2012 6:18 AM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom,
> > > > >
> > > > > 1. Cannot get jog4=40000 to work
> > > > > 2. Nothing in Mach3 MDI M3 S300
> > > > >
> > > > > Obviosly something is wrong. Can you tell me what C files should be compiled and downloaded to KFlop and what files is needed in Mach3 plugin setup.
> > > > >
> > > > > I assume in Mach3 following will be needed in Mach3
> > > > > CombiMill 3axis.c (do I need to add ch4?)
> > > > > SpindleMach3PWMHiLoGear.c is the latest tested file
> > > > > CombiMillHomeMach3C.c
> > > > > NotifyMach3.c
> > > > >
> > > > > Sorry but I am all mixed up here, so be kind to me ;)
> > > > > Would be helpful to have a step by step setup so I can manage to get all working.
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Yes that looks quite good.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You still are not moving very far.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  1.5 revs??ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So the speed is only getting up to about 200 RPM.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  And we are only using 7 of 255 PWM counts.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The 0.2 sec delay is a bit odd but shouldn't hurt anything.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Realize that just because the spindle motion is not perfect doesn't mean that the Rigid Tap won't be perfect.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because the Z motion will be sync'ed to the Spindle Motion.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We just need the Spindle to accelerate smoothly to the right tapping speed and stop/reverse after the right number of turns.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Other systems that just try to move the spindle and z axis in an open loop but coordinated manner wouldn't work as well.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You shouldn't need flexible tap holders.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Hopefully :}
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > The C Program is written to always output CW or CCW whenever the axis is enabled.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So it always tries to hold position.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  0 PWM setting causes it to stop so I don't see a need to disable the VFD.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It will disable everything if the axis is disabled.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > You should also now be able to try setting constant spindle speed by commanding Jogs.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So for example on the Console Screen Jog4=40000 should be 600RPM exactly.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also the SpindleMach3Jog.c should now work for Mach3.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Regarding the IO are those inputs or outputs?ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Seems like Coolant On would be an output but you are referencing inputs.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But yes the general purpose inputs are very high impedance inputs which will just float if not driven.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  They must be driven high and low (ie a pulldown resistor).
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Regards
> > > > > > TK
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Monday, May 14, 2012 12:38 PM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom,
> > > > > >
> > > > > > Have uploaded PWMtoVFD 5.png to my folder.
> > > > > > I have tried to follow you instructions and have added the filter you wanted and 50Hz Q1.4 looks best if I can 'read' the curves correctly.
> > > > > >
> > > > > > As you meantioned tapping would probably work just fine even with a very coarse thread and I will be using tap holders that are flexible to some degree up and down.
> > > > > >
> > > > > > One thing I have noticed is that after the spindle makes it move the bits 152 and 153 are on. I assumed that they should be off?
> > > > > >
> > > > > > So is this as good as we can get it and I can do tapping and run the spindle I assume there will be a new C-file to make it work with Mach3.
> > > > > >
> > > > > > Have been doing some wireing to JP12, I am a bit confused as bits 128 to 135 behave very odd I am using 132-134-135 that is 132 for worklight swith on my control panel, 134 for manual coolant on and 135 for starting central oiler pump.
> > > > > > 132/134 are +24VDC via 1K + 3.3V Zener to GND and a serial 100R to input, 135 3.3V via swithch to input.
> > > > > > When I start up all show active even if OFF and unused/unconnected 128-131+133 show active.
> > > > > > Cannot get 132 and 135 to work but 134 works OK, do I need pulldown to settle these bits?
> > > > > > JP12 is connected via Winford breakout with 10-12cm ribboncable.
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Bengt,
> > > > > > >
> > > > > > > Yes I think that is getting close.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Looks like it is moving to within about ~100 counts or about 10 degrees of where it is being told to go.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That should be sufficient for rigid tapping.
> > > > > > >
> > > > > > > But notice the actual speed (red slope) is not able to keep up with the commanded speed (blue slope).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because we have a Max Error setting of only 200 counts combined with a low P gain setting of 0.006.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  200 x 0.006 = 1.2 PWM counts.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You can see that the PWM Output (green plot) is clipped at that value so we are never commanding more than 1 PWM
> count.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Let's increase the Max Error from 200 to 4000.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also try a bigger move that would accelerate to a higher
> > speed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You may have to re-adjust the P gain for best results.
> > > > > > >
> > > > > > >
> > > > > > > To reduce over shoot you might try some D gain.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You should use this with a 2nd order Low pass filter (Q=1.4) to smooth the output.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  A low pass filter has the benefit of smoothing the output but will have the disadvantage of phase lag which will cause the system to overshoot more.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The lower the frequency the more smoothing but the more phase
> lag.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Add the Low Pass filter first (before any D gain) and find the lowest frequency possible that doesn't add significant additional overshoot.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I'm guessing this may be around
> > 50Hz.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Then start adding D gain to see if it reduces the overshoot.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It's hard for me to predict what the numeric value might
> > > be.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Start with is tiny number that has no effect.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Then increase it in steps of about 50% increases until you see an
> > > > effect.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Too much will cause the system to become more unstable.
> > > > > > >
> > > > > > >
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Saturday, May 12, 2012 4:37 AM
> > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > Changed both transistors just to safe and now it is working. Uploaded a picture PWMtoVFD4.png to my folder.
> > > > > > >
> > > > > > > Can you be so kind and direct me so we can get the best of of this.
> > > > > > > How can I command in Console a fixed speed for test?
> > > > > > >
> > > > > > > Looking forward to see what you have in mind for this old fart ;)
> > > > > > > I am happy as I have peed out the small stone last night, picture in same folder.
> > > > > > >
> > > > > > > Cheers
> > > > > > > Bengt
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Hi Bengt,
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > I agree.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  OrÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  a short from base to collector somehow.
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Friday, May 11, 2012 1:34 PM
> > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > >
> > > > > > > >
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > I just had to get down and do it, had a break with pain so here it is.
> > > > > > > >
> > > > > > > > PWM
> > > > > > > > 0= 0V 255= 2.7V
> > > > > > > > collector opto
> > > > > > > > 4.99V 0.137V
> > > > > > > > base pnp
> > > > > > > > 4.99V 4.18V
> > > > > > > > base npn
> > > > > > > > 0.525V 0.642V
> > > > > > > > collector pnp
> > > > > > > > 0.510V 4.77V
> > > > > > > > collector npn
> > > > > > > > 0.528V 0.643V
> > > > > > > >
> > > > > > > > Looks to me like the 2N2222A is out of order (Ebay...)
> > > > > > > >
> > > > > > > > Cheers
> > > > > > > > Bengt
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Bengt,
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > No rush.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Take care of yourself we need you :}
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Friday, May 11, 2012 11:41 AM
> > > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Hi Tom,
> > > > > > > > >
> > > > > > > > > I will carry out the measurements tomorrow, just now I am not up to it as I am having one or several kidney stones on the way out.
> > > > > > > > > Hopefully this will be over soon.
> > > > > > > > >
> > > > > > > > > This is what I was afraid of as the max would not go over 2.5V so let us hope I can nail down the fault.
> > > > > > > > >
> > > > > > > > > Cheers
> > > > > > > > > Bengt
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Bengt,
> > > > > > > > > >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > >
> Thanks.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That was exactly the information I
> >
> needed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It seems like there is still a problem with your
> > >
> circuit.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Â
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  For a duty cycle of 0% (solid off) your circuit output should be closer to 0V (0.1V or
> >
> less).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Not
> > > >
> 0.5V.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also 100% (solid on) should be approximately 4.8V not
> >
> 2.5V.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It should be easy to use a voltmeter
> > >
> toÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢Ã
> Æ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ locate the
> > > > >
> problem.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Â
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  In the 0% and 100% cases everything is steady
> >
> state.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I've uploaded two schematic files where I have marked the expected voltages at each node in your
> > >
> circuit.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Â
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ Please command the PWM to 0% (value=0) and PWM to
> > > > > > 100% (value=255) and measure the voltages to see what you actually have at each node so we can locate the problem.
> > > > > > > > > >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > http://f1.grp.yahoofs.com/v1/oFOtT2Z7Vu3mb-HtLJrM0zouZxMlRoikiy7UiNSef9Znrtl98rj6hT6fqhc2raV0LGWqTh0hEcsGFDQ8FFW29w/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20OFF%20TK.png
> > > > > > > > > >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > http://f1.grp.yahoofs.com/v1/oFOtTwpfuFnmb-HtjrjdyeNq-eXiQWjBHvWPTd2NS7sojh8fmcw4eq_9F-ukbqA6letv9dvRbafVmcOCFDXHXQ/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20ON%20TK.png
> > > > > > > > > >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > > Sent: Friday, May 11, 2012 5:27 AM
> > > > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Hi Tom,
> > > > > > > > > >
> > > > > > > > > > I have uploaded the test you requested, hopefully this will give you some ideas on how to proceed with further tests.
> > > > > > > > > >
> > > > > > > > > > What do you say about modifying the PWM adapter (PWM to VFD 0-5VDC.png) as I get no higher than 2.5Vmax with 100% dutycycle on PWM. Changing collector to output resistors from 1K to <50R? Have this up in simulator (Multisim) with a load of 1K5 on the output that gives with 1K resistors 2.5V changing to 33R gives 4.82V so that gives a swing from 2% duty cycle 80mV to 99% duty cycle 4.82V
> > > > > > > > > >
> > > > > > > > > > Cheers
> > > > > > > > > > Bengt
> > > > > > > > > >
> > > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Bengt,
> > > > > > > > > > >
> > > > > > > > > > > Normally the way a PWM works is that we leave the frequency constant (ie 1KHz and Pre Scale = 65) and vary the duty cycle from 0 to
> >
> 100%.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'
> Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'Ã
> ¢â‚¬Å¡ÃÆ'‚¢
> >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢
> ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Since this is an 8-bit PWM that means to set the
> > > duty cycle from values from 0 to 255.
> > > > > > > > > > >
> > > > > > > > > > > If you observe the plot we are still having a problem commanding a slow
> >
> speed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡Ã
> Æ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'
> ‚ÃÆ'‚Â
> >
> ¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'Â
> ¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The slowest it ever goes is about 8000 counts/sec which is about
> > >
> >
> 100RPM.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡Ã
> Æ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'
> ‚ÃÆ'‚Â
> >
> ¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'Â
> ¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We have a limit in the C program to never reverse direction
> > > > relays (CW to CCW) more than every 1
> >
> second.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢<br/><br/>(Message over 64 KB, truncated)
Group: DynoMotion Message: 4996 From: Tom Kerekes Date: 5/18/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
Is that the exact ratio?  If it isn't exact then after thousands or millions of revs the spindle angle will be off. Athough that probably won't matter in your case unless you want to do threading.
 
It would of course be:
 
EnableAxis(4);
 
Do not include it in the coordinated motion system
 
Regards and good luck in your shooting.
TK

From: Bengt Sjoelund <cnc@...>
To: DynoMotion@yahoogroups.com
Sent: Friday, May 18, 2012 12:18 PM
Subject: [DynoMotion] Re: PWM to VFD

 
No worries Tom,

If my math is OK the ratio is 0.959

Will get to this maybe tomorrow evening when I come back from the shooting range from a full days driving and long range competition shooting.

If I get it right I should copy what I have for the fourth axis and paste ch4 data to my init file.
EnableAxis(0);
EnableAxis(1);
EnableAxis(2);
>>?? EnableAxis(?);
>>?? DefineCoordSystem(0,1,2,-1);

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Sorry for the delay.
>  
> The gear ratio will not be a problem.  That can be treated just like there is a different number of encoder counts/rev.  It would be nice to know the exact ratio.  What is it?
>  
> I uploaded a new C file V4 that should allow selecting the speed range.  The Speed Range is selected using Virtual IO Bit 48.  0=LO 1=HIGH.
>  
> Later this will allow us to select the speed range from either the Mach3Spindle control stuff or Rigid tapping stuff.
>  
> So now let's try repeating the previous experiments again, but for both speed ranges.
>  
> #1 Using the Digital IO screen Set Virtual Bit 48 off.
>  
> #2 run your init.c to configure everything including the spindle axis
>  
> #3 run the new C program
>  
> #4 Test using Jog4=XXX for all +/- speeds up to your max expected Low Speed RPM
>  
>  
> Then set bit 48 on and repeat for up to your max expected Hi Speed RPM.
>  
> Regards
> TK
>  
>  
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wednesday, May 16, 2012 7:53 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
>
> Hi Tom,
>
> I have today verified my spindle speeds as follows:
>
> 16000 = 240rpm at the encoder shaft that is the ingoing shaft into gearbox. I have been in the belief that it was 1:1 with spindle but actually no.
> Spindle rotates at 254.4 rpm at commanded 16000 and at 32000 the rpms are 480 / 509.2 so I hope this can be adjusted in c-file if necessary.
>
> I use a Phototachometer http://www.pedak.nl/Lutron/pdf/Dt-2234a.pdf
>
> As regards shifting from LO to HI on the run works but not if tool is cutting as it takes a short time to stabilize the rpm.
> So I would prefer that speed shifting is done when tool is not cutting
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > ok that's progress.  I'm surprised it isn't more accurate.  With this method there could be some speed variation but the average speed pretty much must be exact.  How are you measuring?  You might check the counts with a stop watch.  For example Jog4=16000 should be exactly 240 RPM.  If you watch the counts on the Axis Screen the time from 1 million counts to the next should be:
> >  
> > 1000000/16000 = 62.5 seconds
> >  
> > BTW Jog4=-16000 should be -240 RPM
> >  
> > I suppose we may as well handle the Hi/Lo Speed stuff next.
> >  
> > How do you expect this to work.  Is it ok to switch speeds while running?  For example if the User or the Gcode selects:
> >  
> > S200
> > S500
> > S1000
> > S1500
> >  
> > Is is ok to just at some point suddenly turn off Low Speed and switch to High speed on the fly while adjusting the PWM appropriately.  Or is it required to come to a full stop and then switch?
> >  
> > Could you perform a test using the Digital IO screen and the PWM1KHz.c example to manually make a test?
> >  
> > Regards
> > TK
> >  
> >  
> >  
> >  
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tuesday, May 15, 2012 2:11 PM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> > Change to 85000 gives following jog4=
> > 8000 127rpm
> > 16000 254rpm
> > 32000 508rpm
> > 64000 1018rpm
> > 6000 95rpm but a bit unstable as I can hear
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >
> > > If you still have Max Error = 4000  and P gain = 0.0031?
> > >
> > > Then 4000 x 0.0031 = 12 PWM counts
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tuesday, May 15, 2012 11:52 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > > Jog4=4000 SP turns 15rev stops 1sec turns 15r stops 1sec etc.....
> > > Opening cfile OutputtoPWMDirv3.c
> > > Compile/download/run
> > > load my data
> > > Disable/zero/move 3sec/6000
> > > Spindle rotates ~1.5rev
> > > Axis screen
> > > Dest goes to 6000 and counts down.
> > > Pos overshoots 10-20 and zeroes at -10-20 (varies from move to move)
> > > When 60000 is commanded Dest goes up to 60.000 and down
> > > Pos somewhere about 51-52000 and counts down
> > > When 100000 Dest goes up to 100000 and down
> > > Pos to 83.000+ and ends at +40 to 50
> > > Checked rpm's to be ~200rpm
> > >
> > > Sorry but I cannot set higher speeds, what figures to change?
> > >
> > > Checked PWMto1kHz and 100PWM = 512rpm
> > >
> > > All spindle movement starts with CCW
> > >
> > > Sorry for long delay but something odd with Yahoo as my keyboard is like typeing in tar.
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > Are you saying you enter Jog4=4000 and the Spindle turns 15 turns and stops forever?
> > > > ÃÆ'‚ 
> > > > Could you explain things in more detail what you are doing and exactly what happens?ÃÆ'‚  Please include as much information as possible including things like information on what the commanded Dest and Encoder Position is doing on the Axis Screen and whether the axes remain enabled and so forth?
> > > > ÃÆ'‚ 
> > > > I suppose we should go back to the Step Response Screen.ÃÆ'‚  I asked how many revs the Spindle was moving for the plotted moves and you never answered.ÃÆ'‚  I asked to test larger and faster speeds and you never responded.ÃÆ'‚  I don't know whether you did those requests and all was good or did not test.ÃÆ'‚  All you have shown is a slow 6000 count move.ÃÆ'‚  Is that move 1.5 Revs?
> > > > Regards
> > > > TK
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tuesday, May 15, 2012 7:54 AM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > > You are one early bird ;)
> > > >
> > > > #1 OK
> > > > #2 -4000 = CW / turns the spindle ~15turns and stops ~1sec / 67rpm
> > > > #3 -40000 runs the spindle with 67 rpm
> > > >
> > > > #2 if jog4=4000 it turns 1rev stops 1rev stops etc
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Ok let's go one step at a time.ÃÆ'Æ'‚ÃÆ'‚  Let's get Console Jogs to work.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > #1 On the Step Response Screen use the Zero and Move buttons to Download and Enable the Spindle Axis and verify it is functioning properly as your previous plots showed.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > #2 On the Console Screen Enter:ÃÆ'Æ'‚ÃÆ'‚  Jog4=4000ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚  Does the spindle rotate 1 rev per second?ÃÆ'Æ'‚ÃÆ'‚  If not, explain what happened.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > #3 On the Console Screen Enter:ÃÆ'Æ'‚ÃÆ'‚  Jog4=40000 Does the spindle rotate 10 rev per second (600 RPM)?
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Regards
> > > > > TK
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tuesday, May 15, 2012 6:18 AM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom,
> > > > >
> > > > > 1. Cannot get jog4=40000 to work
> > > > > 2. Nothing in Mach3 MDI M3 S300
> > > > >
> > > > > Obviosly something is wrong. Can you tell me what C files should be compiled and downloaded to KFlop and what files is needed in Mach3 plugin setup.
> > > > >
> > > > > I assume in Mach3 following will be needed in Mach3
> > > > > CombiMill 3axis.c (do I need to add ch4?)
> > > > > SpindleMach3PWMHiLoGear.c is the latest tested file
> > > > > CombiMillHomeMach3C.c
> > > > > NotifyMach3.c
> > > > >
> > > > > Sorry but I am all mixed up here, so be kind to me ;)
> > > > > Would be helpful to have a step by step setup so I can manage to get all working.
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Yes that looks quite good.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You still are not moving very far.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  1.5 revs??ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So the speed is only getting up to about 200 RPM.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  And we are only using 7 of 255 PWM counts.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The 0.2 sec delay is a bit odd but shouldn't hurt anything.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Realize that just because the spindle motion is not perfect doesn't mean that the Rigid Tap won't be perfect.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because the Z motion will be sync'ed to the Spindle Motion.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We just need the Spindle to accelerate smoothly to the right tapping speed and stop/reverse after the right number of turns.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Other systems that just try to move the spindle and z axis in an open loop but coordinated manner wouldn't work as well.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You shouldn't need flexible tap holders.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Hopefully :}
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > The C Program is written to always output CW or CCW whenever the axis is enabled.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So it always tries to hold position.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  0 PWM setting causes it to stop so I don't see a need to disable the VFD.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It will disable everything if the axis is disabled.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > You should also now be able to try setting constant spindle speed by commanding Jogs.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So for example on the Console Screen Jog4=40000 should be 600RPM exactly.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also the SpindleMach3Jog.c should now work for Mach3.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Regarding the IO are those inputs or outputs?ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Seems like Coolant On would be an output but you are referencing inputs.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But yes the general purpose inputs are very high impedance inputs which will just float if not driven.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  They must be driven high and low (ie a pulldown resistor).
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Regards
> > > > > > TK
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Monday, May 14, 2012 12:38 PM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom,
> > > > > >
> > > > > > Have uploaded PWMtoVFD 5.png to my folder.
> > > > > > I have tried to follow you instructions and have added the filter you wanted and 50Hz Q1.4 looks best if I can 'read' the curves correctly.
> > > > > >
> > > > > > As you meantioned tapping would probably work just fine even with a very coarse thread and I will be using tap holders that are flexible to some degree up and down.
> > > > > >
> > > > > > One thing I have noticed is that after the spindle makes it move the bits 152 and 153 are on. I assumed that they should be off?
> > > > > >
> > > > > > So is this as good as we can get it and I can do tapping and run the spindle I assume there will be a new C-file to make it work with Mach3.
> > > > > >
> > > > > > Have been doing some wireing to JP12, I am a bit confused as bits 128 to 135 behave very odd I am using 132-134-135 that is 132 for worklight swith on my control panel, 134 for manual coolant on and 135 for starting central oiler pump.
> > > > > > 132/134 are +24VDC via 1K + 3.3V Zener to GND and a serial 100R to input, 135 3.3V via swithch to input.
> > > > > > When I start up all show active even if OFF and unused/unconnected 128-131+133 show active.
> > > > > > Cannot get 132 and 135 to work but 134 works OK, do I need pulldown to settle these bits?
> > > > > > JP12 is connected via Winford breakout with 10-12cm ribboncable.
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Bengt,
> > > > > > >
> > > > > > > Yes I think that is getting close.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Looks like it is moving to within about ~100 counts or about 10 degrees of where it is being told to go.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That should be sufficient for rigid tapping.
> > > > > > >
> > > > > > > But notice the actual speed (red slope) is not able to keep up with the commanded speed (blue slope).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because we have a Max Error setting of only 200 counts combined with a low P gain setting of 0.006.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  200 x 0.006 = 1.2 PWM counts.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You can see that the PWM Output (green plot) is clipped at that value so we are never commanding more than 1 PWM
> count.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Let's increase the Max Error from 200 to 4000.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also try a bigger move that would accelerate to a higher
> > speed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You may have to re-adjust the P gain for best results.
> > > > > > >
> > > > > > >
> > > > > > > To reduce over shoot you might try some D gain.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You should use this with a 2nd order Low pass filter (Q=1.4) to smooth the output.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  A low pass filter has the benefit of smoothing the output but will have the disadvantage of phase lag which will cause the system to overshoot more.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The lower the frequency the more smoothing but the more phase
> lag.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Add the Low Pass filter first (before any D gain) and find the lowest frequency possible that doesn't add significant additional overshoot.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I'm guessing this may be around
> > 50Hz.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Then start adding D gain to see if it reduces the overshoot.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It's hard for me to predict what the numeric value might
> > > be.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Start with is tiny number that has no effect.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Then increase it in steps of about 50% increases until you see an
> > > > effect.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Too much will cause the system to become more unstable.
> > > > > > >
> > > > > > >
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Saturday, May 12, 2012 4:37 AM
> > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > Changed both transistors just to safe and now it is working. Uploaded a picture PWMtoVFD4.png to my folder.
> > > > > > >
> > > > > > > Can you be so kind and direct me so we can get the best of of this.
> > > > > > > How can I command in Console a fixed speed for test?
> > > > > > >
> > > > > > > Looking forward to see what you have in mind for this old fart ;)
> > > > > > > I am happy as I have peed out the small stone last night, picture in same folder.
> > > > > > >
> > > > > > > Cheers
> > > > > > > Bengt
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Hi Bengt,
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > I agree.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  OrÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  a short from base to collector somehow.
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Friday, May 11, 2012 1:34 PM
> > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > >
> > > > > > > >
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > I just had to get down and do it, had a break with pain so here it is.
> > > > > > > >
> > > > > > > > PWM
> > > > > > > > 0= 0V 255= 2.7V
> > > > > > > > collector opto
> > > > > > > > 4.99V 0.137V
> > > > > > > > base pnp
> > > > > > > > 4.99V 4.18V
> > > > > > > > base npn
> > > > > > > > 0.525V 0.642V
> > > > > > > > collector pnp
> > > > > > > > 0.510V 4.77V
> > > > > > > > collector npn
> > > > > > > > 0.528V 0.643V
> > > > > > > >
> > > > > > > > Looks to me like the 2N2222A is out of order (Ebay...)
> > > > > > > >
> > > > > > > > Cheers
> > > > > > > > Bengt
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Bengt,
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Ãâ€&n bsp;'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > No rush.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Ã⠀ 'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Take care of yourself we need you :}
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Ãâ€&n bsp;'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Friday, May 11, 2012 11:41 AM
> > > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Ãâ€&n bsp;'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Hi Tom,
> > > > > > > > >
> > > > > > > > > I will carry out the measurements tomorrow, just now I am not up to it as I am having one or several kidney stones on the way out.
> > > > > > > > > Hopefully this will be over soon.
> > > > > > > > >
> > > > > > > > > This is what I was afraid of as the max would not go over 2.5V so let us hope I can nail down the fault.
> > > > > > > > >
> > > > > > > > > Cheers
> > > > > > > > > Bengt
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Bengt,
> > > > > > > > > >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢ €šÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'à †'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ' ¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > >
> Thanks.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'à ‚¢Ã¢â€šÂ¬Ã…¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'à Æ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ' ¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That was exactly the information I
> >
> needed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'à ‚¢Ã¢â€šÂ¬Ã…¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'à Æ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ' ¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It seems like there is still a problem with your
> > >
> circuit.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'à ‚¢Ã¢â€šÂ¬Ã…¡ÃÆ'‚ÂÂÂ�

(Message over 64 KB, truncated)
Group: DynoMotion Message: 4999 From: Bengt Sjoelund Date: 5/20/2012
Subject: Re: PWM to VFD
Hi Tom,

RE ratio, not sure at all now after last test with the new file.
If I Jog4=15085 the spindle is steady at 240rpm

Done some testing as you requested and I get a range in LO from 6600 to 66000 that is 104rpm to 1030 maximum that is a bit slower than max I could get out before via PWMto1kHz

Virtual Bit 48 does not work as it is supposed to do as it switches BIT152 Off. Manual enabling does not work as long as Virtual Bit48 is ON.

Manually setting HI I cannot get more than 2060rpm (Jog4=132000)
HI is ranging from 6600 to 132000

I have not changed any values in the latest c-file

Manually with potentiometer LO=1324rpm HI=2643rpm so the goal is to get LO 1250 and HI 2500 as label on machine. Obviously I cannot get higher voltage to get these rpm's, maybe an external 5VDC source to drive the PWM adapter to get a bit higher output?

Cheers
Bengt

Cheers
Bengt



--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Is that the exact ratio?  If it isn't exact then after thousands or millions of revs the spindle angle will be off. Athough that probably won't matter in your case unless you want to do threading.
>  
> It would of course be:
>  
> EnableAxis(4);
>  
> Do not include it in the coordinated motion system
>  
> Regards and good luck in your shooting.
> TK
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Friday, May 18, 2012 12:18 PM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>
>  
>
> No worries Tom,
>
> If my math is OK the ratio is 0.959
>
> Will get to this maybe tomorrow evening when I come back from the shooting range from a full days driving and long range competition shooting.
>
> If I get it right I should copy what I have for the fourth axis and paste ch4 data to my init file.
> EnableAxis(0);
> EnableAxis(1);
> EnableAxis(2);
> >>?? EnableAxis(?);
> >>?? DefineCoordSystem(0,1,2,-1);
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > Sorry for the delay.
> >  
> > The gear ratio will not be a problem.  That can be treated just like there is a different number of encoder counts/rev.  It would be nice to know the exact ratio.  What is it?
> >  
> > I uploaded a new C file V4 that should allow selecting the speed range.  The Speed Range is selected using Virtual IO Bit 48.  0=LO 1=HIGH.
> >  
> > Later this will allow us to select the speed range from either the Mach3Spindle control stuff or Rigid tapping stuff.
> >  
> > So now let's try repeating the previous experiments again, but for both speed ranges.
> >  
> > #1 Using the Digital IO screen Set Virtual Bit 48 off.
> >  
> > #2 run your init.c to configure everything including the spindle axis
> >  
> > #3 run the new C program
> >  
> > #4 Test using Jog4=XXX for all +/- speeds up to your max expected Low Speed RPM
> >  
> >  
> > Then set bit 48 on and repeat for up to your max expected Hi Speed RPM.
> >  
> > Regards
> > TK
> >  
> >  
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Wednesday, May 16, 2012 7:53 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> >
> > Hi Tom,
> >
> > I have today verified my spindle speeds as follows:
> >
> > 16000 = 240rpm at the encoder shaft that is the ingoing shaft into gearbox. I have been in the belief that it was 1:1 with spindle but actually no.
> > Spindle rotates at 254.4 rpm at commanded 16000 and at 32000 the rpms are 480 / 509.2 so I hope this can be adjusted in c-file if necessary.
> >
> > I use a Phototachometer http://www.pedak.nl/Lutron/pdf/Dt-2234a.pdf
> >
> > As regards shifting from LO to HI on the run works but not if tool is cutting as it takes a short time to stabilize the rpm.
> > So I would prefer that speed shifting is done when tool is not cutting
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > ok that's progress.  I'm surprised it isn't more accurate.  With this method there could be some speed variation but the average speed pretty much must be exact.  How are you measuring?  You might check the counts with a stop watch.  For example Jog4=16000 should be exactly 240 RPM.  If you watch the counts on the Axis Screen the time from 1 million counts to the next should be:
> > >  
> > > 1000000/16000 = 62.5 seconds
> > >  
> > > BTW Jog4=-16000 should be -240 RPM
> > >  
> > > I suppose we may as well handle the Hi/Lo Speed stuff next.
> > >  
> > > How do you expect this to work.  Is it ok to switch speeds while running?  For example if the User or the Gcode selects:
> > >  
> > > S200
> > > S500
> > > S1000
> > > S1500
> > >  
> > > Is is ok to just at some point suddenly turn off Low Speed and switch to High speed on the fly while adjusting the PWM appropriately.  Or is it required to come to a full stop and then switch?
> > >  
> > > Could you perform a test using the Digital IO screen and the PWM1KHz.c example to manually make a test?
> > >  
> > > Regards
> > > TK
> > >  
> > >  
> > >  
> > >  
> > >
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tuesday, May 15, 2012 2:11 PM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > > Change to 85000 gives following jog4=
> > > 8000 127rpm
> > > 16000 254rpm
> > > 32000 508rpm
> > > 64000 1018rpm
> > > 6000 95rpm but a bit unstable as I can hear
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > >
> > > > If you still have Max Error = 4000ÃÆ'‚  and P gain = 0.0031?
> > > >
> > > > Then 4000 x 0.0031 = 12 PWM counts
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tuesday, May 15, 2012 11:52 AM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > > Jog4=4000 SP turns 15rev stops 1sec turns 15r stops 1sec etc.....
> > > > Opening cfile OutputtoPWMDirv3.c
> > > > Compile/download/run
> > > > load my data
> > > > Disable/zero/move 3sec/6000
> > > > Spindle rotates ~1.5rev
> > > > Axis screen
> > > > Dest goes to 6000 and counts down.
> > > > Pos overshoots 10-20 and zeroes at -10-20 (varies from move to move)
> > > > When 60000 is commanded Dest goes up to 60.000 and down
> > > > Pos somewhere about 51-52000 and counts down
> > > > When 100000 Dest goes up to 100000 and down
> > > > Pos to 83.000+ and ends at +40 to 50
> > > > Checked rpm's to be ~200rpm
> > > >
> > > > Sorry but I cannot set higher speeds, what figures to change?
> > > >
> > > > Checked PWMto1kHz and 100PWM = 512rpm
> > > >
> > > > All spindle movement starts with CCW
> > > >
> > > > Sorry for long delay but something odd with Yahoo as my keyboard is like typeing in tar.
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Are you saying you enter Jog4=4000 and the Spindle turns 15 turns and stops forever?
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Could you explain things in more detail what you are doing and exactly what happens?ÃÆ'Æ'‚ÃÆ'‚  Please include as much information as possible including things like information on what the commanded Dest and Encoder Position is doing on the Axis Screen and whether the axes remain enabled and so forth?
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > I suppose we should go back to the Step Response Screen.ÃÆ'Æ'‚ÃÆ'‚  I asked how many revs the Spindle was moving for the plotted moves and you never answered.ÃÆ'Æ'‚ÃÆ'‚  I asked to test larger and faster speeds and you never responded.ÃÆ'Æ'‚ÃÆ'‚  I don't know whether you did those requests and all was good or did not test.ÃÆ'Æ'‚ÃÆ'‚  All you have shown is a slow 6000 count move.ÃÆ'Æ'‚ÃÆ'‚  Is that move 1.5 Revs?
> > > > > Regards
> > > > > TK
> > > > >
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tuesday, May 15, 2012 7:54 AM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom,
> > > > > You are one early bird ;)
> > > > >
> > > > > #1 OK
> > > > > #2 -4000 = CW / turns the spindle ~15turns and stops ~1sec / 67rpm
> > > > > #3 -40000 runs the spindle with 67 rpm
> > > > >
> > > > > #2 if jog4=4000 it turns 1rev stops 1rev stops etc
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Ok let's go one step at a time.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Let's get Console Jogs to work.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > #1 On the Step Response Screen use the Zero and Move buttons to Download and Enable the Spindle Axis and verify it is functioning properly as your previous plots showed.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > #2 On the Console Screen Enter:ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Jog4=4000ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Does the spindle rotate 1 rev per second?ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  If not, explain what happened.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > #3 On the Console Screen Enter:ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Jog4=40000 Does the spindle rotate 10 rev per second (600 RPM)?
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Regards
> > > > > > TK
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Tuesday, May 15, 2012 6:18 AM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom,
> > > > > >
> > > > > > 1. Cannot get jog4=40000 to work
> > > > > > 2. Nothing in Mach3 MDI M3 S300
> > > > > >
> > > > > > Obviosly something is wrong. Can you tell me what C files should be compiled and downloaded to KFlop and what files is needed in Mach3 plugin setup.
> > > > > >
> > > > > > I assume in Mach3 following will be needed in Mach3
> > > > > > CombiMill 3axis.c (do I need to add ch4?)
> > > > > > SpindleMach3PWMHiLoGear.c is the latest tested file
> > > > > > CombiMillHomeMach3C.c
> > > > > > NotifyMach3.c
> > > > > >
> > > > > > Sorry but I am all mixed up here, so be kind to me ;)
> > > > > > Would be helpful to have a step by step setup so I can manage to get all working.
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Bengt,
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Yes that looks quite good.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You still are not moving very far.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  1.5 revs??ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So the speed is only getting up to about 200 RPM.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  And we are only using 7 of 255 PWM
> counts.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The 0.2 sec delay is a bit odd but shouldn't hurt anything.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Realize that just because the spindle motion is not perfect doesn't mean that the Rigid Tap won't be perfect.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because the Z motion will be sync'ed to the Spindle Motion.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We just need the Spindle to accelerate smoothly to the right tapping speed and stop/reverse after the right number of turns.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Other systems that just try to move the spindle and z axis in an open loop but coordinated manner wouldn't work
> as well.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You shouldn't need flexible tap holders.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Hopefully :}
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > The C Program is written to always output CW or CCW whenever the axis is enabled.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So it always tries to hold position.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  0 PWM setting causes it to stop so I don't see a need to disable the
> VFD.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It will disable everything if the axis is disabled.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > You should also now be able to try setting constant spindle speed by commanding Jogs.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So for example on the Console Screen Jog4=40000 should be 600RPM exactly.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also the SpindleMach3Jog.c should now work for Mach3.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Regarding the IO are those inputs or outputs?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Seems like Coolant On would be an output but you are referencing inputs.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But yes the general purpose inputs are very high impedance inputs which will just float if not driven.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  They must be driven high and low (ie a pulldown resistor).
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Regards
> > > > > > > TK
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > >
> > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Monday, May 14, 2012 12:38 PM
> > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > Have uploaded PWMtoVFD 5.png to my folder.
> > > > > > > I have tried to follow you instructions and have added the filter you wanted and 50Hz Q1.4 looks best if I can 'read' the curves correctly.
> > > > > > >
> > > > > > > As you meantioned tapping would probably work just fine even with a very coarse thread and I will be using tap holders that are flexible to some degree up and down.
> > > > > > >
> > > > > > > One thing I have noticed is that after the spindle makes it move the bits 152 and 153 are on. I assumed that they should be off?
> > > > > > >
> > > > > > > So is this as good as we can get it and I can do tapping and run the spindle I assume there will be a new C-file to make it work with Mach3.
> > > > > > >
> > > > > > > Have been doing some wireing to JP12, I am a bit confused as bits 128 to 135 behave very odd I am using 132-134-135 that is 132 for worklight swith on my control panel, 134 for manual coolant on and 135 for starting central oiler pump.
> > > > > > > 132/134 are +24VDC via 1K + 3.3V Zener to GND and a serial 100R to input, 135 3.3V via swithch to input.
> > > > > > > When I start up all show active even if OFF and unused/unconnected 128-131+133 show active.
> > > > > > > Cannot get 132 and 135 to work but 134 works OK, do I need pulldown to settle these bits?
> > > > > > > JP12 is connected via Winford breakout with 10-12cm ribboncable.
> > > > > > >
> > > > > > > Cheers
> > > > > > > Bengt
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Bengt,
> > > > > > > >
> > > > > > > > Yes I think that is getting close.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Looks like it is moving to within about ~100 counts or about 10 degrees of where it is being told to go.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That should be sufficient for rigid tapping.
> > > > > > > >
> > > > > > > > But notice the actual speed (red slope) is not able to keep up with the commanded speed (blue slope).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because we have a Max Error setting of only 200 counts combined with a low P gain setting of 0.006.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> 200 x 0.006 = 1.2 PWM counts.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You can see that the PWM Output (green plot) is clipped at that value so we are never commanding more than 1 PWM
> > count.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Let's increase the Max Error from 200 to 4000.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also try a bigger move that would accelerate to a higher
> > > speed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You may have to re-adjust the P gain for best results.
> > > > > > > >
> > > > > > > >
> > > > > > > > To reduce over shoot you might try some D gain.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You should use this with a 2nd order Low pass filter (Q=1.4) to smooth the output.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  A low pass filter has the benefit of smoothing the output but will have the
> disadvantage of phase lag which will cause the system to overshoot more.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The lower the frequency the more smoothing but the more phase
> > lag.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Add the Low Pass filter first (before any D gain) and find the lowest frequency possible that doesn't add significant additional overshoot.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I'm guessing this may be around
> > > 50Hz.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Then start adding D gain to see if it reduces the overshoot.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It's hard for me to predict what the numeric value might
> > > > be.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Start with is tiny number that has no effect.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Then increase it in steps of about 50% increases until you see an
> > > > > effect.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Too much will cause the system to become more unstable.
> > > > > > > >
> > > > > > > >
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Saturday, May 12, 2012 4:37 AM
> > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > Changed both transistors just to safe and now it is working. Uploaded a picture PWMtoVFD4.png to my folder.
> > > > > > > >
> > > > > > > > Can you be so kind and direct me so we can get the best of of this.
> > > > > > > > How can I command in Console a fixed speed for test?
> > > > > > > >
> > > > > > > > Looking forward to see what you have in mind for this old fart ;)
> > > > > > > > I am happy as I have peed out the small stone last night, picture in same folder.
> > > > > > > >
> > > > > > > > Cheers
> > > > > > > > Bengt
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Hi Bengt,
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > I agree.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> OrÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  a short from base to collector somehow.
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Friday, May 11, 2012 1:34 PM
> > > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Hi Tom,
> > > > > > > > >
> > > > > > > > > I just had to get down and do it, had a break with pain so here it is.
> > > > > > > > >
> > > > > > > > > PWM
> > > > > > > > > 0= 0V 255= 2.7V
> > > > > > > > > collector opto
> > > > > > > > > 4.99V 0.137V
> > > > > > > > > base pnp
> > > > > > > > > 4.99V 4.18V
> > > > > > > > > base npn
> > > > > > > > > 0.525V 0.642V
> > > > > > > > > collector pnp
> > > > > > > > > 0.510V 4.77V
> > > > > > > > > collector npn
> > > > > > > > > 0.528V 0.643V
> > > > > > > > >
> > > > > > > > > Looks to me like the 2N2222A is out of order (Ebay...)
> > > > > > > > >
> > > > > > > > > Cheers
> > > > > > > > > Bengt
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Bengt,
> > > > > > > > > >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > No
> rush.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Take care of yourself we need you :}
> > > > > > > > > >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > > Sent: Friday, May 11, 2012 11:41 AM
> > > > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Hi Tom,
> > > > > > > > > >
> > > > > > > > > > I will carry out the measurements tomorrow, just now I am not up to it as I am having one or several kidney stones on the way out.
> > > > > > > > > > Hopefully this will be over soon.
> > > > > > > > > >
> > > > > > > > > > This is what I was afraid of as the max would not go over 2.5V so let us hope I can nail down the fault.
> > > > > > > > > >
> > > > > > > > > > Cheers
> > > > > > > > > > Bengt
> > > > > > > > > >
> > > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Bengt,
> > > > > > > > > > >
> >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Ã
> ¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'ââ
> ‚¬Å¡ÃÆ'‚¢ÃÆ'Æ'
> >
> Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢
> €šÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > >
> >
> Thanks.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡Ã
> Æ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'
> ‚ÃÆ'‚Â
> >
> ¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'Â
> ¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That was exactly the information I
> > >
> >
> needed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡Ã
> Æ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'
> ‚ÃÆ'‚Â
> >
> ¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'Â
> ¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It seems like there is still a problem with your
> > > >
> >
> circuit.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ
> '‚ÃÆ'‚
> >
> ¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'
> ¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  For a duty cycle of 0% (solid off) your circuit output should be closer to 0V (0.1V or
> > >
> >
> less).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡Ã
> Æ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'
> ‚ÃÆ'‚Â
> >
> ¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'Â
> ¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Not
> > > > >
> >
> 0.5V.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'
> Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'Ã
> ¢â‚¬Å¡ÃÆ'‚¢
> >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢
> ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also 100% (solid on) should be approximately 4.8V not
> > >
> >
> 2.5V.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'
> Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢âââ<br/><br/>(Message over 64 KB, truncated)
Group: DynoMotion Message: 5000 From: Tom Kerekes Date: 5/20/2012
Subject: Re: PWM to VFD
Hi Bengt,

I thought we were supposed to turn the LOSPEED bit off and turn on the HISPEED bit to go to high speed?

If I recall the Max Output in your configuration was set at 200.  To output a maximum PWM value of 255 change this to 255.

Regards
TK

Group: DynoMotion Message: 5001 From: Bengt Sjoelund Date: 5/20/2012
Subject: Re: PWM to VFD
Hi Tom,

No turn off, uploaded a schematic in the folder 3-phase 2-speed AC-motor.jpg

Changed to 255 and now I get LO 1160 HI 2320, cannot get higher due to the lower voltage out from the VFD but this is OK.

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>
> I thought we were supposed to turn the LOSPEED bit off and turn on the HISPEED bit to go to high speed?
>
> If I recall the Max Output in your configuration was set at 200.  To output a maximum PWM value of 255 change this to 255.
>
> Regards
> TK
>
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, May 20, 2012 5:24 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> RE ratio, not sure at all now after last test with the new file.
> If I Jog4=15085 the spindle is steady at 240rpm
>
> Done some testing as you requested and I get a range in LO from 6600 to 66000 that is 104rpm to 1030 maximum that is a bit slower than max I could get out before via PWMto1kHz
>
> Virtual Bit 48 does not work as it is supposed to do as it switches BIT152 Off. Manual enabling does not work as long as Virtual Bit48 is ON.
>
> Manually setting HI I cannot get more than 2060rpm (Jog4=132000)
> HI is ranging from 6600 to 132000
>
> I have not changed any values in the latest c-file
>
> Manually with potentiometer LO=1324rpm HI=2643rpm so the goal is to get LO 1250 and HI 2500 as label on machine. Obviously I cannot get higher voltage to get these rpm's, maybe an external 5VDC source to drive the PWM adapter to get a bit higher output?
>
> Cheers
> Bengt
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > Is that the exact ratio?  If it isn't exact then after thousands or millions of revs the spindle angle will be off. Athough that probably won't matter in your case unless you want to do threading.
> >  
> > It would of course be:
> >  
> > EnableAxis(4);
> >  
> > Do not include it in the coordinated motion system
> >  
> > Regards and good luck in your shooting.
> > TK
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Friday, May 18, 2012 12:18 PM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >
> >  
> >
> > No worries Tom,
> >
> > If my math is OK the ratio is 0.959
> >
> > Will get to this maybe tomorrow evening when I come back from the shooting range from a full days driving and long range competition shooting.
> >
> > If I get it right I should copy what I have for the fourth axis and paste ch4 data to my init file.
> > EnableAxis(0);
> > EnableAxis(1);
> > EnableAxis(2);
> > >>?? EnableAxis(?);
> > >>?? DefineCoordSystem(0,1,2,-1);
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > Sorry for the delay.
> > >  
> > > The gear ratio will not be a problem.  That can be treated just like there is a different number of encoder counts/rev.  It would be nice to know the exact ratio.  What is it?
> > >  
> > > I uploaded a new C file V4 that should allow selecting the speed range.  The Speed Range is selected using Virtual IO Bit 48.  0=LO 1=HIGH.
> > >  
> > > Later this will allow us to select the speed range from either the Mach3Spindle control stuff or Rigid tapping stuff.
> > >  
> > > So now let's try repeating the previous experiments again, but for both speed ranges.
> > >  
> > > #1 Using the Digital IO screen Set Virtual Bit 48 off.
> > >  
> > > #2 run your init.c to configure everything including the spindle axis
> > >  
> > > #3 run the new C program
> > >  
> > > #4 Test using Jog4=XXX for all +/- speeds up to your max expected Low Speed RPM
> > >  
> > >  
> > > Then set bit 48 on and repeat for up to your max expected Hi Speed RPM.
> > >  
> > > Regards
> > > TK
> > >  
> > >  
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Wednesday, May 16, 2012 7:53 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > >
> > > Hi Tom,
> > >
> > > I have today verified my spindle speeds as follows:
> > >
> > > 16000 = 240rpm at the encoder shaft that is the ingoing shaft into gearbox. I have been in the belief that it was 1:1 with spindle but actually no.
> > > Spindle rotates at 254.4 rpm at commanded 16000 and at 32000 the rpms are 480 / 509.2 so I hope this can be adjusted in c-file if necessary.
> > >
> > > I use a Phototachometer http://www.pedak.nl/Lutron/pdf/Dt-2234a.pdf
> > >
> > > As regards shifting from LO to HI on the run works but not if tool is cutting as it takes a short time to stabilize the rpm.
> > > So I would prefer that speed shifting is done when tool is not cutting
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > ok that's progress.ÃÆ'‚  I'm surprised it isn't more accurate.ÃÆ'‚  With this method there could be some speed variation but the average speed pretty much must be exact.ÃÆ'‚  How are you measuring?ÃÆ'‚  You might check the counts with a stop watch.ÃÆ'‚  For example Jog4=16000 should be exactly 240 RPM.ÃÆ'‚  If you watch the counts on the Axis Screen the time from 1 million counts to the next should be:
> > > > ÃÆ'‚ 
> > > > 1000000/16000 = 62.5 seconds
> > > > ÃÆ'‚ 
> > > > BTW Jog4=-16000 should be -240 RPM
> > > > ÃÆ'‚ 
> > > > I suppose we may as well handle the Hi/Lo Speed stuff next.
> > > > ÃÆ'‚ 
> > > > How do you expect this to work.ÃÆ'‚  Is it ok to switch speeds while running?ÃÆ'‚  For example if the User or the Gcode selects:
> > > > ÃÆ'‚ 
> > > > S200
> > > > S500
> > > > S1000
> > > > S1500
> > > > ÃÆ'‚ 
> > > > Is is ok to just at some point suddenly turn off Low Speed and switch to High speed on the fly while adjusting the PWM appropriately.ÃÆ'‚  Or is it required to come to a full stop and then switch?
> > > > ÃÆ'‚ 
> > > > Could you perform a test using the Digital IO screen and the PWM1KHz.c example to manually make a test?
> > > > ÃÆ'‚ 
> > > > Regards
> > > > TK
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tuesday, May 15, 2012 2:11 PM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > > Change to 85000 gives following jog4=
> > > > 8000 127rpm
> > > > 16000 254rpm
> > > > 32000 508rpm
> > > > 64000 1018rpm
> > > > 6000 95rpm but a bit unstable as I can hear
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > >
> > > > > If you still have Max Error = 4000ÃÆ'Æ'‚ÃÆ'‚  and P gain = 0.0031?
> > > > >
> > > > > Then 4000 x 0.0031 = 12 PWM counts
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tuesday, May 15, 2012 11:52 AM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom,
> > > > > Jog4=4000 SP turns 15rev stops 1sec turns 15r stops 1sec etc.....
> > > > > Opening cfile OutputtoPWMDirv3.c
> > > > > Compile/download/run
> > > > > load my data
> > > > > Disable/zero/move 3sec/6000
> > > > > Spindle rotates ~1.5rev
> > > > > Axis screen
> > > > > Dest goes to 6000 and counts down.
> > > > > Pos overshoots 10-20 and zeroes at -10-20 (varies from move to move)
> > > > > When 60000 is commanded Dest goes up to 60.000 and down
> > > > > Pos somewhere about 51-52000 and counts down
> > > > > When 100000 Dest goes up to 100000 and down
> > > > > Pos to 83.000+ and ends at +40 to 50
> > > > > Checked rpm's to be ~200rpm
> > > > >
> > > > > Sorry but I cannot set higher speeds, what figures to change?
> > > > >
> > > > > Checked PWMto1kHz and 100PWM = 512rpm
> > > > >
> > > > > All spindle movement starts with CCW
> > > > >
> > > > > Sorry for long delay but something odd with Yahoo as my keyboard is like typeing in tar.
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Are you saying you enter Jog4=4000 and the Spindle turns 15 turns and stops forever?
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Could you explain things in more detail what you are doing and exactly what happens?ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Please include as much information as possible including things like information on what the commanded Dest and Encoder Position is doing on the Axis Screen and whether the axes remain enabled and so forth?
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > I suppose we should go back to the Step Response Screen.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I asked how many revs the Spindle was moving for the plotted moves and you never answered.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I asked to test larger and faster speeds and you never responded.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I don't know whether you did those requests and all was good or did not test.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  All you have shown is a slow 6000 count move.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Is that move 1.5 Revs?
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Tuesday, May 15, 2012 7:54 AM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom,
> > > > > > You are one early bird ;)
> > > > > >
> > > > > > #1 OK
> > > > > > #2 -4000 = CW / turns the spindle ~15turns and stops ~1sec / 67rpm
> > > > > > #3 -40000 runs the spindle with 67 rpm
> > > > > >
> > > > > > #2 if jog4=4000 it turns 1rev stops 1rev stops etc
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Bengt,
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Ok let's go one step at a time.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Let's get Console Jogs to work.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > #1 On the Step Response Screen use the Zero and Move buttons to Download and Enable the Spindle Axis and verify it is functioning properly as your previous plots showed.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > #2 On the Console Screen Enter:ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Jog4=4000ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Does the spindle rotate 1 rev per second?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  If not, explain what happened.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > #3 On the Console Screen Enter:ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Jog4=40000 Does the spindle rotate 10 rev per second (600 RPM)?
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Regards
> > > > > > > TK
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Tuesday, May 15, 2012 6:18 AM
> > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > 1. Cannot get jog4=40000 to work
> > > > > > > 2. Nothing in Mach3 MDI M3 S300
> > > > > > >
> > > > > > > Obviosly something is wrong. Can you tell me what C files should be compiled and downloaded to KFlop and what files is needed in Mach3 plugin setup.
> > > > > > >
> > > > > > > I assume in Mach3 following will be needed in Mach3
> > > > > > > CombiMill 3axis.c (do I need to add ch4?)
> > > > > > > SpindleMach3PWMHiLoGear.c is the latest tested file
> > > > > > > CombiMillHomeMach3C.c
> > > > > > > NotifyMach3.c
> > > > > > >
> > > > > > > Sorry but I am all mixed up here, so be kind to me ;)
> > > > > > > Would be helpful to have a step by step setup so I can manage to get all working.
> > > > > > >
> > > > > > > Cheers
> > > > > > > Bengt
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Bengt,
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Yes that looks quite good.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You still are not moving very far.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  1.5
> revs??ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So the speed is only getting up to about 200 RPM.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  And we are only using 7 of 255 PWM
> > counts.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The 0.2 sec delay is a bit odd but shouldn't hurt
> anything.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Realize that just because the spindle motion is not perfect doesn't mean that the Rigid Tap won't be perfect.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because the Z motion will be sync'ed to the Spindle Motion.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We just need the Spindle to
> accelerate smoothly to the right tapping speed and stop/reverse after the right number of turns.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Other systems that just try to move the spindle and z axis in an open loop but coordinated manner wouldn't work
> > as well.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You shouldn't need flexible tap holders.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Hopefully :}
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > The C Program is written to always output CW or CCW whenever the axis is enabled.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So it always tries to hold position.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  0 PWM setting causes it to stop so I don't see a need to disable the
> >
> VFD.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'
> Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It will disable everything if the axis is disabled.
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > You should also now be able to try setting constant spindle speed by commanding Jogs.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So for example on the Console Screen Jog4=40000 should be 600RPM exactly.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also the SpindleMach3Jog.c should now work for Mach3.
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Regarding the IO are those inputs or outputs?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Seems like Coolant On would be an output but you are referencing inputs.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But yes the general purpose inputs are very high impedance inputs which will just float if
> not driven.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  They must be driven high and low (ie a pulldown resistor).
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > >
> > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Monday, May 14, 2012 12:38 PM
> > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > >
> > > > > > > >
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > Have uploaded PWMtoVFD 5.png to my folder.
> > > > > > > > I have tried to follow you instructions and have added the filter you wanted and 50Hz Q1.4 looks best if I can 'read' the curves correctly.
> > > > > > > >
> > > > > > > > As you meantioned tapping would probably work just fine even with a very coarse thread and I will be using tap holders that are flexible to some degree up and down.
> > > > > > > >
> > > > > > > > One thing I have noticed is that after the spindle makes it move the bits 152 and 153 are on. I assumed that they should be off?
> > > > > > > >
> > > > > > > > So is this as good as we can get it and I can do tapping and run the spindle I assume there will be a new C-file to make it work with Mach3.
> > > > > > > >
> > > > > > > > Have been doing some wireing to JP12, I am a bit confused as bits 128 to 135 behave very odd I am using 132-134-135 that is 132 for worklight swith on my control panel, 134 for manual coolant on and 135 for starting central oiler pump.
> > > > > > > > 132/134 are +24VDC via 1K + 3.3V Zener to GND and a serial 100R to input, 135 3.3V via swithch to input.
> > > > > > > > When I start up all show active even if OFF and unused/unconnected 128-131+133 show active.
> > > > > > > > Cannot get 132 and 135 to work but 134 works OK, do I need pulldown to settle these bits?
> > > > > > > > JP12 is connected via Winford breakout with 10-12cm ribboncable.
> > > > > > > >
> > > > > > > > Cheers
> > > > > > > > Bengt
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Bengt,
> > > > > > > > >
> > > > > > > > > Yes I think that is getting close.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Looks like it is moving to within about ~100 counts or about 10 degrees of where it is being told to
> go.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That should be sufficient for rigid tapping.
> > > > > > > > >
> > > > > > > > > But notice the actual speed (red slope) is not able to keep up with the commanded speed (blue slope).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because we have a Max Error setting of only 200 counts combined with a low P
> gain setting of 0.006.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > 200 x 0.006 = 1.2 PWM counts.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You can see that the PWM Output (green plot) is clipped at that value so we are never commanding more than 1 PWM
> > > count.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Let's increase the Max Error from 200 to
> 4000.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also try a bigger move that would accelerate to a higher
> > > > speed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You may have to re-adjust the P gain for best results.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > To reduce over shoot you might try some D gain.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You should use this with a 2nd order Low pass filter (Q=1.4) to smooth the
> output.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  A low pass filter has the benefit of smoothing the output but will have the
> > disadvantage of phase lag which will cause the system to overshoot more.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The lower the frequency the more smoothing but the more phase
> > > lag.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Add the Low Pass filter first (before any D gain) and find the lowest frequency possible that doesn't add significant additional
> overshoot.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I'm guessing this may be around
> > > > 50Hz.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Then start adding D gain to see if it reduces the
> overshoot.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It's hard for me to predict what the numeric value might
> > > > > be.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Start with is tiny number that has no
> effect.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Then increase it in steps of about 50% increases until you see an
> > > > > > effect.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Too much will cause the system to become more unstable.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ________________________________
> > > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Saturday, May 12, 2012 4:37 AM
> > > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Hi Tom,
> > > > > > > > >
> > > > > > > > > Changed both transistors just to safe and now it is working. Uploaded a picture PWMtoVFD4.png to my folder.
> > > > > > > > >
> > > > > > > > > Can you be so kind and direct me so we can get the best of of this.
> > > > > > > > > How can I command in Console a fixed speed for test?
> > > > > > > > >
> > > > > > > > > Looking forward to see what you have in mind for this old fart ;)
> > > > > > > > > I am happy as I have peed out the small stone last night, picture in same folder.
> > > > > > > > >
> > > > > > > > > Cheers
> > > > > > > > > Bengt
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Hi Bengt,
> > > > > > > > > >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > I
> agree.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> >
> OrÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢Ã
> Æ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  a short from base to collector somehow.
> > > > > > > > > >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > > Sent: Friday, May 11, 2012 1:34 PM
> > > > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Hi Tom,
> > > > > > > > > >
> > > > > > > > > > I just had to get down and do it, had a break with pain so here it is.
> > > > > > > > > >
> > > > > > > > > > PWM
> > > > > > > > > > 0= 0V 255= 2.7V
> > > > > > > > > > collector opto
> > > > > > > > > > 4.99V 0.137V
> > > > > > > > > > base pnp
> > > > > > > > > > 4.99V 4.18V
> > > > > > > > > > base npn
> > > > > > > > > > 0.525V 0.642V
> > > > > > > > > > collector pnp
> > > > > > > > > > 0.510V 4.77V
> > > > > > > > > > collector npn
> > > > > > > > > > 0.528V 0.643V
> > > > > > > > > >
> > > > > > > > > > Looks to me like the 2N2222A is out of order (Ebay...)
> > > > > > > > > >
> > > > > > > > > > Cheers
> > > > > > > > > > Bengt
> > > > > > > > > >
> > > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Bengt,
> > > > > > > > > > >
> >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Ã
> ¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'ââ
> ‚¬Å¡ÃÆ'‚¢ÃÆ'Æ'
> >
> Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢
> €šÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > > No
> >
> rush.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'
> Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'Ã
> ¢â‚¬Å¡ÃÆ'‚¢
> >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢
> ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Take care of yourself we need you :}
> > > > > > > > > > >
> >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Ã
> ¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢ââ€<br/><br/>(Message over 64 KB, truncated)
Group: DynoMotion Message: 5002 From: Tom Kerekes Date: 5/20/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
The schematic doesn't really help me understand things.  But anyway I uploaded a ne V5 C file that puts both LO and HI on at the same time for High speed.
 
Regards
TK

From: Bengt Sjoelund <cnc@...>
To: DynoMotion@yahoogroups.com
Sent: Sunday, May 20, 2012 10:14 AM
Subject: [DynoMotion] Re: PWM to VFD

 
Hi Tom,

No turn off, uploaded a schematic in the folder 3-phase 2-speed AC-motor.jpg

Changed to 255 and now I get LO 1160 HI 2320, cannot get higher due to the lower voltage out from the VFD but this is OK.

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>
> I thought we were supposed to turn the LOSPEED bit off and turn on the HISPEED bit to go to high speed?
>
> If I recall the Max Output in your configuration was set at 200.  To output a maximum PWM value of 255 change this to 255.
>
> Regards
> TK
>
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, May 20, 2012 5:24 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> RE ratio, not sure at all now after last test with the new file.
> If I Jog4=15085 the spindle is steady at 240rpm
>
> Done some testing as you requested and I get a range in LO from 6600 to 66000 that is 104rpm to 1030 maximum that is a bit slower than max I could get out before via PWMto1kHz
>
> Virtual Bit 48 does not work as it is supposed to do as it switches BIT152 Off. Manual enabling does not work as long as Virtual Bit48 is ON.
>
> Manually setting HI I cannot get more than 2060rpm (Jog4=132000)
> HI is ranging from 6600 to 132000
>
> I have not changed any values in the latest c-file
>
> Manually with potentiometer LO=1324rpm HI=2643rpm so the goal is to get LO 1250 and HI 2500 as label on machine. Obviously I cannot get higher voltage to get these rpm's, maybe an external 5VDC source to drive the PWM adapter to get a bit higher output?
>
> Cheers
> Bengt
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > Is that the exact ratio?  If it isn't exact then after thousands or millions of revs the spindle angle will be off. Athough that probably won't matter in your case unless you want to do threading.
> >  
> > It would of course be:
> >  
> > EnableAxis(4);
> >  
> > Do not include it in the coordinated motion system
> >  
> > Regards and good luck in your shooting.
> > TK
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Friday, May 18, 2012 12:18 PM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >
> >  
> >
> > No worries Tom,
> >
> > If my math is OK the ratio is 0.959
> >
> > Will get to this maybe tomorrow evening when I come back from the shooting range from a full days driving and long range competition shooting.
> >
> > If I get it right I should copy what I have for the fourth axis and paste ch4 data to my init file.
> > EnableAxis(0);
> > EnableAxis(1);
> > EnableAxis(2);
> > >>?? EnableAxis(?);
> > >>?? DefineCoordSystem(0,1,2,-1);
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > Sorry for the delay.
> > >  
> > > The gear ratio will not be a problem.  That can be treated just like there is a different number of encoder counts/rev.  It would be nice to know the exact ratio.  What is it?
> > >  
> > > I uploaded a new C file V4 that should allow selecting the speed range.  The Speed Range is selected using Virtual IO Bit 48.  0=LO 1=HIGH.
> > >  
> > > Later this will allow us to select the speed range from either the Mach3Spindle control stuff or Rigid tapping stuff.
> > >  
> > > So now let's try repeating the previous experiments again, but for both speed ranges.
> > >  
> > > #1 Using the Digital IO screen Set Virtual Bit 48 off.
> > >  
> > > #2 run your init.c to configure everything including the spindle axis
> > >  
> > > #3 run the new C program
> > >  
> > > #4 Test using Jog4=XXX for all +/- speeds up to your max expected Low Speed RPM
> > >  
> > >  
> > > Then set bit 48 on and repeat for up to your max expected Hi Speed RPM.
> > >  
> > > Regards
> > > TK
> > >  
> > >  
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Wednesday, May 16, 2012 7:53 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > >
> > > Hi Tom,
> > >
> > > I have today verified my spindle speeds as follows:
> > >
> > > 16000 = 240rpm at the encoder shaft that is the ingoing shaft into gearbox. I have been in the belief that it was 1:1 with spindle but actually no.
> > > Spindle rotates at 254.4 rpm at commanded 16000 and at 32000 the rpms are 480 / 509.2 so I hope this can be adjusted in c-file if necessary.
> > >
> > > I use a Phototachometer http://www.pedak.nl/Lutron/pdf/Dt-2234a.pdf
> > >
> > > As regards shifting from LO to HI on the run works but not if tool is cutting as it takes a short time to stabilize the rpm.
> > > So I would prefer that speed shifting is done when tool is not cutting
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > ok that's progress.ÃÆ'‚  I'm surprised it isn't more accurate.ÃÆ'‚  With this method there could be some speed variation but the average speed pretty much must be exact.ÃÆ'‚  How are you measuring?ÃÆ'‚  You might check the counts with a stop watch.ÃÆ'‚  For example Jog4=16000 should be exactly 240 RPM.ÃÆ'‚  If you watch the counts on the Axis Screen the time from 1 million counts to the next should be:
> > > > ÃÆ'‚ 
> > > > 1000000/16000 = 62.5 seconds
> > > > ÃÆ'‚ 
> > > > BTW Jog4=-16000 should be -240 RPM
> > > > ÃÆ'‚ 
> > > > I suppose we may as well handle the Hi/Lo Speed stuff next.
> > > > ÃÆ'‚ 
> > > > How do you expect this to work.ÃÆ'‚  Is it ok to switch speeds while running?ÃÆ'‚  For example if the User or the Gcode selects:
> > > > ÃÆ'‚ 
> > > > S200
> > > > S500
> > > > S1000
> > > > S1500
> > > > ÃÆ'‚ 
> > > > Is is ok to just at some point suddenly turn off Low Speed and switch to High speed on the fly while adjusting the PWM appropriately.ÃÆ'‚  Or is it required to come to a full stop and then switch?
> > > > ÃÆ'‚ 
> > > > Could you perform a test using the Digital IO screen and the PWM1KHz.c example to manually make a test?
> > > > ÃÆ'‚ 
> > > > Regards
> > > > TK
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tuesday, May 15, 2012 2:11 PM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > > Change to 85000 gives following jog4=
> > > > 8000 127rpm
> > > > 16000 254rpm
> > > > 32000 508rpm
> > > > 64000 1018rpm
> > > > 6000 95rpm but a bit unstable as I can hear
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > >
> > > > > If you still have Max Error = 4000ÃÆ'Æ'‚ÃÆ'‚  and P gain = 0.0031?
> > > > >
> > > > > Then 4000 x 0.0031 = 12 PWM counts
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tuesday, May 15, 2012 11:52 AM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom,
> > > > > Jog4=4000 SP turns 15rev stops 1sec turns 15r stops 1sec etc.....
> > > > > Opening cfile OutputtoPWMDirv3.c
> > > > > Compile/download/run
> > > > > load my data
> > > > > Disable/zero/move 3sec/6000
> > > > > Spindle rotates ~1.5rev
> > > > > Axis screen
> > > > > Dest goes to 6000 and counts down.
> > > > > Pos overshoots 10-20 and zeroes at -10-20 (varies from move to move)
> > > > > When 60000 is commanded Dest goes up to 60.000 and down
> > > > > Pos somewhere about 51-52000 and counts down
> > > > > When 100000 Dest goes up to 100000 and down
> > > > > Pos to 83.000+ and ends at +40 to 50
> > > > > Checked rpm's to be ~200rpm
> > > > >
> > > > > Sorry but I cannot set higher speeds, what figures to change?
> > > > >
> > > > > Checked PWMto1kHz and 100PWM = 512rpm
> > > > >
> > > > > All spindle movement starts with CCW
> > > > >
> > > > > Sorry for long delay but something odd with Yahoo as my keyboard is like typeing in tar.
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Are you saying you enter Jog4=4000 and the Spindle turns 15 turns and stops forever?
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Could you explain things in more detail what you are doing and exactly what happens?ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Please include as much information as possible including things like information on what the commanded Dest and Encoder Position is doing on the Axis Screen and whether the axes remain enabled and so forth?
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > I suppose we should go back to the Step Response Screen.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I asked how many revs the Spindle was moving for the plotted moves and you never answered.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I asked to test larger and faster speeds and you never responded.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I don't know whether you did those requests and all was good or did not test.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  All you have shown is a slow 6000 count move.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Is that move 1.5 Revs?
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Tuesday, May 15, 2012 7:54 AM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom,
> > > > > > You are one early bird ;)
> > > > > >
> > > > > > #1 OK
> > > > > > #2 -4000 = CW / turns the spindle ~15turns and stops ~1sec / 67rpm
> > > > > > #3 -40000 runs the spindle with 67 rpm
> > > > > >
> > > > > > #2 if jog4=4000 it turns 1rev stops 1rev stops etc
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Bengt,
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Ok let's go one step at a time.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Let's get Console Jogs to work.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > #1 On the Step Response Screen use the Zero and Move buttons to Download and Enable the Spindle Axis and verify it is functioning properly as your previous plots showed.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > #2 On the Console Screen Enter:ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Jog4=4000ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Does the spindle rotate 1 rev per second?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  If not, explain what happened.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > #3 On the Console Screen Enter:ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Jog4=40000 Does the spindle rotate 10 rev per second (600 RPM)?
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Regards
> > > > > > > TK
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Tuesday, May 15, 2012 6:18 AM
> > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > 1. Cannot get jog4=40000 to work
> > > > > > > 2. Nothing in Mach3 MDI M3 S300
> > > > > > >
> > > > > > > Obviosly something is wrong. Can you tell me what C files should be compiled and downloaded to KFlop and what files is needed in Mach3 plugin setup.
> > > > > > >
> > > > > > > I assume in Mach3 following will be needed in Mach3
> > > > > > > CombiMill 3axis.c (do I need to add ch4?)
> > > > > > > SpindleMach3PWMHiLoGear.c is the latest tested file
> > > > > > > CombiMillHomeMach3C.c
> > > > > > > NotifyMach3.c
> > > > > > >
> > > > > > > Sorry but I am all mixed up here, so be kind to me ;)
> > > > > > > Would be helpful to have a step by step setup so I can manage to get all working.
> > > > > > >
> > > > > > > Cheers
> > > > > > > Bengt
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Bengt,
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Yes that looks quite good.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You still are not moving very far.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  1.5
> revs??ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So the speed is only getting up to about 200 RPM.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  And we are only using 7 of 255 PWM
> > counts.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The 0.2 sec delay is a bit odd but shouldn't hurt
> anything.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚Ã⠀šÃ‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Realize that just because the spindle motion is not perfect doesn't mean that the Rigid Tap won't be perfect.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because the Z motion will be sync'ed to the Spindle Motion.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We just need the Spindle to
> accelerate smoothly to the right tapping speed and stop/reverse after the right number of turns.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Other systems that just try to move the spindle and z axis in an open loop but coordinated manner wouldn't work
> > as well.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You shouldn't need flexible tap holders.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Hopefully :}
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > The C Program is written to always output CW or CCW whenever the axis is enabled.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So it always tries to hold position.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  0 PWM setting causes it to stop so I don't see a need to disable the
> >
> VFD.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚ ¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'â €¦ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'
> Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It will disable everything if the axis is disabled.
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > You should also now be able to try setting constant spindle speed by commanding Jogs.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So for example on the Console Screen Jog4=40000 should be 600RPM exactly.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also the SpindleMach3Jog.c should now work for Mach3.
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Regarding the IO are those inputs or outputs?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Seems like Coolant On would be an output but you are referencing inputs.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But yes the general purpose inputs are very high impedance inputs which will just float if
> not driven.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  They must be driven high and low (ie a pulldown resistor).
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > >
> > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Monday, May 14, 2012 12:38 PM
> > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > >
> > > > > > > >
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > Have uploaded PWMtoVFD 5.png to my folder.
> > > > > > > > I have tried to follow you instructions and have added the filter you wanted and 50Hz Q1.4 looks best if I can 'read' the curves correctly.
> > > > > > > >
> > > > > > > > As you meantioned tapping would probably work just fine even with a very coarse thread and I will be using tap holders that are flexible to some degree up and down.
> > > > > > > >
> > > > > > > > One thing I have noticed is that after the spindle makes it move the bits 152 and 153 are on. I assumed that they should be off?
> > > > > > > >
> > > > > > > > So is this as good as we can get it and I can do tapping and run the spindle I assume there will be a new C-file to make it work with Mach3.
> > > > > > > >
> > > > > > > > Have been doing some wireing to JP12, I am a bit confused as bits 128 to 135 behave very odd I am using 132-134-135 that is 132 for worklight swith on my control panel, 134 for manual coolant on and 135 for starting central oiler pump.
> > > > > > > > 132/134 are +24VDC via 1K + 3.3V Zener to GND and a serial 100R to input, 135 3.3V via swithch to input.
> > > > > > > > When I start up all show active even if OFF and unused/unconnected 128-131+133 show active.
> > > > > > > > Cannot get 132 and 135 to work but 134 works OK, do I need pulldown to settle these bits?
> > > > > > > > JP12 is connected via Winford breakout with 10-12cm ribboncable.
> > > > > > > >
> > > > > > > > Cheers
> > > > > > > > Bengt
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Bengt,
> > > > > > > > >
> > > > > > > > > Yes I think that is getting close.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'à †'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Looks like it is moving to within about ~100 counts or about 10 degrees of where it is being told to
> go.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Ã⠀ 'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That should be sufficient for rigid tapping.
> > > > > > > > >
> > > > > > > > > But notice the actual speed (red slope) is not able to keep up with the commanded speed (blue slope).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'à †'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because we have a Max Error setting of only 200 counts combined with a low P
> gain setting of 0.006.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'ââ‚Â

(Message over 64 KB, truncated)
Group: DynoMotion Message: 5003 From: Bengt Sjoelund Date: 5/20/2012
Subject: Re: PWM to VFD
Hi Tom,

I can tell you it took a while to get the hang of it, this is a special motor type.

I can see that virtual bit activates HI but there is no movement at all from jog4=xxxxx. If I disable virtual bit and enable from step/response the spindle acts like it is in HI for a while and revs down to set speed.

Manually I get LO and HI to work but not with virtual enabled.

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> The schematic doesn't really help me understand things.  But anyway I uploaded a ne V5 C file that puts both LO and HI on at the same time for High speed.
>  
> Regards
> TK
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, May 20, 2012 10:14 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>
>  
>
> Hi Tom,
>
> No turn off, uploaded a schematic in the folder 3-phase 2-speed AC-motor.jpg
>
> Changed to 255 and now I get LO 1160 HI 2320, cannot get higher due to the lower voltage out from the VFD but this is OK.
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >
> > I thought we were supposed to turn the LOSPEED bit off and turn on the HISPEED bit to go to high speed?
> >
> > If I recall the Max Output in your configuration was set at 200.  To output a maximum PWM value of 255 change this to 255.
> >
> > Regards
> > TK
> >
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Sunday, May 20, 2012 5:24 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > RE ratio, not sure at all now after last test with the new file.
> > If I Jog4=15085 the spindle is steady at 240rpm
> >
> > Done some testing as you requested and I get a range in LO from 6600 to 66000 that is 104rpm to 1030 maximum that is a bit slower than max I could get out before via PWMto1kHz
> >
> > Virtual Bit 48 does not work as it is supposed to do as it switches BIT152 Off. Manual enabling does not work as long as Virtual Bit48 is ON.
> >
> > Manually setting HI I cannot get more than 2060rpm (Jog4=132000)
> > HI is ranging from 6600 to 132000
> >
> > I have not changed any values in the latest c-file
> >
> > Manually with potentiometer LO=1324rpm HI=2643rpm so the goal is to get LO 1250 and HI 2500 as label on machine. Obviously I cannot get higher voltage to get these rpm's, maybe an external 5VDC source to drive the PWM adapter to get a bit higher output?
> >
> > Cheers
> > Bengt
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > Is that the exact ratio?  If it isn't exact then after thousands or millions of revs the spindle angle will be off. Athough that probably won't matter in your case unless you want to do threading.
> > >  
> > > It would of course be:
> > >  
> > > EnableAxis(4);
> > >  
> > > Do not include it in the coordinated motion system
> > >  
> > > Regards and good luck in your shooting.
> > > TK
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Friday, May 18, 2012 12:18 PM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >
> > >  
> > >
> > > No worries Tom,
> > >
> > > If my math is OK the ratio is 0.959
> > >
> > > Will get to this maybe tomorrow evening when I come back from the shooting range from a full days driving and long range competition shooting.
> > >
> > > If I get it right I should copy what I have for the fourth axis and paste ch4 data to my init file.
> > > EnableAxis(0);
> > > EnableAxis(1);
> > > EnableAxis(2);
> > > >>?? EnableAxis(?);
> > > >>?? DefineCoordSystem(0,1,2,-1);
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > Sorry for the delay.
> > > > ÃÆ'‚ 
> > > > The gear ratio will not be a problem.ÃÆ'‚  That can be treated just like there is a different number of encoder counts/rev.ÃÆ'‚  It would be nice to know the exact ratio.ÃÆ'‚  What is it?
> > > > ÃÆ'‚ 
> > > > I uploaded a new C file V4 that should allow selecting the speed range.ÃÆ'‚  The Speed Range is selected using Virtual IO Bit 48.ÃÆ'‚  0=LO 1=HIGH.
> > > > ÃÆ'‚ 
> > > > Later this will allow us to select the speed range from either the Mach3Spindle control stuff or Rigid tapping stuff.
> > > > ÃÆ'‚ 
> > > > So now let's try repeating the previous experiments again, but for both speed ranges.
> > > > ÃÆ'‚ 
> > > > #1 Using the Digital IO screen Set Virtual Bit 48 off.
> > > > ÃÆ'‚ 
> > > > #2 run your init.c to configure everything including the spindle axis
> > > > ÃÆ'‚ 
> > > > #3 run the new C program
> > > > ÃÆ'‚ 
> > > > #4 Test using Jog4=XXX for all +/- speeds up to your max expected Low Speed RPM
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > > Then set bit 48 on and repeat for up to your max expected Hi Speed RPM.
> > > > ÃÆ'‚ 
> > > > Regards
> > > > TK
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > >
> > > >
> > > > ________________________________
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Wednesday, May 16, 2012 7:53 AM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > >
> > > > Hi Tom,
> > > >
> > > > I have today verified my spindle speeds as follows:
> > > >
> > > > 16000 = 240rpm at the encoder shaft that is the ingoing shaft into gearbox. I have been in the belief that it was 1:1 with spindle but actually no.
> > > > Spindle rotates at 254.4 rpm at commanded 16000 and at 32000 the rpms are 480 / 509.2 so I hope this can be adjusted in c-file if necessary.
> > > >
> > > > I use a Phototachometer http://www.pedak.nl/Lutron/pdf/Dt-2234a.pdf
> > > >
> > > > As regards shifting from LO to HI on the run works but not if tool is cutting as it takes a short time to stabilize the rpm.
> > > > So I would prefer that speed shifting is done when tool is not cutting
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ok that's progress.ÃÆ'Æ'‚ÃÆ'‚  I'm surprised it isn't more accurate.ÃÆ'Æ'‚ÃÆ'‚  With this method there could be some speed variation but the average speed pretty much must be exact.ÃÆ'Æ'‚ÃÆ'‚  How are you measuring?ÃÆ'Æ'‚ÃÆ'‚  You might check the counts with a stop watch.ÃÆ'Æ'‚ÃÆ'‚  For example Jog4=16000 should be exactly 240 RPM.ÃÆ'Æ'‚ÃÆ'‚  If you watch the counts on the Axis Screen the time from 1 million counts to the next should be:
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > 1000000/16000 = 62.5 seconds
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > BTW Jog4=-16000 should be -240 RPM
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > I suppose we may as well handle the Hi/Lo Speed stuff next.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > How do you expect this to work.ÃÆ'Æ'‚ÃÆ'‚  Is it ok to switch speeds while running?ÃÆ'Æ'‚ÃÆ'‚  For example if the User or the Gcode selects:
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > S200
> > > > > S500
> > > > > S1000
> > > > > S1500
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Is is ok to just at some point suddenly turn off Low Speed and switch to High speed on the fly while adjusting the PWM appropriately.ÃÆ'Æ'‚ÃÆ'‚  Or is it required to come to a full stop and then switch?
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Could you perform a test using the Digital IO screen and the PWM1KHz.c example to manually make a test?
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Regards
> > > > > TK
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tuesday, May 15, 2012 2:11 PM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom,
> > > > > Change to 85000 gives following jog4=
> > > > > 8000 127rpm
> > > > > 16000 254rpm
> > > > > 32000 508rpm
> > > > > 64000 1018rpm
> > > > > 6000 95rpm but a bit unstable as I can hear
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > >
> > > > > > If you still have Max Error = 4000ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  and P gain = 0.0031?
> > > > > >
> > > > > > Then 4000 x 0.0031 = 12 PWM counts
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Tuesday, May 15, 2012 11:52 AM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom,
> > > > > > Jog4=4000 SP turns 15rev stops 1sec turns 15r stops 1sec etc.....
> > > > > > Opening cfile OutputtoPWMDirv3.c
> > > > > > Compile/download/run
> > > > > > load my data
> > > > > > Disable/zero/move 3sec/6000
> > > > > > Spindle rotates ~1.5rev
> > > > > > Axis screen
> > > > > > Dest goes to 6000 and counts down.
> > > > > > Pos overshoots 10-20 and zeroes at -10-20 (varies from move to move)
> > > > > > When 60000 is commanded Dest goes up to 60.000 and down
> > > > > > Pos somewhere about 51-52000 and counts down
> > > > > > When 100000 Dest goes up to 100000 and down
> > > > > > Pos to 83.000+ and ends at +40 to 50
> > > > > > Checked rpm's to be ~200rpm
> > > > > >
> > > > > > Sorry but I cannot set higher speeds, what figures to change?
> > > > > >
> > > > > > Checked PWMto1kHz and 100PWM = 512rpm
> > > > > >
> > > > > > All spindle movement starts with CCW
> > > > > >
> > > > > > Sorry for long delay but something odd with Yahoo as my keyboard is like typeing in tar.
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Bengt,
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Are you saying you enter Jog4=4000 and the Spindle turns 15 turns and stops forever?
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Could you explain things in more detail what you are doing and exactly what happens?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Please include as much information as possible including things like information on what the commanded Dest and Encoder Position is doing on the Axis Screen and whether the axes remain enabled and so forth?
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > I suppose we should go back to the Step Response Screen.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I asked how many revs the Spindle was moving for the plotted moves and you never answered.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I asked to test larger and faster speeds and you never responded.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I don't know whether you did those requests and all was good or did not
> test.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  All you have shown is a slow 6000 count move.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Is that move 1.5 Revs?
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Tuesday, May 15, 2012 7:54 AM
> > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Hi Tom,
> > > > > > > You are one early bird ;)
> > > > > > >
> > > > > > > #1 OK
> > > > > > > #2 -4000 = CW / turns the spindle ~15turns and stops ~1sec / 67rpm
> > > > > > > #3 -40000 runs the spindle with 67 rpm
> > > > > > >
> > > > > > > #2 if jog4=4000 it turns 1rev stops 1rev stops etc
> > > > > > >
> > > > > > > Cheers
> > > > > > > Bengt
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Bengt,
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Ok let's go one step at a time.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Let's get Console Jogs to work.
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > #1 On the Step Response Screen use the Zero and Move buttons to Download and Enable the Spindle Axis and verify it is functioning properly as your previous plots showed.
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > #2 On the Console Screen Enter:ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> Jog4=4000ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Does the spindle rotate 1 rev per
> second?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  If not, explain what happened.
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > #3 On the Console Screen Enter:ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Jog4=40000 Does the spindle rotate 10 rev per second (600 RPM)?
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Tuesday, May 15, 2012 6:18 AM
> > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > >
> > > > > > > >
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > 1. Cannot get jog4=40000 to work
> > > > > > > > 2. Nothing in Mach3 MDI M3 S300
> > > > > > > >
> > > > > > > > Obviosly something is wrong. Can you tell me what C files should be compiled and downloaded to KFlop and what files is needed in Mach3 plugin setup.
> > > > > > > >
> > > > > > > > I assume in Mach3 following will be needed in Mach3
> > > > > > > > CombiMill 3axis.c (do I need to add ch4?)
> > > > > > > > SpindleMach3PWMHiLoGear.c is the latest tested file
> > > > > > > > CombiMillHomeMach3C.c
> > > > > > > > NotifyMach3.c
> > > > > > > >
> > > > > > > > Sorry but I am all mixed up here, so be kind to me ;)
> > > > > > > > Would be helpful to have a step by step setup so I can manage to get all working.
> > > > > > > >
> > > > > > > > Cheers
> > > > > > > > Bengt
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Bengt,
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Yes that looks quite good.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You still are not moving very
> far.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  1.5
> > revs??ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So the speed is only getting up to about 200
> RPM.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  And we are only using 7 of 255 PWM
> > > counts.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The 0.2 sec delay is a bit odd but shouldn't hurt
> >
> anything.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢
> ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Realize that just because the spindle motion is not perfect doesn't mean that the Rigid Tap won't be perfect.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because the Z motion will be sync'ed to the Spindle
> Motion.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We just need the Spindle to
> > accelerate smoothly to the right tapping speed and stop/reverse after the right number of turns.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Other systems that just try to move the spindle and z axis in an open loop but coordinated manner wouldn't
> work
> > > as well.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You shouldn't need flexible tap
> holders.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Hopefully :}
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > The C Program is written to always output CW or CCW whenever the axis is enabled.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So it always tries to hold
> position.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  0 PWM setting causes it to stop so I don't see a need to disable the
> > >
> >
> VFD.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ
> '¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'
> ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'
> > Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It will disable everything if the axis is disabled.
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > You should also now be able to try setting constant spindle speed by commanding Jogs.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So for example on the Console Screen Jog4=40000 should be 600RPM
> exactly.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also the SpindleMach3Jog.c should now work for Mach3.
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Regarding the IO are those inputs or outputs?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Seems like Coolant On would be an output but you are referencing
> inputs.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But yes the general purpose inputs are very high impedance inputs which will just float if
> > not driven.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  They must be driven high and low (ie a pulldown resistor).
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > >
> > > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Monday, May 14, 2012 12:38 PM
> > > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Hi Tom,
> > > > > > > > >
> > > > > > > > > Have uploaded PWMtoVFD 5.png to my folder.
> > > > > > > > > I have tried to follow you instructions and have added the filter you wanted and 50Hz Q1.4 looks best if I can 'read' the curves correctly.
> > > > > > > > >
> > > > > > > > > As you meantioned tapping would probably work just fine even with a very coarse thread and I will be using tap holders that are flexible to some degree up and down.
> > > > > > > > >
> > > > > > > > > One thing I have noticed is that after the spindle makes it move the bits 152 and 153 are on. I assumed that they should be off?
> > > > > > > > >
> > > > > > > > > So is this as good as we can get it and I can do tapping and run the spindle I assume there will be a new C-file to make it work with Mach3.
> > > > > > > > >
> > > > > > > > > Have been doing some wireing to JP12, I am a bit confused as bits 128 to 135 behave very odd I am using 132-134-135 that is 132 for worklight swith on my control panel, 134 for manual coolant on and 135 for starting central oiler pump.
> > > > > > > > > 132/134 are +24VDC via 1K + 3.3V Zener to GND and a serial 100R to input, 135 3.3V via swithch to input.
> > > > > > > > > When I start up all show active even if OFF and unused/unconnected 128-131+133 show active.
> > > > > > > > > Cannot get 132 and 135 to work but 134 works OK, do I need pulldown to settle these bits?
> > > > > > > > > JP12 is connected via Winford breakout with 10-12cm ribboncable.
> > > > > > > > >
> > > > > > > > > Cheers
> > > > > > > > > Bengt
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Bengt,
> > > > > > > > > >
> > > > > > > > > > Yes I think that is getting
> close.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Looks like it is moving to within about ~100 counts or about 10 degrees of where it is being told to
> >
> go.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢Ã
> Æ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That should be sufficient for rigid tapping.
> > > > > > > > > >
> > > > > > > > > > But notice the actual speed (red slope) is not able to keep up with the commanded speed (blue
> slope).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because we have a Max Error setting of only 200 counts combined with a low P
> > gain setting of
> 0.006.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > 200 x 0.006 = 1.2 PWM
> counts.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You can see that the PWM Output (green plot) is clipped at that value so we are never commanding more than 1 PWM
> > > >
> count.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Let's increase the Max Error from 200 to
> >
> 4000.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also try a bigger move that would accelerate to a higher
> > > > >
> speed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You may have to re-adjust the P gain for best results.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > To reduce over shoot you might try some D
> gain.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You should use this with a 2nd order Low pass filter (Q=1.4) to smooth the
> >
> output.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚ÂÂÂ<br/><br/>(Message over 64 KB, truncated)
Group: DynoMotion Message: 5004 From: Bengt Sjoelund Date: 5/20/2012
Subject: Re: PWM to VFD
Hi Tom,

Went back to the workshop and made a test running only in Hi gear and it sounds OK from 240rpm (jog4=15085) and runs up to 2330rpm.

May be it is just simpler to have it in HI gear all the time instead of having a breakpoint at say 700rpm as discussed before. If need be for very low rpm I can use the mechanical gears that are locked now.
That is if I loose a lot of power having it in HI gear all the time but gives me the freedom to change rpm's on the fly.

Don't get me wrong here as I appreciate the work you do but I feel that I´m getting to be PITA with this bothering you.

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, "Bengt Sjoelund" <cnc@...> wrote:
>
> Hi Tom,
>
> I can tell you it took a while to get the hang of it, this is a special motor type.
>
> I can see that virtual bit activates HI but there is no movement at all from jog4=xxxxx. If I disable virtual bit and enable from step/response the spindle acts like it is in HI for a while and revs down to set speed.
>
> Manually I get LO and HI to work but not with virtual enabled.
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > The schematic doesn't really help me understand things.  But anyway I uploaded a ne V5 C file that puts both LO and HI on at the same time for High speed.
> >  
> > Regards
> > TK
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Sunday, May 20, 2012 10:14 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >
> >  
> >
> > Hi Tom,
> >
> > No turn off, uploaded a schematic in the folder 3-phase 2-speed AC-motor.jpg
> >
> > Changed to 255 and now I get LO 1160 HI 2320, cannot get higher due to the lower voltage out from the VFD but this is OK.
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >
> > > I thought we were supposed to turn the LOSPEED bit off and turn on the HISPEED bit to go to high speed?
> > >
> > > If I recall the Max Output in your configuration was set at 200.  To output a maximum PWM value of 255 change this to 255.
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Sunday, May 20, 2012 5:24 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > RE ratio, not sure at all now after last test with the new file.
> > > If I Jog4=15085 the spindle is steady at 240rpm
> > >
> > > Done some testing as you requested and I get a range in LO from 6600 to 66000 that is 104rpm to 1030 maximum that is a bit slower than max I could get out before via PWMto1kHz
> > >
> > > Virtual Bit 48 does not work as it is supposed to do as it switches BIT152 Off. Manual enabling does not work as long as Virtual Bit48 is ON.
> > >
> > > Manually setting HI I cannot get more than 2060rpm (Jog4=132000)
> > > HI is ranging from 6600 to 132000
> > >
> > > I have not changed any values in the latest c-file
> > >
> > > Manually with potentiometer LO=1324rpm HI=2643rpm so the goal is to get LO 1250 and HI 2500 as label on machine. Obviously I cannot get higher voltage to get these rpm's, maybe an external 5VDC source to drive the PWM adapter to get a bit higher output?
> > >
> > > Cheers
> > > Bengt
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > >  
> > > > Is that the exact ratio?  If it isn't exact then after thousands or millions of revs the spindle angle will be off. Athough that probably won't matter in your case unless you want to do threading.
> > > >  
> > > > It would of course be:
> > > >  
> > > > EnableAxis(4);
> > > >  
> > > > Do not include it in the coordinated motion system
> > > >  
> > > > Regards and good luck in your shooting.
> > > > TK
> > > >
> > > >
> > > > ________________________________
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Friday, May 18, 2012 12:18 PM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > >
> > > >  
> > > >
> > > > No worries Tom,
> > > >
> > > > If my math is OK the ratio is 0.959
> > > >
> > > > Will get to this maybe tomorrow evening when I come back from the shooting range from a full days driving and long range competition shooting.
> > > >
> > > > If I get it right I should copy what I have for the fourth axis and paste ch4 data to my init file.
> > > > EnableAxis(0);
> > > > EnableAxis(1);
> > > > EnableAxis(2);
> > > > >>?? EnableAxis(?);
> > > > >>?? DefineCoordSystem(0,1,2,-1);
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'‚ 
> > > > > Sorry for the delay.
> > > > > ÃÆ'‚ 
> > > > > The gear ratio will not be a problem.ÃÆ'‚  That can be treated just like there is a different number of encoder counts/rev.ÃÆ'‚  It would be nice to know the exact ratio.ÃÆ'‚  What is it?
> > > > > ÃÆ'‚ 
> > > > > I uploaded a new C file V4 that should allow selecting the speed range.ÃÆ'‚  The Speed Range is selected using Virtual IO Bit 48.ÃÆ'‚  0=LO 1=HIGH.
> > > > > ÃÆ'‚ 
> > > > > Later this will allow us to select the speed range from either the Mach3Spindle control stuff or Rigid tapping stuff.
> > > > > ÃÆ'‚ 
> > > > > So now let's try repeating the previous experiments again, but for both speed ranges.
> > > > > ÃÆ'‚ 
> > > > > #1 Using the Digital IO screen Set Virtual Bit 48 off.
> > > > > ÃÆ'‚ 
> > > > > #2 run your init.c to configure everything including the spindle axis
> > > > > ÃÆ'‚ 
> > > > > #3 run the new C program
> > > > > ÃÆ'‚ 
> > > > > #4 Test using Jog4=XXX for all +/- speeds up to your max expected Low Speed RPM
> > > > > ÃÆ'‚ 
> > > > > ÃÆ'‚ 
> > > > > Then set bit 48 on and repeat for up to your max expected Hi Speed RPM.
> > > > > ÃÆ'‚ 
> > > > > Regards
> > > > > TK
> > > > > ÃÆ'‚ 
> > > > > ÃÆ'‚ 
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Wednesday, May 16, 2012 7:53 AM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'‚ 
> > > > >
> > > > > Hi Tom,
> > > > >
> > > > > I have today verified my spindle speeds as follows:
> > > > >
> > > > > 16000 = 240rpm at the encoder shaft that is the ingoing shaft into gearbox. I have been in the belief that it was 1:1 with spindle but actually no.
> > > > > Spindle rotates at 254.4 rpm at commanded 16000 and at 32000 the rpms are 480 / 509.2 so I hope this can be adjusted in c-file if necessary.
> > > > >
> > > > > I use a Phototachometer http://www.pedak.nl/Lutron/pdf/Dt-2234a.pdf
> > > > >
> > > > > As regards shifting from LO to HI on the run works but not if tool is cutting as it takes a short time to stabilize the rpm.
> > > > > So I would prefer that speed shifting is done when tool is not cutting
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ok that's progress.ÃÆ'Æ'‚ÃÆ'‚  I'm surprised it isn't more accurate.ÃÆ'Æ'‚ÃÆ'‚  With this method there could be some speed variation but the average speed pretty much must be exact.ÃÆ'Æ'‚ÃÆ'‚  How are you measuring?ÃÆ'Æ'‚ÃÆ'‚  You might check the counts with a stop watch.ÃÆ'Æ'‚ÃÆ'‚  For example Jog4=16000 should be exactly 240 RPM.ÃÆ'Æ'‚ÃÆ'‚  If you watch the counts on the Axis Screen the time from 1 million counts to the next should be:
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > 1000000/16000 = 62.5 seconds
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > BTW Jog4=-16000 should be -240 RPM
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > I suppose we may as well handle the Hi/Lo Speed stuff next.
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > How do you expect this to work.ÃÆ'Æ'‚ÃÆ'‚  Is it ok to switch speeds while running?ÃÆ'Æ'‚ÃÆ'‚  For example if the User or the Gcode selects:
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > S200
> > > > > > S500
> > > > > > S1000
> > > > > > S1500
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Is is ok to just at some point suddenly turn off Low Speed and switch to High speed on the fly while adjusting the PWM appropriately.ÃÆ'Æ'‚ÃÆ'‚  Or is it required to come to a full stop and then switch?
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Could you perform a test using the Digital IO screen and the PWM1KHz.c example to manually make a test?
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Regards
> > > > > > TK
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Tuesday, May 15, 2012 2:11 PM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom,
> > > > > > Change to 85000 gives following jog4=
> > > > > > 8000 127rpm
> > > > > > 16000 254rpm
> > > > > > 32000 508rpm
> > > > > > 64000 1018rpm
> > > > > > 6000 95rpm but a bit unstable as I can hear
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Bengt,
> > > > > > >
> > > > > > > If you still have Max Error = 4000ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  and P gain = 0.0031?
> > > > > > >
> > > > > > > Then 4000 x 0.0031 = 12 PWM counts
> > > > > > >
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Tuesday, May 15, 2012 11:52 AM
> > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Hi Tom,
> > > > > > > Jog4=4000 SP turns 15rev stops 1sec turns 15r stops 1sec etc.....
> > > > > > > Opening cfile OutputtoPWMDirv3.c
> > > > > > > Compile/download/run
> > > > > > > load my data
> > > > > > > Disable/zero/move 3sec/6000
> > > > > > > Spindle rotates ~1.5rev
> > > > > > > Axis screen
> > > > > > > Dest goes to 6000 and counts down.
> > > > > > > Pos overshoots 10-20 and zeroes at -10-20 (varies from move to move)
> > > > > > > When 60000 is commanded Dest goes up to 60.000 and down
> > > > > > > Pos somewhere about 51-52000 and counts down
> > > > > > > When 100000 Dest goes up to 100000 and down
> > > > > > > Pos to 83.000+ and ends at +40 to 50
> > > > > > > Checked rpm's to be ~200rpm
> > > > > > >
> > > > > > > Sorry but I cannot set higher speeds, what figures to change?
> > > > > > >
> > > > > > > Checked PWMto1kHz and 100PWM = 512rpm
> > > > > > >
> > > > > > > All spindle movement starts with CCW
> > > > > > >
> > > > > > > Sorry for long delay but something odd with Yahoo as my keyboard is like typeing in tar.
> > > > > > >
> > > > > > > Cheers
> > > > > > > Bengt
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Bengt,
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Are you saying you enter Jog4=4000 and the Spindle turns 15 turns and stops forever?
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Could you explain things in more detail what you are doing and exactly what happens?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Please include as much information as possible including things like information on what the commanded Dest and Encoder Position is doing on the Axis Screen and whether the axes remain enabled and so forth?
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > I suppose we should go back to the Step Response Screen.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I asked how many revs the Spindle was moving for the plotted moves and you never answered.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I asked to test larger and faster speeds and you never responded.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I don't know whether you did those requests and all was good or did not
> > test.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  All you have shown is a slow 6000 count move.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Is that move 1.5 Revs?
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Tuesday, May 15, 2012 7:54 AM
> > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > >
> > > > > > > >
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Hi Tom,
> > > > > > > > You are one early bird ;)
> > > > > > > >
> > > > > > > > #1 OK
> > > > > > > > #2 -4000 = CW / turns the spindle ~15turns and stops ~1sec / 67rpm
> > > > > > > > #3 -40000 runs the spindle with 67 rpm
> > > > > > > >
> > > > > > > > #2 if jog4=4000 it turns 1rev stops 1rev stops etc
> > > > > > > >
> > > > > > > > Cheers
> > > > > > > > Bengt
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Bengt,
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Ok let's go one step at a time.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Let's get Console Jogs to work.
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > #1 On the Step Response Screen use the Zero and Move buttons to Download and Enable the Spindle Axis and verify it is functioning properly as your previous plots showed.
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > #2 On the Console Screen Enter:ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > Jog4=4000ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Does the spindle rotate 1 rev per
> > second?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  If not, explain what happened.
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > #3 On the Console Screen Enter:ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Jog4=40000 Does the spindle rotate 10 rev per second (600 RPM)?
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Tuesday, May 15, 2012 6:18 AM
> > > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Hi Tom,
> > > > > > > > >
> > > > > > > > > 1. Cannot get jog4=40000 to work
> > > > > > > > > 2. Nothing in Mach3 MDI M3 S300
> > > > > > > > >
> > > > > > > > > Obviosly something is wrong. Can you tell me what C files should be compiled and downloaded to KFlop and what files is needed in Mach3 plugin setup.
> > > > > > > > >
> > > > > > > > > I assume in Mach3 following will be needed in Mach3
> > > > > > > > > CombiMill 3axis.c (do I need to add ch4?)
> > > > > > > > > SpindleMach3PWMHiLoGear.c is the latest tested file
> > > > > > > > > CombiMillHomeMach3C.c
> > > > > > > > > NotifyMach3.c
> > > > > > > > >
> > > > > > > > > Sorry but I am all mixed up here, so be kind to me ;)
> > > > > > > > > Would be helpful to have a step by step setup so I can manage to get all working.
> > > > > > > > >
> > > > > > > > > Cheers
> > > > > > > > > Bengt
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Bengt,
> > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Yes that looks quite good.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You still are not moving very
> > far.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  1.5
> > > revs??ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So the speed is only getting up to about 200
> > RPM.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  And we are only using 7 of 255 PWM
> > > > counts.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The 0.2 sec delay is a bit odd but shouldn't hurt
> > >
> > anything.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢
> > ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Realize that just because the spindle motion is not perfect doesn't mean that the Rigid Tap won't be perfect.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because the Z motion will be sync'ed to the Spindle
> > Motion.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We just need the Spindle to
> > > accelerate smoothly to the right tapping speed and stop/reverse after the right number of turns.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Other systems that just try to move the spindle and z axis in an open loop but coordinated manner wouldn't
> > work
> > > > as well.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You shouldn't need flexible tap
> > holders.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Hopefully :}
> > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > The C Program is written to always output CW or CCW whenever the axis is enabled.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So it always tries to hold
> > position.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  0 PWM setting causes it to stop so I don't see a need to disable the
> > > >
> > >
> > VFD.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ
> > '¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'
> > ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'
> > > Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It will disable everything if the axis is disabled.
> > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > You should also now be able to try setting constant spindle speed by commanding Jogs.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So for example on the Console Screen Jog4=40000 should be 600RPM
> > exactly.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also the SpindleMach3Jog.c should now work for Mach3.
> > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Regarding the IO are those inputs or outputs?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Seems like Coolant On would be an output but you are referencing
> > inputs.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But yes the general purpose inputs are very high impedance inputs which will just float if
> > > not driven.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  They must be driven high and low (ie a pulldown resistor).
> > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > >
> > > > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > > Sent: Monday, May 14, 2012 12:38 PM
> > > > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Hi Tom,
> > > > > > > > > >
> > > > > > > > > > Have uploaded PWMtoVFD 5.png to my folder.
> > > > > > > > > > I have tried to follow you instructions and have added the filter you wanted and 50Hz Q1.4 looks best if I can 'read' the curves correctly.
> > > > > > > > > >
> > > > > > > > > > As you meantioned tapping would probably work just fine even with a very coarse thread and I will be using tap holders that are flexible to some degree up and down.
> > > > > > > > > >
> > > > > > > > > > One thing I have noticed is that after the spindle makes it move the bits 152 and 153 are on. I assumed that they should be off?
> > > > > > > > > >
> > > > > > > > > > So is this as good as we can get it and I can do tapping and run the spindle I assume there will be a new C-file to make it work with Mach3.
> > > > > > > > > >
> > > > > > > > > > Have been doing some wireing to JP12, I am a bit confused as bits 128 to 135 behave very odd I am using 132-134-135 that is 132 for worklight swith on my control panel, 134 for manual coolant on and 135 for starting central oiler pump.
> > > > > > > > > > 132/134 are +24VDC via 1K + 3.3V Zener to GND and a serial 100R to input, 135 3.3V via swithch to input.
> > > > > > > > > > When I start up all show active even if OFF and unused/unconnected 128-131+133 show active.
> > > > > > > > > > Cannot get 132 and 135 to work but 134 works OK, do I need pulldown to settle these bits?
> > > > > > > > > > JP12 is connected via Winford breakout with 10-12cm ribboncable.
> > > > > > > > > >
> > > > > > > > > > Cheers
> > > > > > > > > > Bengt
> > > > > > > > > >
> > > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Bengt,
> > > > > > > > > > >
> > > > > > > > > > > Yes I think that is getting
> > close.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> > ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Looks like it is moving to within about ~100 counts or about 10 degrees of where it is being told to
> > >
> > go.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢Ã
> > Æ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That should be sufficient for rigid tapping.
> > > > > > > > > > >
> > > > > > > > > > > But notice the actual speed (red slope) is not able to keep up with the commanded speed (blue
> > slope).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> > ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because we have a Max Error setting of only 200 counts combined with a low P
> > > gain setting of
> > 0.006.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> > ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > 200 x 0.006 = 1.2 PWM
> > counts.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> > ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You can see that the PWM Output (green plot) is clipped at that value so we are never commanding more than 1 PWM
> > > > >
> > count.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> > ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Let's increase the Max Error from 200 to
> > >
> > 4000.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> > ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also try a bigger move that would accelerate to a higher
> > > > > >
> > speed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> > ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You may have to re-adjust the P gain for best results.
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > To reduce over shoot you might try some D
> > gain.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> > ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'Ã<br/><br/>(Message over 64 KB, truncated)
Group: DynoMotion Message: 5005 From: Tom Kerekes Date: 5/20/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
Looks like our thread got too long and Yahoo didn't accept my last reply.  I've trimmed it down.  Maybe that is also why you were having problems.
 
I don't mind working on this at all.  It is something we need to have.  It would be helpful as always if you provided more information in your responses.  For example in your last email when there was no motion you could tell me why there is no motion.  Is the axis enabled?  Are the right bits turned on?  Is there a PWM voltage? 
Seems like if several of those relays on at the same time you will blow fuses, but I'll assume you did it right...
Oops I forgot to remember what gear we were in so it was constantly changing gears and forcing the output to zero.
Try Version 6
Regards
TK

From: Bengt Sjoelund <cnc@...>
To: DynoMotion@yahoogroups.com
Sent: Sunday, May 20, 2012 12:35 PM
Subject: [DynoMotion] Re: PWM to VFD

 
Hi Tom,

Went back to the workshop and made a test running only in Hi gear and it sounds OK from 240rpm (jog4=15085) and runs up to 2330rpm.

May be it is just simpler to have it in HI gear all the time instead of having a breakpoint at say 700rpm as discussed before. If need be for very low rpm I can use the mechanical gears that are locked now.
That is if I loose a lot of power having it in HI gear all the time but gives me the freedom to change rpm's on the fly.

Don't get me wrong here as I appreciate the work you do but I feel that I´m getting to be PITA with this bothering you.

Cheers
Bengt
 
Group: DynoMotion Message: 5006 From: Bengt Sjoelund Date: 5/20/2012
Subject: Re: PWM to VFD
Hi Tom,

Now we have it working :)

Last email as regards motion, all enabled, right bits, sorry but I did not have DMM connected.

So as it now works where will the gear come in action? around 700rpm's as earlier discussed?

Lets take a hypothetical milling with 700rpms set in HI gear and the load is significant so the rpm drops, what will the 'gearing' do? Will it go down to LO to get more power (I assume it is so) and the go up and down Hi to Lo to Hi etc etc or will it stay and wait until next S command is set in Mach3?


What next?

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Looks like our thread got too long and Yahoo didn't accept my last reply.  I've trimmed it down.  Maybe that is also why you were having problems.
>  
> I don't mind working on this at all.  It is something we need to have.  It would be helpful as always if you provided more information in your responses.  For example in your last email when there was no motion you could tell me why there is no motion.  Is the axis enabled?  Are the right bits turned on?  Is there a PWM voltage? 
> Seems like if several of those relays on at the same time you will blow fuses, but I'll assume you did it right...
> Oops I forgot to remember what gear we were in so it was constantly changing gears and forcing the output to zero.
> Try Version 6
> Regards
> TK
>
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, May 20, 2012 12:35 PM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>
>  
>
> Hi Tom,
>
> Went back to the workshop and made a test running only in Hi gear and it sounds OK from 240rpm (jog4=15085) and runs up to 2330rpm.
>
> May be it is just simpler to have it in HI gear all the time instead of having a breakpoint at say 700rpm as discussed before. If need be for very low rpm I can use the mechanical gears that are locked now.
> That is if I loose a lot of power having it in HI gear all the time but gives me the freedom to change rpm's on the fly.
>
> Don't get me wrong here as I appreciate the work you do but I feel that I´m getting to be PITA with this bothering you.
>
> Cheers
> Bengt
>
Group: DynoMotion Message: 5007 From: Tom Kerekes Date: 5/20/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
ok that's progress.
 
You never answered about the exact ratio.  If there are gears involved then the exact ratio would be the gear ratio (47 teeth/50teeth for example).  You can test the ratio to see if it exact by moving a large number of revolutions.  So for example if the ratio is 0.959 and the encoder is 4000 counts per rev then to move exactly 1000 revs would be:
 
1000 revs x 4000 counts/rev x 0.959 = 3836000 counts.
 
So if you command a move of this the spindle should finish at the same position (within the servo tolerance):
 
MoveRel4=3836000
 
But regardless I will assume the ratio is 0.959 or one rev is 3844 counts.
 
Regarding your question on rpm drops: I was thinking to set the HI/LO Speed range based on the Commanded Speed not the actual speed.  In this case the speed range would not switch if the speed drops.  BTW the speed should not drop as the servo will increase the PWM to maintain the proper RPM.
 
Now that we have the Spindle operating as an Axis we can use the standard Mach3SpindleJog.c  This commands the Spindle Axis to move at the desired speed regardless of what configuration it is (Step/Dir, DAC Servo, PWM, etc...).
 
But I have modified it to automatically set the Speed Range depending on the commanded Speed.
 
I have also modified it for 3844 counts/rev and also assuming that the Mach3 Pulley speed has been set for 2500 RPM
 
Regards
TK 
 

From: Bengt Sjoelund <cnc@...>
To: DynoMotion@yahoogroups.com
Sent: Sunday, May 20, 2012 1:30 PM
Subject: [DynoMotion] Re: PWM to VFD

 
Hi Tom,

Now we have it working :)

Last email as regards motion, all enabled, right bits, sorry but I did not have DMM connected.

So as it now works where will the gear come in action? around 700rpm's as earlier discussed?

Lets take a hypothetical milling with 700rpms set in HI gear and the load is significant so the rpm drops, what will the 'gearing' do? Will it go down to LO to get more power (I assume it is so) and the go up and down Hi to Lo to Hi etc etc or will it stay and wait until next S command is set in Mach3?

What next?

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Looks like our thread got too long and Yahoo didn't accept my last reply.  I've trimmed it down.  Maybe that is also why you were having problems.
>  
> I don't mind working on this at all.  It is something we need to have.  It would be helpful as always if you provided more information in your responses.  For example in your last email when there was no motion you could tell me why there is no motion.  Is the axis enabled?  Are the right bits turned on?  Is there a PWM voltage? 
> Seems like if several of those relays on at the same time you will blow fuses, but I'll assume you did it right...
> Oops I forgot to remember what gear we were in so it was constantly changing gears and forcing the output to zero.
> Try Version 6
> Regards
> TK
>
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, May 20, 2012 12:35 PM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>
>  
>
> Hi Tom,
>
> Went back to the workshop and made a test running only in Hi gear and it sounds OK from 240rpm (jog4=15085) and runs up to 2330rpm.
>
> May be it is just simpler to have it in HI gear all the time instead of having a breakpoint at say 700rpm as discussed before. If need be for very low rpm I can use the mechanical gears that are locked now.
> That is if I loose a lot of power having it in HI gear all the time but gives me the freedom to change rpm's on the fly.
>
> Don't get me wrong here as I appreciate the work you do but I feel that I´m getting to be PITA with this bothering you.
>
> Cheers
> Bengt
>



Group: DynoMotion Message: 5010 From: Bengt Sjoelund Date: 5/21/2012
Subject: Re: PWM to VFD
Hi Tom,

The MoveRel4=3863000 stops less than a quarter from start position.
In Axis window the DEST is 3835050 and POS 3834978

I have created a new folder = Mach3
Pictures in there shows my settings within Mach3
But I get no action on the spindle

Looking at Port and pins I have activated the spindle so the Yellow LED reacts on M3/M4/M5 so I assume that some settings are missing but I cannot figure out what.

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> ok that's progress.
>  
> You never answered about the exact ratio.  If there are gears involved then the exact ratio would be the gear ratio (47 teeth/50teeth for example).  You can test the ratio to see if it exact by moving a large number of revolutions.  So for example if the ratio is 0.959 and the encoder is 4000 counts per rev then to move exactly 1000 revs would be:
>  
> 1000 revs x 4000 counts/rev x 0.959 = 3836000 counts.
>  
> So if you command a move of this the spindle should finish at the same position (within the servo tolerance):
>  
> MoveRel4=3836000
>  
> But regardless I will assume the ratio is 0.959 or one rev is 3844 counts.
>  
> Regarding your question on rpm drops: I was thinking to set the HI/LO Speed range based on the Commanded Speed not the actual speed.  In this case the speed range would not switch if the speed drops.  BTW the speed should not drop as the servo will increase the PWM to maintain the proper RPM.
>  
> Now that we have the Spindle operating as an Axis we can use the standard Mach3SpindleJog.c  This commands the Spindle Axis to move at the desired speed regardless of what configuration it is (Step/Dir, DAC Servo, PWM, etc...).
>  
> But I have modified it to automatically set the Speed Range depending on the commanded Speed.
>  
> I have also modified it for 3844 counts/rev and also assuming that the Mach3 Pulley speed has been set for 2500 RPM
>  
> Regards
> TK 
>  
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, May 20, 2012 1:30 PM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>
>  
>
> Hi Tom,
>
> Now we have it working :)
>
> Last email as regards motion, all enabled, right bits, sorry but I did not have DMM connected.
>
> So as it now works where will the gear come in action? around 700rpm's as earlier discussed?
>
> Lets take a hypothetical milling with 700rpms set in HI gear and the load is significant so the rpm drops, what will the 'gearing' do? Will it go down to LO to get more power (I assume it is so) and the go up and down Hi to Lo to Hi etc etc or will it stay and wait until next S command is set in Mach3?
>
> What next?
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > Looks like our thread got too long and Yahoo didn't accept my last reply.  I've trimmed it down.  Maybe that is also why you were having problems.
> >  
> > I don't mind working on this at all.  It is something we need to have.  It would be helpful as always if you provided more information in your responses.  For example in your last email when there was no motion you could tell me why there is no motion.  Is the axis enabled?  Are the right bits turned on?  Is there a PWM voltage? 
> > Seems like if several of those relays on at the same time you will blow fuses, but I'll assume you did it right...
> > Oops I forgot to remember what gear we were in so it was constantly changing gears and forcing the output to zero.
> > Try Version 6
> > Regards
> > TK
> >
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Sunday, May 20, 2012 12:35 PM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >
> >  
> >
> > Hi Tom,
> >
> > Went back to the workshop and made a test running only in Hi gear and it sounds OK from 240rpm (jog4=15085) and runs up to 2330rpm.
> >
> > May be it is just simpler to have it in HI gear all the time instead of having a breakpoint at say 700rpm as discussed before. If need be for very low rpm I can use the mechanical gears that are locked now.
> > That is if I loose a lot of power having it in HI gear all the time but gives me the freedom to change rpm's on the fly.
> >
> > Don't get me wrong here as I appreciate the work you do but I feel that I´m getting to be PITA with this bothering you.
> >
> > Cheers
> > Bengt
> >
>
Group: DynoMotion Message: 5012 From: Tom Kerekes Date: 5/21/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
That would indicate that 3863 is not the exact number.  A quarter turn would be about 1000 counts off,  The servo positioning error is less than 100 counts.  It will be up to you to determine the exact number if you need it.  You can either look at your gears or find it by trial and error.  If the number is exactly correct then you should be able to turn any number of revs and always be within about 100 counts (< 10 degrees).  Note that the "servo error" of 10 degrees does not the reflect the error that threading or rigid tapping will have because the encoder will report the position to 1 count (0.1degree) and the z axis will follow that.
 
 
 
in Mach3 | Config | Port&Pins | Spindle : uncheck disable Spindle Relays and uncheck use Spindle Motor Output
 
in Mach3 | Config | Port&Pins | Motor Outputs : disable Spindle and set xyz step & Dir ports all to 0
 
Try again while monitoring KMotion Console Screen for Spindle Messages.
 
Regards
TK
 
 

Group: DynoMotion Message: 5014 From: Bengt Sjoelund Date: 5/21/2012
Subject: Re: PWM to VFD
Hi Tom,

Now we have something from Mach3 but only CCW whatever commanded direction.

M3 S250 goes CCW and runs at 255 and Mach3 shows 249
M4 S250 as above

M3 S500 goes CCW at 509.6 and Mach3 shows ~498

The exact number must be achieved via trial and error as there is now way I will tear down the spindle head and gearbox so I have to do trials for this, that can be fun :)

Cheers
Bengt



--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> That would indicate that 3863 is not the exact number.  A quarter turn would be about 1000 counts off,  The servo positioning error is less than 100 counts.  It will be up to you to determine the exact number if you need it.  You can either look at your gears or find it by trial and error.  If the number is exactly correct then you should be able to turn any number of revs and always be within about 100 counts (< 10 degrees).  Note that the "servo error" of 10 degrees does not the reflect the error that threading or rigid tapping will have because the encoder will report the position to 1 count (0.1degree) and the z axis will follow that.
>  
>  
>  
> in Mach3 | Config | Port&Pins | Spindle : uncheck disable Spindle Relays and uncheck use Spindle Motor Output
>  
> in Mach3 | Config | Port&Pins | Motor Outputs : disable Spindle and set xyz step & Dir ports all to 0
>  
> Try again while monitoring KMotion Console Screen for Spindle Messages.
>  
> Regards
> TK
>  
>  
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, May 21, 2012 5:00 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> The MoveRel4=3863000 stops less than a quarter from start position.
> In Axis window the DEST is 3835050 and POS 3834978
>
> I have created a new folder = Mach3
> Pictures in there shows my settings within Mach3
> But I get no action on the spindle
>
> Looking at Port and pins I have activated the spindle so the Yellow LED reacts on M3/M4/M5 so I assume that some settings are missing but I cannot figure out what.
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > ok that's progress.
> >  
> > You never answered about the exact ratio.  If there are gears involved then the exact ratio would be the gear ratio (47 teeth/50teeth for example).  You can test the ratio to see if it exact by moving a large number of revolutions.  So for example if the ratio is 0.959 and the encoder is 4000 counts per rev then to move exactly 1000 revs would be:
> >  
> > 1000 revs x 4000 counts/rev x 0.959 = 3836000 counts.
> >  
> > So if you command a move of this the spindle should finish at the same position (within the servo tolerance):
> >  
> > MoveRel4=3836000
> >  
> > But regardless I will assume the ratio is 0.959 or one rev is 3844 counts.
> >  
> > Regarding your question on rpm drops: I was thinking to set the HI/LO Speed range based on the Commanded Speed not the actual speed.  In this case the speed range would not switch if the speed drops.  BTW the speed should not drop as the servo will increase the PWM to maintain the proper RPM.
> >  
> > Now that we have the Spindle operating as an Axis we can use the standard Mach3SpindleJog.c  This commands the Spindle Axis to move at the desired speed regardless of what configuration it is (Step/Dir, DAC Servo, PWM, etc...).
> >  
> > But I have modified it to automatically set the Speed Range depending on the commanded Speed.
> >  
> > I have also modified it for 3844 counts/rev and also assuming that the Mach3 Pulley speed has been set for 2500 RPM
> >  
> > Regards
> > TK 
> >  
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Sunday, May 20, 2012 1:30 PM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >
> >  
> >
> > Hi Tom,
> >
> > Now we have it working :)
> >
> > Last email as regards motion, all enabled, right bits, sorry but I did not have DMM connected.
> >
> > So as it now works where will the gear come in action? around 700rpm's as earlier discussed?
> >
> > Lets take a hypothetical milling with 700rpms set in HI gear and the load is significant so the rpm drops, what will the 'gearing' do? Will it go down to LO to get more power (I assume it is so) and the go up and down Hi to Lo to Hi etc etc or will it stay and wait until next S command is set in Mach3?
> >
> > What next?
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > Looks like our thread got too long and Yahoo didn't accept my last reply.  I've trimmed it down.  Maybe that is also why you were having problems.
> > >  
> > > I don't mind working on this at all.  It is something we need to have.  It would be helpful as always if you provided more information in your responses.  For example in your last email when there was no motion you could tell me why there is no motion.  Is the axis enabled?  Are the right bits turned on?  Is there a PWM voltage? 
> > > Seems like if several of those relays on at the same time you will blow fuses, but I'll assume you did it right...
> > > Oops I forgot to remember what gear we were in so it was constantly changing gears and forcing the output to zero.
> > > Try Version 6
> > > Regards
> > > TK
> > >
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Sunday, May 20, 2012 12:35 PM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >
> > >  
> > >
> > > Hi Tom,
> > >
> > > Went back to the workshop and made a test running only in Hi gear and it sounds OK from 240rpm (jog4=15085) and runs up to 2330rpm.
> > >
> > > May be it is just simpler to have it in HI gear all the time instead of having a breakpoint at say 700rpm as discussed before. If need be for very low rpm I can use the mechanical gears that are locked now.
> > > That is if I loose a lot of power having it in HI gear all the time but gives me the freedom to change rpm's on the fly.
> > >
> > > Don't get me wrong here as I appreciate the work you do but I feel that I´m getting to be PITA with this bothering you.
> > >
> > > Cheers
> > > Bengt
> > >
> >
>
Group: DynoMotion Message: 5015 From: Tom Kerekes Date: 5/21/2012
Subject: Re: PWM to VFD
ok uploaded V2
 
TK

Group: DynoMotion Message: 5019 From: Bengt Sjoelund Date: 5/22/2012
Subject: Re: PWM to VFD
Hi Tom,

Thank you!! Now it works http://youtu.be/USNiVKyYgmI
Short video just to see motion (spindle set to LO rpm = less noise)

Some odd things though, if I set S2000 and the change to say S800 it takes 4-5 seconds before the spindle revs down.
CW motion Mach shows negative so if S800 then -800 is shown and vice versa if M4 S800 it shows 800.

Will do some more testing and report back.

I am very happy now, almost 2 years since I got the machine and started to investigate the condition as it was sold as-is/dead as regards the CNC part. Looking forward to get all peripherals/add-on's that I have hooked up and working.

Cheers
Bengt





--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> ok uploaded V2
>  
> TK
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, May 21, 2012 12:56 PM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> Now we have something from Mach3 but only CCW whatever commanded direction.
>
> M3 S250 goes CCW and runs at 255 and Mach3 shows 249
> M4 S250 as above
>
> M3 S500 goes CCW at 509.6 and Mach3 shows ~498
>
> The exact number must be achieved via trial and error as there is now way I will tear down the spindle head and gearbox so I have to do trials for this, that can be fun :)
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > That would indicate that 3863 is not the exact number.  A quarter turn would be about 1000 counts off,  The servo positioning error is less than 100 counts.  It will be up to you to determine the exact number if you need it.  You can either look at your gears or find it by trial and error.  If the number is exactly correct then you should be able to turn any number of revs and always be within about 100 counts (< 10 degrees).  Note that the "servo error" of 10 degrees does not the reflect the error that threading or rigid tapping will have because the encoder will report the position to 1 count (0.1degree) and the z axis will follow that.
> >  
> >  
> >  
> > in Mach3 | Config | Port&Pins | Spindle : uncheck disable Spindle Relays and uncheck use Spindle Motor Output
> >  
> > in Mach3 | Config | Port&Pins | Motor Outputs : disable Spindle and set xyz step & Dir ports all to 0
> >  
> > Try again while monitoring KMotion Console Screen for Spindle Messages.
> >  
> > Regards
> > TK
> >  
> >  
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, May 21, 2012 5:00 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > The MoveRel4=3863000 stops less than a quarter from start position.
> > In Axis window the DEST is 3835050 and POS 3834978
> >
> > I have created a new folder = Mach3
> > Pictures in there shows my settings within Mach3
> > But I get no action on the spindle
> >
> > Looking at Port and pins I have activated the spindle so the Yellow LED reacts on M3/M4/M5 so I assume that some settings are missing but I cannot figure out what.
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > ok that's progress.
> > >  
> > > You never answered about the exact ratio.  If there are gears involved then the exact ratio would be the gear ratio (47 teeth/50teeth for example).  You can test the ratio to see if it exact by moving a large number of revolutions.  So for example if the ratio is 0.959 and the encoder is 4000 counts per rev then to move exactly 1000 revs would be:
> > >  
> > > 1000 revs x 4000 counts/rev x 0.959 = 3836000 counts.
> > >  
> > > So if you command a move of this the spindle should finish at the same position (within the servo tolerance):
> > >  
> > > MoveRel4=3836000
> > >  
> > > But regardless I will assume the ratio is 0.959 or one rev is 3844 counts.
> > >  
> > > Regarding your question on rpm drops: I was thinking to set the HI/LO Speed range based on the Commanded Speed not the actual speed.  In this case the speed range would not switch if the speed drops.  BTW the speed should not drop as the servo will increase the PWM to maintain the proper RPM.
> > >  
> > > Now that we have the Spindle operating as an Axis we can use the standard Mach3SpindleJog.c  This commands the Spindle Axis to move at the desired speed regardless of what configuration it is (Step/Dir, DAC Servo, PWM, etc...).
> > >  
> > > But I have modified it to automatically set the Speed Range depending on the commanded Speed.
> > >  
> > > I have also modified it for 3844 counts/rev and also assuming that the Mach3 Pulley speed has been set for 2500 RPM
> > >  
> > > Regards
> > > TK 
> > >  
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Sunday, May 20, 2012 1:30 PM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >
> > >  
> > >
> > > Hi Tom,
> > >
> > > Now we have it working :)
> > >
> > > Last email as regards motion, all enabled, right bits, sorry but I did not have DMM connected.
> > >
> > > So as it now works where will the gear come in action? around 700rpm's as earlier discussed?
> > >
> > > Lets take a hypothetical milling with 700rpms set in HI gear and the load is significant so the rpm drops, what will the 'gearing' do? Will it go down to LO to get more power (I assume it is so) and the go up and down Hi to Lo to Hi etc etc or will it stay and wait until next S command is set in Mach3?
> > >
> > > What next?
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > >  
> > > > Looks like our thread got too long and Yahoo didn't accept my last reply.  I've trimmed it down.  Maybe that is also why you were having problems.
> > > >  
> > > > I don't mind working on this at all.  It is something we need to have.  It would be helpful as always if you provided more information in your responses.  For example in your last email when there was no motion you could tell me why there is no motion.  Is the axis enabled?  Are the right bits turned on?  Is there a PWM voltage? 
> > > > Seems like if several of those relays on at the same time you will blow fuses, but I'll assume you did it right...
> > > > Oops I forgot to remember what gear we were in so it was constantly changing gears and forcing the output to zero.
> > > > Try Version 6
> > > > Regards
> > > > TK
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Sunday, May 20, 2012 12:35 PM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > >
> > > >  
> > > >
> > > > Hi Tom,
> > > >
> > > > Went back to the workshop and made a test running only in Hi gear and it sounds OK from 240rpm (jog4=15085) and runs up to 2330rpm.
> > > >
> > > > May be it is just simpler to have it in HI gear all the time instead of having a breakpoint at say 700rpm as discussed before. If need be for very low rpm I can use the mechanical gears that are locked now.
> > > > That is if I loose a lot of power having it in HI gear all the time but gives me the freedom to change rpm's on the fly.
> > > >
> > > > Don't get me wrong here as I appreciate the work you do but I feel that I´m getting to be PITA with this bothering you.
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > >
> >
>
Group: DynoMotion Message: 5020 From: Bengt Sjoelund Date: 5/22/2012
Subject: Re: PWM to VFD
http://youtu.be/-xbV9VQLYS0

Testing low rpm = 300rpm ap 0.5mm unknown steel
Group: DynoMotion Message: 5021 From: Tom Kerekes Date: 5/22/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
Congratulations.  Thanks for the video.  It would have been nice for you to mention KFLOP or Dynomotion.  It is so difficult to get Users to make videos and then when they do they don't mention us.
 
I don't see why there would be a 4 sec delay. Possibly 2 seconds to switch gears.  Maybe you could look for clues.
 
Regarding CW being negative - I think you can revese that by changing the Axis 4 InputGain0 to be a negative number.  But this will cause the servo to have positive feedback (instead of negative feedback - runaway).  So to correct that you will need to reverse how the C program commands the CW and CCW relays.
 
After that Rigid tapping should work.
 
TK

From: Bengt Sjoelund <cnc@...>
To: DynoMotion@yahoogroups.com
Sent: Tuesday, May 22, 2012 5:58 AM
Subject: [DynoMotion] Re: PWM to VFD

 
Hi Tom,

Thank you!! Now it works http://youtu.be/USNiVKyYgmI
Short video just to see motion (spindle set to LO rpm = less noise)

Some odd things though, if I set S2000 and the change to say S800 it takes 4-5 seconds before the spindle revs down.
CW motion Mach shows negative so if S800 then -800 is shown and vice versa if M4 S800 it shows 800.

Will do some more testing and report back.

I am very happy now, almost 2 years since I got the machine and started to investigate the condition as it was sold as-is/dead as regards the CNC part. Looking forward to get all peripherals/add-on's that I have hooked up and working.

Cheers
Bengt


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> ok uploaded V2
>  
> TK
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, May 21, 2012 12:56 PM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> Now we have something from Mach3 but only CCW whatever commanded direction.
>
> M3 S250 goes CCW and runs at 255 and Mach3 shows 249
> M4 S250 as above
>
> M3 S500 goes CCW at 509.6 and Mach3 shows ~498
>
> The exact number must be achieved via trial and error as there is now way I will tear down the spindle head and gearbox so I have to do trials for this, that can be fun :)
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > That would indicate that 3863 is not the exact number.  A quarter turn would be about 1000 counts off,  The servo positioning error is less than 100 counts.  It will be up to you to determine the exact number if you need it.  You can either look at your gears or find it by trial and error.  If the number is exactly correct then you should be able to turn any number of revs and always be within about 100 counts (< 10 degrees).  Note that the "servo error" of 10 degrees does not the reflect the error that threading or rigid tapping will have because the encoder will report the position to 1 count (0.1degree) and the z axis will follow that.
> >  
> >  
> >  
> > in Mach3 | Config | Port&Pins | Spindle : uncheck disable Spindle Relays and uncheck use Spindle Motor Output
> >  
> > in Mach3 | Config | Port&Pins | Motor Outputs : disable Spindle and set xyz step & Dir ports all to 0
> >  
> > Try again while monitoring KMotion Console Screen for Spindle Messages.
> >  
> > Regards
> > TK
> >  
> >  
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, May 21, 2012 5:00 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > The MoveRel4=3863000 stops less than a quarter from start position.
> > In Axis window the DEST is 3835050 and POS 3834978
> >
> > I have created a new folder = Mach3
> > Pictures in there shows my settings within Mach3
> > But I get no action on the spindle
> >
> > Looking at Port and pins I have activated the spindle so the Yellow LED reacts on M3/M4/M5 so I assume that some settings are missing but I cannot figure out what.
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > ok that's progress.
> > >  
> > > You never answered about the exact ratio.  If there are gears involved then the exact ratio would be the gear ratio (47 teeth/50teeth for example).  You can test the ratio to see if it exact by moving a large number of revolutions.  So for example if the ratio is 0.959 and the encoder is 4000 counts per rev then to move exactly 1000 revs would be:
> > >  
> > > 1000 revs x 4000 counts/rev x 0.959 = 3836000 counts.
> > >  
> > > So if you command a move of this the spindle should finish at the same position (within the servo tolerance):
> > >  
> > > MoveRel4=3836000
> > >  
> > > But regardless I will assume the ratio is 0.959 or one rev is 3844 counts.
> > >  
> > > Regarding your question on rpm drops: I was thinking to set the HI/LO Speed range based on the Commanded Speed not the actual speed.  In this case the speed range would not switch if the speed drops.  BTW the speed should not drop as the servo will increase the PWM to maintain the proper RPM.
> > >  
> > > Now that we have the Spindle operating as an Axis we can use the standard Mach3SpindleJog.c  This commands the Spindle Axis to move at the desired speed regardless of what configuration it is (Step/Dir, DAC Servo, PWM, etc...).
> > >  
> > > But I have modified it to automatically set the Speed Range depending on the commanded Speed.
> > >  
> > > I have also modified it for 3844 counts/rev and also assuming that the Mach3 Pulley speed has been set for 2500 RPM
> > >  
> > > Regards
> > > TK 
> > >  
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Sunday, May 20, 2012 1:30 PM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >
> > >  
> > >
> > > Hi Tom,
> > >
> > > Now we have it working :)
> > >
> > > Last email as regards motion, all enabled, right bits, sorry but I did not have DMM connected.
> > >
> > > So as it now works where will the gear come in action? around 700rpm's as earlier discussed?
> > >
> > > Lets take a hypothetical milling with 700rpms set in HI gear and the load is significant so the rpm drops, what will the 'gearing' do? Will it go down to LO to get more power (I assume it is so) and the go up and down Hi to Lo to Hi etc etc or will it stay and wait until next S command is set in Mach3?
> > >
> > > What next?
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > >  
> > > > Looks like our thread got too long and Yahoo didn't accept my last reply.  I've trimmed it down.  Maybe that is also why you were having problems.
> > > >  
> > > > I don't mind working on this at all.  It is something we need to have.  It would be helpful as always if you provided more information in your responses.  For example in your last email when there was no motion you could tell me why there is no motion.  Is the axis enabled?  Are the right bits turned on?  Is there a PWM voltage? 
> > > > Seems like if several of those relays on at the same time you will blow fuses, but I'll assume you did it right...
> > > > Oops I forgot to remember what gear we were in so it was constantly changing gears and forcing the output to zero.
> > > > Try Version 6
> > > > Regards
> > > > TK
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Sunday, May 20, 2012 12:35 PM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > >
> > > >  
> > > >
> > > > Hi Tom,
> > > >
> > > > Went back to the workshop and made a test running only in Hi gear and it sounds OK from 240rpm (jog4=15085) and runs up to 2330rpm.
> > > >
> > > > May be it is just simpler to have it in HI gear all the time instead of having a breakpoint at say 700rpm as discussed before. If need be for very low rpm I can use the mechanical gears that are locked now.
> > > > That is if I loose a lot of power having it in HI gear all the time but gives me the freedom to change rpm's on the fly.
> > > >
> > > > Don't get me wrong here as I appreciate the work you do but I feel that I´m getting to be PITA with this bothering you.
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > >
> >
>



Group: DynoMotion Message: 5022 From: Bengt Sjoelund Date: 5/22/2012
Subject: Re: PWM to VFD
Hi Tom,

Rest assured that there will be information in upcoming videos to your nice products and best of all the superior support. You deserve all credit Tom. Will edit the videos on the tube with KFlop/Kanalog.

Now that the milling machine is working I will have a look for why there is this "- sign" in CW problem in Mach3. If I recall it I have tried changing InputGain and yes it was a runaway. Will try this again as intructed.

I assume it is time to edit my init file to include OutputToPWMandDirGearV6.c as I have to start KMotion and compile/download/run to get Mach3 up and running?

Cheers
Bengt


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Congratulations.  Thanks for the video.  It would have been nice for you to mention KFLOP or Dynomotion.  It is so difficult to get Users to make videos and then when they do they don't mention us.
>  
> I don't see why there would be a 4 sec delay. Possibly 2 seconds to switch gears.  Maybe you could look for clues.
>  
> Regarding CW being negative - I think you can revese that by changing the Axis 4 InputGain0 to be a negative number.  But this will cause the servo to have positive feedback (instead of negative feedback - runaway).  So to correct that you will need to reverse how the C program commands the CW and CCW relays.
>  
> After that Rigid tapping should work.
>  
> TK
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, May 22, 2012 5:58 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>
>  
>
> Hi Tom,
>
> Thank you!! Now it works http://youtu.be/USNiVKyYgmI
> Short video just to see motion (spindle set to LO rpm = less noise)
>
> Some odd things though, if I set S2000 and the change to say S800 it takes 4-5 seconds before the spindle revs down.
> CW motion Mach shows negative so if S800 then -800 is shown and vice versa if M4 S800 it shows 800.
>
> Will do some more testing and report back.
>
> I am very happy now, almost 2 years since I got the machine and started to investigate the condition as it was sold as-is/dead as regards the CNC part. Looking forward to get all peripherals/add-on's that I have hooked up and working.
>
> Cheers
> Bengt
>
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > ok uploaded V2
> >  
> > TK
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, May 21, 2012 12:56 PM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > Now we have something from Mach3 but only CCW whatever commanded direction.
> >
> > M3 S250 goes CCW and runs at 255 and Mach3 shows 249
> > M4 S250 as above
> >
> > M3 S500 goes CCW at 509.6 and Mach3 shows ~498
> >
> > The exact number must be achieved via trial and error as there is now way I will tear down the spindle head and gearbox so I have to do trials for this, that can be fun :)
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > That would indicate that 3863 is not the exact number.  A quarter turn would be about 1000 counts off,  The servo positioning error is less than 100 counts.  It will be up to you to determine the exact number if you need it.  You can either look at your gears or find it by trial and error.  If the number is exactly correct then you should be able to turn any number of revs and always be within about 100 counts (< 10 degrees).  Note that the "servo error" of 10 degrees does not the reflect the error that threading or rigid tapping will have because the encoder will report the position to 1 count (0.1degree) and the z axis will follow that.
> > >  
> > >  
> > >  
> > > in Mach3 | Config | Port&Pins | Spindle : uncheck disable Spindle Relays and uncheck use Spindle Motor Output
> > >  
> > > in Mach3 | Config | Port&Pins | Motor Outputs : disable Spindle and set xyz step & Dir ports all to 0
> > >  
> > > Try again while monitoring KMotion Console Screen for Spindle Messages.
> > >  
> > > Regards
> > > TK
> > >  
> > >  
> > >
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Monday, May 21, 2012 5:00 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > The MoveRel4=3863000 stops less than a quarter from start position.
> > > In Axis window the DEST is 3835050 and POS 3834978
> > >
> > > I have created a new folder = Mach3
> > > Pictures in there shows my settings within Mach3
> > > But I get no action on the spindle
> > >
> > > Looking at Port and pins I have activated the spindle so the Yellow LED reacts on M3/M4/M5 so I assume that some settings are missing but I cannot figure out what.
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > ok that's progress.
> > > > ÃÆ'‚ 
> > > > You never answered about the exact ratio.ÃÆ'‚  If there are gears involved then the exact ratio would be the gear ratio (47 teeth/50teeth for example).ÃÆ'‚  You can test the ratio to see if it exact by moving a large number of revolutions.ÃÆ'‚  So for example if the ratio is 0.959 and the encoder is 4000 counts per rev then to move exactly 1000 revs would be:
> > > > ÃÆ'‚ 
> > > > 1000 revs x 4000 counts/rev x 0.959 = 3836000 counts.
> > > > ÃÆ'‚ 
> > > > So if you command a move of this the spindle should finish at the same position (within the servo tolerance):
> > > > ÃÆ'‚ 
> > > > MoveRel4=3836000
> > > > ÃÆ'‚ 
> > > > But regardless I will assume the ratio is 0.959 or one rev is 3844 counts.
> > > > ÃÆ'‚ 
> > > > Regarding your question on rpm drops: I was thinking to set the HI/LO Speed range based on the Commanded Speed not the actual speed.ÃÆ'‚  In this case the speed range would not switch if the speed drops.ÃÆ'‚  BTW the speed should not drop as the servo will increase the PWM to maintain the proper RPM.
> > > > ÃÆ'‚ 
> > > > Now that we have the Spindle operating as an Axis we can use the standard Mach3SpindleJog.cÃÆ'‚  This commands the Spindle Axis to move at the desired speed regardless of what configuration it is (Step/Dir, DAC Servo, PWM, etc...).
> > > > ÃÆ'‚ 
> > > > But I have modified it to automatically set the Speed Range depending on the commanded Speed.
> > > > ÃÆ'‚ 
> > > > I have also modified it for 3844 counts/rev and also assuming that the Mach3 Pulley speed has been set for 2500 RPM
> > > > ÃÆ'‚ 
> > > > Regards
> > > > TKÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > >
> > > >
> > > > ________________________________
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Sunday, May 20, 2012 1:30 PM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > >
> > > > Hi Tom,
> > > >
> > > > Now we have it working :)
> > > >
> > > > Last email as regards motion, all enabled, right bits, sorry but I did not have DMM connected.
> > > >
> > > > So as it now works where will the gear come in action? around 700rpm's as earlier discussed?
> > > >
> > > > Lets take a hypothetical milling with 700rpms set in HI gear and the load is significant so the rpm drops, what will the 'gearing' do? Will it go down to LO to get more power (I assume it is so) and the go up and down Hi to Lo to Hi etc etc or will it stay and wait until next S command is set in Mach3?
> > > >
> > > > What next?
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'‚ 
> > > > > Looks like our thread got too long and Yahoo didn't accept my last reply.ÃÆ'‚  I've trimmed it down.ÃÆ'‚  Maybe that is alsoÃÆ'‚ why you were having problems.
> > > > > ÃÆ'‚ 
> > > > > I don't mind working on this at all.ÃÆ'‚  It is something we need to have.ÃÆ'‚  It would be helpful as always if you provided more information in your responses.ÃÆ'‚  For example in your last email when there was no motion you could tell me why there is no motion.ÃÆ'‚  Is the axis enabled?ÃÆ'‚  Are the right bits turned on?ÃÆ'‚  Is there a PWM voltage?ÃÆ'‚ 
> > > > > Seems like if several of those relays on at the same time you will blow fuses, but I'll assume you did it right...
> > > > > Oops I forgot to remember what gear we were in so it was constantly changing gears and forcing the output to zero.
> > > > > Try Version 6
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Sunday, May 20, 2012 12:35 PM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > >
> > > > > ÃÆ'‚ 
> > > > >
> > > > > Hi Tom,
> > > > >
> > > > > Went back to the workshop and made a test running only in Hi gear and it sounds OK from 240rpm (jog4=15085) and runs up to 2330rpm.
> > > > >
> > > > > May be it is just simpler to have it in HI gear all the time instead of having a breakpoint at say 700rpm as discussed before. If need be for very low rpm I can use the mechanical gears that are locked now.
> > > > > That is if I loose a lot of power having it in HI gear all the time but gives me the freedom to change rpm's on the fly.
> > > > >
> > > > > Don't get me wrong here as I appreciate the work you do but I feel that IÃÆ'‚´m getting to be PITA with this bothering you.
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 5023 From: Tom Kerekes Date: 5/22/2012
Subject: Re: PWM to VFD
Great.  Yes.  Yes.
 
TK

From: Bengt Sjoelund <cnc@...>
To: DynoMotion@yahoogroups.com
Sent: Tuesday, May 22, 2012 10:34 AM
Subject: [DynoMotion] Re: PWM to VFD

 
Hi Tom,

Rest assured that there will be information in upcoming videos to your nice products and best of all the superior support. You deserve all credit Tom. Will edit the videos on the tube with KFlop/Kanalog.

Now that the milling machine is working I will have a look for why there is this "- sign" in CW problem in Mach3. If I recall it I have tried changing InputGain and yes it was a runaway. Will try this again as intructed.

I assume it is time to edit my init file to include OutputToPWMandDirGearV6.c as I have to start KMotion and compile/download/run to get Mach3 up and running?

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Congratulations.  Thanks for the video.  It would have been nice for you to mention KFLOP or Dynomotion.  It is so difficult to get Users to make videos and then when they do they don't mention us.
>  
> I don't see why there would be a 4 sec delay. Possibly 2 seconds to switch gears.  Maybe you could look for clues.
>  
> Regarding CW being negative - I think you can revese that by changing the Axis 4 InputGain0 to be a negative number.  But this will cause the servo to have positive feedback (instead of negative feedback - runaway).  So to correct that you will need to reverse how the C program commands the CW and CCW relays.
>  
> After that Rigid tapping should work.
>  
> TK
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, May 22, 2012 5:58 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>
>  
>
> Hi Tom,
>
> Thank you!! Now it works http://youtu.be/USNiVKyYgmI
> Short video just to see motion (spindle set to LO rpm = less noise)
>
> Some odd things though, if I set S2000 and the change to say S800 it takes 4-5 seconds before the spindle revs down.
> CW motion Mach shows negative so if S800 then -800 is shown and vice versa if M4 S800 it shows 800.
>
> Will do some more testing and report back.
>
> I am very happy now, almost 2 years since I got the machine and started to investigate the condition as it was sold as-is/dead as regards the CNC part. Looking forward to get all peripherals/add-on's that I have hooked up and working.
>
> Cheers
> Bengt
>
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > ok uploaded V2
> >  
> > TK
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, May 21, 2012 12:56 PM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > Now we have something from Mach3 but only CCW whatever commanded direction.
> >
> > M3 S250 goes CCW and runs at 255 and Mach3 shows 249
> > M4 S250 as above
> >
> > M3 S500 goes CCW at 509.6 and Mach3 shows ~498
> >
> > The exact number must be achieved via trial and error as there is now way I will tear down the spindle head and gearbox so I have to do trials for this, that can be fun :)
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > That would indicate that 3863 is not the exact number.  A quarter turn would be about 1000 counts off,  The servo positioning error is less than 100 counts.  It will be up to you to determine the exact number if you need it.  You can either look at your gears or find it by trial and error.  If the number is exactly correct then you should be able to turn any number of revs and always be within about 100 counts (< 10 degrees).  Note that the "servo error" of 10 degrees does not the reflect the error that threading or rigid tapping will have because the encoder will report the position to 1 count (0.1degree) and the z axis will follow that.
> > >  
> > >  
> > >  
> > > in Mach3 | Config | Port&Pins | Spindle : uncheck disable Spindle Relays and uncheck use Spindle Motor Output
> > >  
> > > in Mach3 | Config | Port&Pins | Motor Outputs : disable Spindle and set xyz step & Dir ports all to 0
> > >  
> > > Try again while monitoring KMotion Console Screen for Spindle Messages.
> > >  
> > > Regards
> > > TK
> > >  
> > >  
> > >
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Monday, May 21, 2012 5:00 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > The MoveRel4=3863000 stops less than a quarter from start position.
> > > In Axis window the DEST is 3835050 and POS 3834978
> > >
> > > I have created a new folder = Mach3
> > > Pictures in there shows my settings within Mach3
> > > But I get no action on the spindle
> > >
> > > Looking at Port and pins I have activated the spindle so the Yellow LED reacts on M3/M4/M5 so I assume that some settings are missing but I cannot figure out what.
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > ok that's progress.
> > > > ÃÆ'‚ 
> > > > You never answered about the exact ratio.ÃÆ'‚  If there are gears involved then the exact ratio would be the gear ratio (47 teeth/50teeth for example).ÃÆ'‚  You can test the ratio to see if it exact by moving a large number of revolutions.ÃÆ'‚  So for example if the ratio is 0.959 and the encoder is 4000 counts per rev then to move exactly 1000 revs would be:
> > > > ÃÆ'‚ 
> > > > 1000 revs x 4000 counts/rev x 0.959 = 3836000 counts.
> > > > ÃÆ'‚ 
> > > > So if you command a move of this the spindle should finish at the same position (within the servo tolerance):
> > > > ÃÆ'‚ 
> > > > MoveRel4=3836000
> > > > ÃÆ'‚ 
> > > > But regardless I will assume the ratio is 0.959 or one rev is 3844 counts.
> > > > ÃÆ'‚ 
> > > > Regarding your question on rpm drops: I was thinking to set the HI/LO Speed range based on the Commanded Speed not the actual speed.ÃÆ'‚  In this case the speed range would not switch if the speed drops.ÃÆ'‚  BTW the speed should not drop as the servo will increase the PWM to maintain the proper RPM.
> > > > ÃÆ'‚ 
> > > > Now that we have the Spindle operating as an Axis we can use the standard Mach3SpindleJog.cÃÆ'‚  This commands the Spindle Axis to move at the desired speed regardless of what configuration it is (Step/Dir, DAC Servo, PWM, etc...).
> > > > ÃÆ'‚ 
> > > > But I have modified it to automatically set the Speed Range depending on the commanded Speed.
> > > > ÃÆ'‚ 
> > > > I have also modified it for 3844 counts/rev and also assuming that the Mach3 Pulley speed has been set for 2500 RPM
> > > > ÃÆ'‚ 
> > > > Regards
> > > > TKÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > >
> > > >
> > > > ________________________________
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Sunday, May 20, 2012 1:30 PM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > >
> > > > Hi Tom,
> > > >
> > > > Now we have it working :)
> > > >
> > > > Last email as regards motion, all enabled, right bits, sorry but I did not have DMM connected.
> > > >
> > > > So as it now works where will the gear come in action? around 700rpm's as earlier discussed?
> > > >
> > > > Lets take a hypothetical milling with 700rpms set in HI gear and the load is significant so the rpm drops, what will the 'gearing' do? Will it go down to LO to get more power (I assume it is so) and the go up and down Hi to Lo to Hi etc etc or will it stay and wait until next S command is set in Mach3?
> > > >
> > > > What next?
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'‚ 
> > > > > Looks like our thread got too long and Yahoo didn't accept my last reply.ÃÆ'‚  I've trimmed it down.ÃÆ'‚  Maybe that is alsoÃÆ'‚ why you were having problems.
> > > > > ÃÆ'‚ 
> > > > > I don't mind working on this at all.ÃÆ'‚  It is something we need to have.ÃÆ'‚  It would be helpful as always if you provided more information in your responses.ÃÆ'‚  For example in your last email when there was no motion you could tell me why there is no motion.ÃÆ'‚  Is the axis enabled?ÃÆ'‚  Are the right bits turned on?ÃÆ'‚  Is there a PWM voltage?ÃÆ'‚ 
> > > > > Seems like if several of those relays on at the same time you will blow fuses, but I'll assume you did it right...
> > > > > Oops I forgot to remember what gear we were in so it was constantly changing gears and forcing the output to zero.
> > > > > Try Version 6
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Sunday, May 20, 2012 12:35 PM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > >
> > > > > ÃÆ'‚ 
> > > > >
> > > > > Hi Tom,
> > > > >
> > > > > Went back to the workshop and made a test running only in Hi gear and it sounds OK from 240rpm (jog4=15085) and runs up to 2330rpm.
> > > > >
> > > > > May be it is just simpler to have it in HI gear all the time instead of having a breakpoint at say 700rpm as discussed before. If need be for very low rpm I can use the mechanical gears that are locked now.
> > > > > That is if I loose a lot of power having it in HI gear all the time but gives me the freedom to change rpm's on the fly.
> > > > >
> > > > > Don't get me wrong here as I appreciate the work you do but I feel that IÃÆ'‚´m getting to be PITA with this bothering you.
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > >
> > >
> >
>



Group: DynoMotion Message: 5024 From: Bengt Sjoelund Date: 5/22/2012
Subject: Re: PWM to VFD
Hi Tom,

Uploaded a new init file /PWMtoVFD/Mach3/combimill%203axis%20pwm.c
Can you be so kind and have a look if it is correctly edited.

ch4 was apparently not OK as I had to edit maxOutput to 255 and I wonder if Integrator value is correct?

Cheers
Bengt


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Great.  Yes.  Yes.
>  
> TK
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, May 22, 2012 10:34 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>
>  
>
> Hi Tom,
>
> Rest assured that there will be information in upcoming videos to your nice products and best of all the superior support. You deserve all credit Tom. Will edit the videos on the tube with KFlop/Kanalog.
>
> Now that the milling machine is working I will have a look for why there is this "- sign" in CW problem in Mach3. If I recall it I have tried changing InputGain and yes it was a runaway. Will try this again as intructed.
>
> I assume it is time to edit my init file to include OutputToPWMandDirGearV6.c as I have to start KMotion and compile/download/run to get Mach3 up and running?
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > Congratulations.  Thanks for the video.  It would have been nice for you to mention KFLOP or Dynomotion.  It is so difficult to get Users to make videos and then when they do they don't mention us.
> >  
> > I don't see why there would be a 4 sec delay. Possibly 2 seconds to switch gears.  Maybe you could look for clues.
> >  
> > Regarding CW being negative - I think you can revese that by changing the Axis 4 InputGain0 to be a negative number.  But this will cause the servo to have positive feedback (instead of negative feedback - runaway).  So to correct that you will need to reverse how the C program commands the CW and CCW relays.
> >  
> > After that Rigid tapping should work.
> >  
> > TK
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tuesday, May 22, 2012 5:58 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >
> >  
> >
> > Hi Tom,
> >
> > Thank you!! Now it works http://youtu.be/USNiVKyYgmI
> > Short video just to see motion (spindle set to LO rpm = less noise)
> >
> > Some odd things though, if I set S2000 and the change to say S800 it takes 4-5 seconds before the spindle revs down.
> > CW motion Mach shows negative so if S800 then -800 is shown and vice versa if M4 S800 it shows 800.
> >
> > Will do some more testing and report back.
> >
> > I am very happy now, almost 2 years since I got the machine and started to investigate the condition as it was sold as-is/dead as regards the CNC part. Looking forward to get all peripherals/add-on's that I have hooked up and working.
> >
> > Cheers
> > Bengt
> >
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > ok uploaded V2
> > >  
> > > TK
> > >
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Monday, May 21, 2012 12:56 PM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > Now we have something from Mach3 but only CCW whatever commanded direction.
> > >
> > > M3 S250 goes CCW and runs at 255 and Mach3 shows 249
> > > M4 S250 as above
> > >
> > > M3 S500 goes CCW at 509.6 and Mach3 shows ~498
> > >
> > > The exact number must be achieved via trial and error as there is now way I will tear down the spindle head and gearbox so I have to do trials for this, that can be fun :)
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > That would indicate that 3863 is not the exact number.ÃÆ'‚  A quarter turn would be about 1000 counts off,ÃÆ'‚  The servo positioning error is less than 100 counts.ÃÆ'‚  It will be up to you to determine the exact number if you need it.ÃÆ'‚  You can either look at your gears or find it by trial and error.ÃÆ'‚  If the number is exactly correctÃÆ'‚ then you should be able to turn any number of revs and always be within about 100 counts (< 10 degrees).ÃÆ'‚  Note that the "servo error" of 10 degrees does not the reflect the error that threading or rigid tapping will have because the encoder will report the position to 1 count (0.1degree) and the z axis will follow that.
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > > in Mach3 | Config | Port&Pins | Spindle : uncheck disable Spindle Relays and uncheck use Spindle Motor Output
> > > > ÃÆ'‚ 
> > > > in Mach3 | Config | Port&Pins | Motor Outputs : disable Spindle and set xyz step & Dir ports all to 0
> > > > ÃÆ'‚ 
> > > > Try again while monitoring KMotion Console Screen for Spindle Messages.
> > > > ÃÆ'‚ 
> > > > Regards
> > > > TK
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Monday, May 21, 2012 5:00 AM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > >
> > > > The MoveRel4=3863000 stops less than a quarter from start position.
> > > > In Axis window the DEST is 3835050 and POS 3834978
> > > >
> > > > I have created a new folder = Mach3
> > > > Pictures in there shows my settings within Mach3
> > > > But I get no action on the spindle
> > > >
> > > > Looking at Port and pins I have activated the spindle so the Yellow LED reacts on M3/M4/M5 so I assume that some settings are missing but I cannot figure out what.
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ok that's progress.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > You never answered about the exact ratio.ÃÆ'Æ'‚ÃÆ'‚  If there are gears involved then the exact ratio would be the gear ratio (47 teeth/50teeth for example).ÃÆ'Æ'‚ÃÆ'‚  You can test the ratio to see if it exact by moving a large number of revolutions.ÃÆ'Æ'‚ÃÆ'‚  So for example if the ratio is 0.959 and the encoder is 4000 counts per rev then to move exactly 1000 revs would be:
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > 1000 revs x 4000 counts/rev x 0.959 = 3836000 counts.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > So if you command a move of this the spindle should finish at the same position (within the servo tolerance):
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > MoveRel4=3836000
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > But regardless I will assume the ratio is 0.959 or one rev is 3844 counts.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Regarding your question on rpm drops: I was thinking to set the HI/LO Speed range based on the Commanded Speed not the actual speed.ÃÆ'Æ'‚ÃÆ'‚  In this case the speed range would not switch if the speed drops.ÃÆ'Æ'‚ÃÆ'‚  BTW the speed should not drop as the servo will increase the PWM to maintain the proper RPM.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Now that we have the Spindle operating as an Axis we can use the standard Mach3SpindleJog.cÃÆ'Æ'‚ÃÆ'‚  This commands the Spindle Axis to move at the desired speed regardless of what configuration it is (Step/Dir, DAC Servo, PWM, etc...).
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > But I have modified it to automatically set the Speed Range depending on the commanded Speed.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > I have also modified it for 3844 counts/rev and also assuming that the Mach3 Pulley speed has been set for 2500 RPM
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Regards
> > > > > TKÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Sunday, May 20, 2012 1:30 PM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > > Hi Tom,
> > > > >
> > > > > Now we have it working :)
> > > > >
> > > > > Last email as regards motion, all enabled, right bits, sorry but I did not have DMM connected.
> > > > >
> > > > > So as it now works where will the gear come in action? around 700rpm's as earlier discussed?
> > > > >
> > > > > Lets take a hypothetical milling with 700rpms set in HI gear and the load is significant so the rpm drops, what will the 'gearing' do? Will it go down to LO to get more power (I assume it is so) and the go up and down Hi to Lo to Hi etc etc or will it stay and wait until next S command is set in Mach3?
> > > > >
> > > > > What next?
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Looks like our thread got too long and Yahoo didn't accept my last reply.ÃÆ'Æ'‚ÃÆ'‚  I've trimmed it down.ÃÆ'Æ'‚ÃÆ'‚  Maybe that is alsoÃÆ'Æ'‚ÃÆ'‚ why you were having problems.
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > I don't mind working on this at all.ÃÆ'Æ'‚ÃÆ'‚  It is something we need to have.ÃÆ'Æ'‚ÃÆ'‚  It would be helpful as always if you provided more information in your responses.ÃÆ'Æ'‚ÃÆ'‚  For example in your last email when there was no motion you could tell me why there is no motion.ÃÆ'Æ'‚ÃÆ'‚  Is the axis enabled?ÃÆ'Æ'‚ÃÆ'‚  Are the right bits turned on?ÃÆ'Æ'‚ÃÆ'‚  Is there a PWM voltage?ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Seems like if several of those relays on at the same time you will blow fuses, but I'll assume you did it right...
> > > > > > Oops I forgot to remember what gear we were in so it was constantly changing gears and forcing the output to zero.
> > > > > > Try Version 6
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Sunday, May 20, 2012 12:35 PM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > Hi Tom,
> > > > > >
> > > > > > Went back to the workshop and made a test running only in Hi gear and it sounds OK from 240rpm (jog4=15085) and runs up to 2330rpm.
> > > > > >
> > > > > > May be it is just simpler to have it in HI gear all the time instead of having a breakpoint at say 700rpm as discussed before. If need be for very low rpm I can use the mechanical gears that are locked now.
> > > > > > That is if I loose a lot of power having it in HI gear all the time but gives me the freedom to change rpm's on the fly.
> > > > > >
> > > > > > Don't get me wrong here as I appreciate the work you do but I feel that IÃÆ'Æ'‚ÃÆ'‚´m getting to be PITA with this bothering you.
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 5026 From: Tom Kerekes Date: 5/22/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
Interesting you put the forever loop towards the beginning rather than towards the end.  This is a common error I see a lot but can't understand how someone could do this.  Obviously it is a lack of understanding of what a loop is.  Or specifically a "forever loop".  I'm curious can you identify which lines in the program form a forever loop?
 
Regards
TK  

From: Bengt Sjoelund <cnc@...>
To: DynoMotion@yahoogroups.com
Sent: Tuesday, May 22, 2012 1:19 PM
Subject: [DynoMotion] Re: PWM to VFD

 
Hi Tom,

Uploaded a new init file /PWMtoVFD/Mach3/combimill%203axis%20pwm.c
Can you be so kind and have a look if it is correctly edited.

ch4 was apparently not OK as I had to edit maxOutput to 255 and I wonder if Integrator value is correct?

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Great.  Yes.  Yes.
>  
> TK
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, May 22, 2012 10:34 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>
>  
>
> Hi Tom,
>
> Rest assured that there will be information in upcoming videos to your nice products and best of all the superior support. You deserve all credit Tom. Will edit the videos on the tube with KFlop/Kanalog.
>
> Now that the milling machine is working I will have a look for why there is this "- sign" in CW problem in Mach3. If I recall it I have tried changing InputGain and yes it was a runaway. Will try this again as intructed.
>
> I assume it is time to edit my init file to include OutputToPWMandDirGearV6.c as I have to start KMotion and compile/download/run to get Mach3 up and running?
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > Congratulations.  Thanks for the video.  It would have been nice for you to mention KFLOP or Dynomotion.  It is so difficult to get Users to make videos and then when they do they don't mention us.
> >  
> > I don't see why there would be a 4 sec delay. Possibly 2 seconds to switch gears.  Maybe you could look for clues.
> >  
> > Regarding CW being negative - I think you can revese that by changing the Axis 4 InputGain0 to be a negative number.  But this will cause the servo to have positive feedback (instead of negative feedback - runaway).  So to correct that you will need to reverse how the C program commands the CW and CCW relays.
> >  
> > After that Rigid tapping should work.
> >  
> > TK
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tuesday, May 22, 2012 5:58 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >
> >  
> >
> > Hi Tom,
> >
> > Thank you!! Now it works http://youtu.be/USNiVKyYgmI
> > Short video just to see motion (spindle set to LO rpm = less noise)
> >
> > Some odd things though, if I set S2000 and the change to say S800 it takes 4-5 seconds before the spindle revs down.
> > CW motion Mach shows negative so if S800 then -800 is shown and vice versa if M4 S800 it shows 800.
> >
> > Will do some more testing and report back.
> >
> > I am very happy now, almost 2 years since I got the machine and started to investigate the condition as it was sold as-is/dead as regards the CNC part. Looking forward to get all peripherals/add-on's that I have hooked up and working.
> >
> > Cheers
> > Bengt
> >
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > ok uploaded V2
> > >  
> > > TK
> > >
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Monday, May 21, 2012 12:56 PM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > Now we have something from Mach3 but only CCW whatever commanded direction.
> > >
> > > M3 S250 goes CCW and runs at 255 and Mach3 shows 249
> > > M4 S250 as above
> > >
> > > M3 S500 goes CCW at 509.6 and Mach3 shows ~498
> > >
> > > The exact number must be achieved via trial and error as there is now way I will tear down the spindle head and gearbox so I have to do trials for this, that can be fun :)
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > That would indicate that 3863 is not the exact number.ÃÆ'‚  A quarter turn would be about 1000 counts off,ÃÆ'‚  The servo positioning error is less than 100 counts.ÃÆ'‚  It will be up to you to determine the exact number if you need it.ÃÆ'‚  You can either look at your gears or find it by trial and error.ÃÆ'‚  If the number is exactly correctÃÆ'‚ then you should be able to turn any number of revs and always be within about 100 counts (< 10 degrees).ÃÆ'‚  Note that the "servo error" of 10 degrees does not the reflect the error that threading or rigid tapping will have because the encoder will report the position to 1 count (0.1degree) and the z axis will follow that.
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > > in Mach3 | Config | Port&Pins | Spindle : uncheck disable Spindle Relays and uncheck use Spindle Motor Output
> > > > ÃÆ'‚ 
> > > > in Mach3 | Config | Port&Pins | Motor Outputs : disable Spindle and set xyz step & Dir ports all to 0
> > > > ÃÆ'‚ 
> > > > Try again while monitoring KMotion Console Screen for Spindle Messages.
> > > > ÃÆ'‚ 
> > > > Regards
> > > > TK
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Monday, May 21, 2012 5:00 AM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > >
> > > > The MoveRel4=3863000 stops less than a quarter from start position.
> > > > In Axis window the DEST is 3835050 and POS 3834978
> > > >
> > > > I have created a new folder = Mach3
> > > > Pictures in there shows my settings within Mach3
> > > > But I get no action on the spindle
> > > >
> > > > Looking at Port and pins I have activated the spindle so the Yellow LED reacts on M3/M4/M5 so I assume that some settings are missing but I cannot figure out what.
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ok that's progress.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > You never answered about the exact ratio.ÃÆ'Æ'‚ÃÆ'‚  If there are gears involved then the exact ratio would be the gear ratio (47 teeth/50teeth for example).ÃÆ'Æ'‚ÃÆ'‚  You can test the ratio to see if it exact by moving a large number of revolutions.ÃÆ'Æ'‚ÃÆ'‚  So for example if the ratio is 0.959 and the encoder is 4000 counts per rev then to move exactly 1000 revs would be:
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > 1000 revs x 4000 counts/rev x 0.959 = 3836000 counts.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > So if you command a move of this the spindle should finish at the same position (within the servo tolerance):
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > MoveRel4=3836000
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > But regardless I will assume the ratio is 0.959 or one rev is 3844 counts.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Regarding your question on rpm drops: I was thinking to set the HI/LO Speed range based on the Commanded Speed not the actual speed.ÃÆ'Æ'‚ÃÆ'‚  In this case the speed range would not switch if the speed drops.ÃÆ'Æ'‚ÃÆ'‚  BTW the speed should not drop as the servo will increase the PWM to maintain the proper RPM.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Now that we have the Spindle operating as an Axis we can use the standard Mach3SpindleJog.cÃÆ'Æ'‚ÃÆ'‚  This commands the Spindle Axis to move at the desired speed regardless of what configuration it is (Step/Dir, DAC Servo, PWM, etc...).
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > But I have modified it to automatically set the Speed Range depending on the commanded Speed.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > I have also modified it for 3844 counts/rev and also assuming that the Mach3 Pulley speed has been set for 2500 RPM
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Regards
> > > > > TKÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Sunday, May 20, 2012 1:30 PM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > > Hi Tom,
> > > > >
> > > > > Now we have it working :)
> > > > >
> > > > > Last email as regards motion, all enabled, right bits, sorry but I did not have DMM connected.
> > > > >
> > > > > So as it now works where will the gear come in action? around 700rpm's as earlier discussed?
> > > > >
> > > > > Lets take a hypothetical milling with 700rpms set in HI gear and the load is significant so the rpm drops, what will the 'gearing' do? Will it go down to LO to get more power (I assume it is so) and the go up and down Hi to Lo to Hi etc etc or will it stay and wait until next S command is set in Mach3?
> > > > >
> > > > > What next?
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Looks like our thread got too long and Yahoo didn't accept my last reply.ÃÆ'Æ'‚ÃÆ'‚  I've trimmed it down.ÃÆ'Æ'‚ÃÆ'‚  Maybe that is alsoÃÆ'Æ'‚ÃÆ'‚ why you were having problems.
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > I don't mind working on this at all.ÃÆ'Æ'‚ÃÆ'‚  It is something we need to have.ÃÆ'Æ'‚ÃÆ'‚  It would be helpful as always if you provided more information in your responses.ÃÆ'Æ'‚ÃÆ'‚  For example in your last email when there was no motion you could tell me why there is no motion.ÃÆ'Æ'‚ÃÆ'‚  Is the axis enabled?ÃÆ'Æ'‚ÃÆ'‚  Are the right bits turned on?ÃÆ'Æ'‚ÃÆ'‚  Is there a PWM voltage?ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Seems like if several of those relays on at the same time you will blow fuses, but I'll assume you did it right...
> > > > > > Oops I forgot to remember what gear we were in so it was constantly changing gears and forcing the output to zero.
> > > > > > Try Version 6
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Sunday, May 20, 2012 12:35 PM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > Hi Tom,
> > > > > >
> > > > > > Went back to the workshop and made a test running only in Hi gear and it sounds OK from 240rpm (jog4=15085) and runs up to 2330rpm.
> > > > > >
> > > > > > May be it is just simpler to have it in HI gear all the time instead of having a breakpoint at say 700rpm as discussed before. If need be for very low rpm I can use the mechanical gears that are locked now.
> > > > > > That is if I loose a lot of power having it in HI gear all the time but gives me the freedom to change rpm's on the fly.
> > > > > >
> > > > > > Don't get me wrong here as I appreciate the work you do but I feel that IÃÆ'Æ'‚ÃÆ'‚´m getting to be PITA with this bothering you.
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > >
> > > >
> > >
> >
>



Group: DynoMotion Message: 5027 From: Bengt Sjoelund Date: 5/22/2012
Subject: Re: PWM to VFD
Hi Tom,

As I am not a programmer it is very easy to do all sorts of errors.

for (;;) starts the loop

New version uploaded Rev2

Cheers
Bengt



--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Interesting you put the forever loop towards the beginning rather than towards the end.  This is a common error I see a lot but can't understand how someone could do this.  Obviously it is a lack of understanding of what a loop is.  Or specifically a "forever loop".  I'm curious can you identify which lines in the program form a forever loop?
>  
> Regards
> TK  
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, May 22, 2012 1:19 PM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>
>  
>
> Hi Tom,
>
> Uploaded a new init file /PWMtoVFD/Mach3/combimill%203axis%20pwm.c
> Can you be so kind and have a look if it is correctly edited.
>
> ch4 was apparently not OK as I had to edit maxOutput to 255 and I wonder if Integrator value is correct?
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Great.  Yes.  Yes.
> >  
> > TK
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tuesday, May 22, 2012 10:34 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >
> >  
> >
> > Hi Tom,
> >
> > Rest assured that there will be information in upcoming videos to your nice products and best of all the superior support. You deserve all credit Tom. Will edit the videos on the tube with KFlop/Kanalog.
> >
> > Now that the milling machine is working I will have a look for why there is this "- sign" in CW problem in Mach3. If I recall it I have tried changing InputGain and yes it was a runaway. Will try this again as intructed.
> >
> > I assume it is time to edit my init file to include OutputToPWMandDirGearV6.c as I have to start KMotion and compile/download/run to get Mach3 up and running?
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > Congratulations.  Thanks for the video.  It would have been nice for you to mention KFLOP or Dynomotion.  It is so difficult to get Users to make videos and then when they do they don't mention us.
> > >  
> > > I don't see why there would be a 4 sec delay. Possibly 2 seconds to switch gears.  Maybe you could look for clues.
> > >  
> > > Regarding CW being negative - I think you can revese that by changing the Axis 4 InputGain0 to be a negative number.  But this will cause the servo to have positive feedback (instead of negative feedback - runaway).  So to correct that you will need to reverse how the C program commands the CW and CCW relays.
> > >  
> > > After that Rigid tapping should work.
> > >  
> > > TK
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tuesday, May 22, 2012 5:58 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >
> > >  
> > >
> > > Hi Tom,
> > >
> > > Thank you!! Now it works http://youtu.be/USNiVKyYgmI
> > > Short video just to see motion (spindle set to LO rpm = less noise)
> > >
> > > Some odd things though, if I set S2000 and the change to say S800 it takes 4-5 seconds before the spindle revs down.
> > > CW motion Mach shows negative so if S800 then -800 is shown and vice versa if M4 S800 it shows 800.
> > >
> > > Will do some more testing and report back.
> > >
> > > I am very happy now, almost 2 years since I got the machine and started to investigate the condition as it was sold as-is/dead as regards the CNC part. Looking forward to get all peripherals/add-on's that I have hooked up and working.
> > >
> > > Cheers
> > > Bengt
> > >
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > ok uploaded V2
> > > > ÃÆ'‚ 
> > > > TK
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Monday, May 21, 2012 12:56 PM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > >
> > > > Now we have something from Mach3 but only CCW whatever commanded direction.
> > > >
> > > > M3 S250 goes CCW and runs at 255 and Mach3 shows 249
> > > > M4 S250 as above
> > > >
> > > > M3 S500 goes CCW at 509.6 and Mach3 shows ~498
> > > >
> > > > The exact number must be achieved via trial and error as there is now way I will tear down the spindle head and gearbox so I have to do trials for this, that can be fun :)
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > That would indicate that 3863 is not the exact number.ÃÆ'Æ'‚ÃÆ'‚  A quarter turn would be about 1000 counts off,ÃÆ'Æ'‚ÃÆ'‚  The servo positioning error is less than 100 counts.ÃÆ'Æ'‚ÃÆ'‚  It will be up to you to determine the exact number if you need it.ÃÆ'Æ'‚ÃÆ'‚  You can either look at your gears or find it by trial and error.ÃÆ'Æ'‚ÃÆ'‚  If the number is exactly correctÃÆ'Æ'‚ÃÆ'‚ then you should be able to turn any number of revs and always be within about 100 counts (< 10 degrees).ÃÆ'Æ'‚ÃÆ'‚  Note that the "servo error" of 10 degrees does not the reflect the error that threading or rigid tapping will have because the encoder will report the position to 1 count (0.1degree) and the z axis will follow that.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > in Mach3 | Config | Port&Pins | Spindle : uncheck disable Spindle Relays and uncheck use Spindle Motor Output
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > in Mach3 | Config | Port&Pins | Motor Outputs : disable Spindle and set xyz step & Dir ports all to 0
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Try again while monitoring KMotion Console Screen for Spindle Messages.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Regards
> > > > > TK
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Monday, May 21, 2012 5:00 AM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom,
> > > > >
> > > > > The MoveRel4=3863000 stops less than a quarter from start position.
> > > > > In Axis window the DEST is 3835050 and POS 3834978
> > > > >
> > > > > I have created a new folder = Mach3
> > > > > Pictures in there shows my settings within Mach3
> > > > > But I get no action on the spindle
> > > > >
> > > > > Looking at Port and pins I have activated the spindle so the Yellow LED reacts on M3/M4/M5 so I assume that some settings are missing but I cannot figure out what.
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ok that's progress.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > You never answered about the exact ratio.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  If there are gears involved then the exact ratio would be the gear ratio (47 teeth/50teeth for example).ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You can test the ratio to see if it exact by moving a large number of revolutions.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So for example if the ratio is 0.959 and the encoder is 4000 counts per rev then to move exactly 1000 revs would be:
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > 1000 revs x 4000 counts/rev x 0.959 = 3836000 counts.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > So if you command a move of this the spindle should finish at the same position (within the servo tolerance):
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > MoveRel4=3836000
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > But regardless I will assume the ratio is 0.959 or one rev is 3844 counts.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Regarding your question on rpm drops: I was thinking to set the HI/LO Speed range based on the Commanded Speed not the actual speed.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  In this case the speed range would not switch if the speed drops.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  BTW the speed should not drop as the servo will increase the PWM to maintain the proper RPM.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Now that we have the Spindle operating as an Axis we can use the standard Mach3SpindleJog.cÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This commands the Spindle Axis to move at the desired speed regardless of what configuration it is (Step/Dir, DAC Servo, PWM, etc...).
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > But I have modified it to automatically set the Speed Range depending on the commanded Speed.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > I have also modified it for 3844 counts/rev and also assuming that the Mach3 Pulley speed has been set for 2500 RPM
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Regards
> > > > > > TKÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Sunday, May 20, 2012 1:30 PM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > Hi Tom,
> > > > > >
> > > > > > Now we have it working :)
> > > > > >
> > > > > > Last email as regards motion, all enabled, right bits, sorry but I did not have DMM connected.
> > > > > >
> > > > > > So as it now works where will the gear come in action? around 700rpm's as earlier discussed?
> > > > > >
> > > > > > Lets take a hypothetical milling with 700rpms set in HI gear and the load is significant so the rpm drops, what will the 'gearing' do? Will it go down to LO to get more power (I assume it is so) and the go up and down Hi to Lo to Hi etc etc or will it stay and wait until next S command is set in Mach3?
> > > > > >
> > > > > > What next?
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Bengt,
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Looks like our thread got too long and Yahoo didn't accept my last reply.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I've trimmed it down.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Maybe that is alsoÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ why you were having problems.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > I don't mind working on this at all.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It is something we need to have.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It would be helpful as always if you provided more information in your responses.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  For example in your last email when there was no motion you could tell me why there is no motion.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Is the axis enabled?ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Are the right bits turned on?ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Is there a PWM voltage?ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Seems like if several of those relays on at the same time you will blow fuses, but I'll assume you did it right...
> > > > > > > Oops I forgot to remember what gear we were in so it was constantly changing gears and forcing the output to zero.
> > > > > > > Try Version 6
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Sunday, May 20, 2012 12:35 PM
> > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > >
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > Went back to the workshop and made a test running only in Hi gear and it sounds OK from 240rpm (jog4=15085) and runs up to 2330rpm.
> > > > > > >
> > > > > > > May be it is just simpler to have it in HI gear all the time instead of having a breakpoint at say 700rpm as discussed before. If need be for very low rpm I can use the mechanical gears that are locked now.
> > > > > > > That is if I loose a lot of power having it in HI gear all the time but gives me the freedom to change rpm's on the fly.
> > > > > > >
> > > > > > > Don't get me wrong here as I appreciate the work you do but I feel that IÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚´m getting to be PITA with this bothering you.
> > > > > > >
> > > > > > > Cheers
> > > > > > > Bengt
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 5030 From: Brad Murry Date: 5/22/2012
Subject: Re: PWM to VFD

Bengt,

 

I am a programmer and errors are easy for me too ;)

 

Hope you get all this worked out before my machine is done….

 

Cheers,

Brad Murry

 

 

From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of Bengt Sjoelund
Sent: Tuesday, May 22, 2012 1:58 PM
To: DynoMotion@yahoogroups.com
Subject: [DynoMotion] Re: PWM to VFD

 

 

Hi Tom,

As I am not a programmer it is very easy to do all sorts of errors.

for (;;) starts the loop

New version uploaded Rev2

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Interesting you put the forever loop towards the beginning rather than towards the end.  This is a common error I see a lot but can't understand how someone could do this.  Obviously it is a lack of understanding of what a loop is.  Or specifically a "forever loop".  I'm curious can you identify which lines in the program form a forever loop?
>  
> Regards
> TK  
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, May 22, 2012 1:19 PM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>
>  
>
> Hi Tom,
>
> Uploaded a new init file /PWMtoVFD/Mach3/combimill%203axis%20pwm.c
> Can you be so kind and have a look if it is correctly edited.
>
> ch4 was apparently not OK as I had to edit maxOutput to 255 and I wonder if Integrator value is correct?
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Great.  Yes.  Yes.
> >  
> > TK
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tuesday, May 22, 2012 10:34 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >
> >  
> >
> > Hi Tom,
> >
> > Rest assured that there will be information in upcoming videos to your nice products and best of all the superior support. You deserve all credit Tom. Will edit the videos on the tube with KFlop/Kanalog.
> >
> > Now that the milling machine is working I will have a look for why there is this "- sign" in CW problem in Mach3. If I recall it I have tried changing InputGain and yes it was a runaway. Will try this again as intructed.
> >
> > I assume it is time to edit my init file to include OutputToPWMandDirGearV6.c as I have to start KMotion and compile/download/run to get Mach3 up and running?
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > Congratulations.  Thanks for the video.  It would have been nice for you to mention KFLOP or Dynomotion.  It is so difficult to get Users to make videos and then when they do they don't mention us.
> > >  
> > > I don't see why there would be a 4 sec delay. Possibly 2 seconds to switch gears.  Maybe you could look for clues.
> > >  
> > > Regarding CW being negative - I think you can revese that by changing the Axis 4 InputGain0 to be a negative number.  But this will cause the servo to have positive feedback (instead of negative feedback - runaway).  So to correct that you will need to reverse how the C program commands the CW and CCW relays.
> > >  
> > > After that Rigid tapping should work.
> > >  
> > > TK
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tuesday, May 22, 2012 5:58 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >
> > >  
> > >
> > > Hi Tom,
> > >
> > > Thank you!! Now it works http://youtu.be/USNiVKyYgmI
> > > Short video just to see motion (spindle set to LO rpm = less noise)
> > >
> > > Some odd things though, if I set S2000 and the change to say S800 it takes 4-5 seconds before the spindle revs down.
> > > CW motion Mach shows negative so if S800 then -800 is shown and vice versa if M4 S800 it shows 800.
> > >
> > > Will do some more testing and report back.
> > >
> > > I am very happy now, almost 2 years since I got the machine and started to investigate the condition as it was sold as-is/dead as regards the CNC part. Looking forward to get all peripherals/add-on's that I have hooked up and working.
> > >
> > > Cheers
> > > Bengt
> > >
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > ok uploaded V2
> > > > ÃÆ'‚ 
> > > > TK
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Monday, May 21, 2012 12:56 PM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > >
> > > > Now we have something from Mach3 but only CCW whatever commanded direction.
> > > >
> > > > M3 S250 goes CCW and runs at 255 and Mach3 shows 249
> > > > M4 S250 as above
> > > >
> > > > M3 S500 goes CCW at 509.6 and Mach3 shows ~498
> > > >
> > > > The exact number must be achieved via trial and error as there is now way I will tear down the spindle head and gearbox so I have to do trials for this, that can be fun :)
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > That would indicate that 3863 is not the exact number.ÃÆ'Æ'‚ÃÆ'‚  A quarter turn would be about 1000 counts off,ÃÆ'Æ'‚ÃÆ'‚  The servo positioning error is less than 100 counts.ÃÆ'Æ'‚ÃÆ'‚  It will be up to you to determine the exact number if you need it.ÃÆ'Æ'‚ÃÆ'‚  You can either look at your gears or find it by trial and error.ÃÆ'Æ'‚ÃÆ'‚  If the number is exactly correctÃÆ'Æ'‚ÃÆ'‚ then you should be able to turn any number of revs and always be within about 100 counts (< 10 degrees).ÃÆ'Æ'‚ÃÆ'‚  Note that the "servo error" of 10 degrees does not the reflect the error that threading or rigid tapping will have because the encoder will report the position to 1 count (0.1degree) and the z axis will follow that.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > in Mach3 | Config | Port&Pins | Spindle : uncheck disable Spindle Relays and uncheck use Spindle Motor Output
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > in Mach3 | Config | Port&Pins | Motor Outputs : disable Spindle and set xyz step & Dir ports all to 0
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Try again while monitoring KMotion Console Screen for Spindle Messages.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Regards
> > > > > TK
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Monday, May 21, 2012 5:00 AM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom,
> > > > >
> > > > > The MoveRel4=3863000 stops less than a quarter from start position.
> > > > > In Axis window the DEST is 3835050 and POS 3834978
> > > > >
> > > > > I have created a new folder = Mach3
> > > > > Pictures in there shows my settings within Mach3
> > > > > But I get no action on the spindle
> > > > >
> > > > > Looking at Port and pins I have activated the spindle so the Yellow LED reacts on M3/M4/M5 so I assume that some settings are missing but I cannot figure out what.
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ok that's progress.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > You never answered about the exact ratio.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  If there are gears involved then the exact ratio would be the gear ratio (47 teeth/50teeth for example).ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You can test the ratio to see if it exact by moving a large number of revolutions.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So for example if the ratio is 0.959 and the encoder is 4000 counts per rev then to move exactly 1000 revs would be:
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > 1000 revs x 4000 counts/rev x 0.959 = 3836000 counts.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > So if you command a move of this the spindle should finish at the same position (within the servo tolerance):
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > MoveRel4=3836000
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > But regardless I will assume the ratio is 0.959 or one rev is 3844 counts.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Regarding your question on rpm drops: I was thinking to set the HI/LO Speed range based on the Commanded Speed not the actual speed.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  In this case the speed range would not switch if the speed drops.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  BTW the speed should not drop as the servo will increase the PWM to maintain the proper RPM.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Now that we have the Spindle operating as an Axis we can use the standard Mach3SpindleJog.cÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This commands the Spindle Axis to move at the desired speed regardless of what configuration it is (Step/Dir, DAC Servo, PWM, etc...).
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > But I have modified it to automatically set the Speed Range depending on the commanded Speed.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > I have also modified it for 3844 counts/rev and also assuming that the Mach3 Pulley speed has been set for 2500 RPM
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Regards
> > > > > > TKÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Sunday, May 20, 2012 1:30 PM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > Hi Tom,
> > > > > >
> > > > > > Now we have it working :)
> > > > > >
> > > > > > Last email as regards motion, all enabled, right bits, sorry but I did not have DMM connected.
> > > > > >
> > > > > > So as it now works where will the gear come in action? around 700rpm's as earlier discussed?
> > > > > >
> > > > > > Lets take a hypothetical milling with 700rpms set in HI gear and the load is significant so the rpm drops, what will the 'gearing' do? Will it go down to LO to get more power (I assume it is so) and the go up and down Hi to Lo to Hi etc etc or will it stay and wait until next S command is set in Mach3?
> > > > > >
> > > > > > What next?
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Bengt,
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Looks like our thread got too long and Yahoo didn't accept my last reply.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I've trimmed it down.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Maybe that is alsoÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ why you were having problems.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > I don't mind working on this at all.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It is something we need to have.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It would be helpful as always if you provided more information in your responses.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  For example in your last email when there was no motion you could tell me why there is no motion.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Is the axis enabled?ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Are the right bits turned on?ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Is there a PWM voltage?ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Seems like if several of those relays on at the same time you will blow fuses, but I'll assume you did it right...
> > > > > > > Oops I forgot to remember what gear we were in so it was constantly changing gears and forcing the output to zero.
> > > > > > > Try Version 6
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Sunday, May 20, 2012 12:35 PM
> > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > >
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > Went back to the workshop and made a test running only in Hi gear and it sounds OK from 240rpm (jog4=15085) and runs up to 2330rpm.
> > > > > > >
> > > > > > > May be it is just simpler to have it in HI gear all the time instead of having a breakpoint at say 700rpm as discussed before. If need be for very low rpm I can use the mechanical gears that are locked now.
> > > > > > > That is if I loose a lot of power having it in HI gear all the time but gives me the freedom to change rpm's on the fly.
> > > > > > >
> > > > > > > Don't get me wrong here as I appreciate the work you do but I feel that IÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚´m getting to be PITA with this bothering you.
> > > > > > >
> > > > > > > Cheers
> > > > > > > Bengt
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Group: DynoMotion Message: 5037 From: Tom Kerekes Date: 5/23/2012
Subject: Re: PWM to VFD
Hi Bengt,

I moved the forever loop to the end as Version 3.

What you had was:

#1 - Output the PWM
#2 - goto Step #1
#3 - Initialize the system

The system will never be initialized because we will never get past step #2

I changed it to:

#1 - Initialize the system
#2 - Output the PWM
#3 - goto Step #2

Here is a video from the Web that may help you recognize the format of a for loop.  Our case is a bit simpler than what he describes because we want to loop forever so we don't need any condition for exiting the loop.

http://www.cplusplustutor.com/play.php?c=ZXI90I90

Regards
TK



Group: DynoMotion Message: 5041 From: Bengt Sjoelund Date: 5/23/2012
Subject: Re: PWM to VFD
Hi Tom,

Thank you very much, as always appreciated.
I will try to look at those videos even if I have a difficulties to follow that pakistan-english, hopefully I will learn something.
It is not easy for an old fart like me to learn a new 'language'

Will continue after a few days break as I have to work on my boat that is going to be used this season (been on land for two seasons) for some fishing trips.

Cheers
Bengt



--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>
> I moved the forever loop to the end as Version 3.
>
> What you had was:
>
> #1 - Output the PWM
> #2 - goto Step #1
> #3 - Initialize the system
>
> The system will never be initialized because we will never get past step #2
>
> I changed it to:
>
> #1 - Initialize the system
> #2 - Output the PWM
> #3 - goto Step #2
>
>
> Here is a video from the Web that may help you recognize the format of a for loop.  Our case is a bit simpler than what he describes because we want to loop forever so we don't need any condition for exiting the loop.
>
>
> http://www.cplusplustutor.com/play.php?c=ZXI90I90
>
> Regards
> TK
>
>
>
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, May 22, 2012 1:57 PM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> As I am not a programmer it is very easy to do all sorts of errors.
>
> for (;;) starts the loop
>
> New version uploaded Rev2
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > Interesting you put the forever loop towards the beginning rather than towards the end.  This is a common error I see a lot but can't understand how someone could do this.  Obviously it is a lack of understanding of what a loop is.  Or specifically a "forever loop".  I'm curious can you identify which lines in the program form a forever loop?
> >  
> > Regards
> > TK  
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tuesday, May 22, 2012 1:19 PM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >
> >  
> >
> > Hi Tom,
> >
> > Uploaded a new init file /PWMtoVFD/Mach3/combimill%203axis%20pwm.c
> > Can you be so kind and have a look if it is correctly edited.
> >
> > ch4 was apparently not OK as I had to edit maxOutput to 255 and I wonder if Integrator value is correct?
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Great.  Yes.  Yes.
> > >  
> > > TK
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tuesday, May 22, 2012 10:34 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >
> > >  
> > >
> > > Hi Tom,
> > >
> > > Rest assured that there will be information in upcoming videos to your nice products and best of all the superior support. You deserve all credit Tom. Will edit the videos on the tube with KFlop/Kanalog.
> > >
> > > Now that the milling machine is working I will have a look for why there is this "- sign" in CW problem in Mach3. If I recall it I have tried changing InputGain and yes it was a runaway. Will try this again as intructed.
> > >
> > > I assume it is time to edit my init file to include OutputToPWMandDirGearV6.c as I have to start KMotion and compile/download/run to get Mach3 up and running?
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > Congratulations.ÃÆ'‚  Thanks for the video.ÃÆ'‚  It would have been nice for you to mention KFLOP or Dynomotion.ÃÆ'‚  It is so difficult to get Users to make videos and then when they do they don't mention us.
> > > > ÃÆ'‚ 
> > > > I don't see why there would be a 4 sec delay. Possibly 2 seconds to switch gears.ÃÆ'‚  Maybe you could look for clues.
> > > > ÃÆ'‚ 
> > > > Regarding CW being negative - I think you can revese that by changing the Axis 4 InputGain0 to be a negative number.ÃÆ'‚  But this will cause the servo to have positive feedback (instead of negative feedback - runaway).ÃÆ'‚  So to correct that you will need to reverse how the C program commands the CW and CCW relays.
> > > > ÃÆ'‚ 
> > > > After that Rigid tapping should work.
> > > > ÃÆ'‚ 
> > > > TK
> > > >
> > > >
> > > > ________________________________
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tuesday, May 22, 2012 5:58 AM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > >
> > > > Hi Tom,
> > > >
> > > > Thank you!! Now it works http://youtu.be/USNiVKyYgmI
> > > > Short video just to see motion (spindle set to LO rpm = less noise)
> > > >
> > > > Some odd things though, if I set S2000 and the change to say S800 it takes 4-5 seconds before the spindle revs down.
> > > > CW motion Mach shows negative so if S800 then -800 is shown and vice versa if M4 S800 it shows 800.
> > > >
> > > > Will do some more testing and report back.
> > > >
> > > > I am very happy now, almost 2 years since I got the machine and started to investigate the condition as it was sold as-is/dead as regards the CNC part. Looking forward to get all peripherals/add-on's that I have hooked up and working.
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > ok uploaded V2
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > TK
> > > > >
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Monday, May 21, 2012 12:56 PM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom,
> > > > >
> > > > > Now we have something from Mach3 but only CCW whatever commanded direction.
> > > > >
> > > > > M3 S250 goes CCW and runs at 255 and Mach3 shows 249
> > > > > M4 S250 as above
> > > > >
> > > > > M3 S500 goes CCW at 509.6 and Mach3 shows ~498
> > > > >
> > > > > The exact number must be achieved via trial and error as there is now way I will tear down the spindle head and gearbox so I have to do trials for this, that can be fun :)
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > That would indicate that 3863 is not the exact number.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  A quarter turn would be about 1000 counts off,ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The servo positioning error is less than 100 counts.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It will be up to you to determine the exact number if you need it.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You can either look at your gears or find it by trial and error.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  If the number is exactly correctÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ then you should be able to turn any number of revs and always be within about 100 counts (< 10
> degrees).ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Note that the "servo error" of 10 degrees does not the reflect the error that threading or rigid tapping will have because the encoder will report the position to 1 count (0.1degree) and the z axis will follow that.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > in Mach3 | Config | Port&Pins | Spindle : uncheck disable Spindle Relays and uncheck use Spindle Motor Output
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > in Mach3 | Config | Port&Pins | Motor Outputs : disable Spindle and set xyz step & Dir ports all to 0
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Try again while monitoring KMotion Console Screen for Spindle Messages.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Regards
> > > > > > TK
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Monday, May 21, 2012 5:00 AM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom,
> > > > > >
> > > > > > The MoveRel4=3863000 stops less than a quarter from start position.
> > > > > > In Axis window the DEST is 3835050 and POS 3834978
> > > > > >
> > > > > > I have created a new folder = Mach3
> > > > > > Pictures in there shows my settings within Mach3
> > > > > > But I get no action on the spindle
> > > > > >
> > > > > > Looking at Port and pins I have activated the spindle so the Yellow LED reacts on M3/M4/M5 so I assume that some settings are missing but I cannot figure out what.
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Bengt,
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > ok that's progress.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > You never answered about the exact ratio.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  If there are gears involved then the exact ratio would be the gear ratio (47 teeth/50teeth for example).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You can test the ratio to see if it exact by moving a large number of revolutions.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So for example if the ratio is 0.959 and the encoder is 4000 counts per rev then to move exactly 1000 revs would be:
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > 1000 revs x 4000 counts/rev x 0.959 = 3836000 counts.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > So if you command a move of this the spindle should finish at the same position (within the servo tolerance):
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > MoveRel4=3836000
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > But regardless I will assume the ratio is 0.959 or one rev is 3844 counts.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Regarding your question on rpm drops: I was thinking to set the HI/LO Speed range based on the Commanded Speed not the actual speed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  In this case the speed range would not switch if the speed drops.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  BTW the speed should not drop as the servo will increase the PWM to maintain the proper RPM.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Now that we have the Spindle operating as an Axis we can use the standard Mach3SpindleJog.cÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This commands the Spindle Axis to move at the desired speed regardless of what configuration it is (Step/Dir, DAC Servo, PWM, etc...).
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > But I have modified it to automatically set the Speed Range depending on the commanded Speed.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > I have also modified it for 3844 counts/rev and also assuming that the Mach3 Pulley speed has been set for 2500 RPM
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Regards
> > > > > > > TKÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Sunday, May 20, 2012 1:30 PM
> > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > >
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > Now we have it working :)
> > > > > > >
> > > > > > > Last email as regards motion, all enabled, right bits, sorry but I did not have DMM connected.
> > > > > > >
> > > > > > > So as it now works where will the gear come in action? around 700rpm's as earlier discussed?
> > > > > > >
> > > > > > > Lets take a hypothetical milling with 700rpms set in HI gear and the load is significant so the rpm drops, what will the 'gearing' do? Will it go down to LO to get more power (I assume it is so) and the go up and down Hi to Lo to Hi etc etc or will it stay and wait until next S command is set in Mach3?
> > > > > > >
> > > > > > > What next?
> > > > > > >
> > > > > > > Cheers
> > > > > > > Bengt
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Bengt,
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Looks like our thread got too long and Yahoo didn't accept my last reply.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I've trimmed it down.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Maybe that is alsoÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ why you were having problems.
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > I don't mind working on this at all.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It is something we need to have.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It would be helpful as always if you provided more information in your responses.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  For example in your last email when there was no motion you could tell me why there is no
> motion.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Is the axis enabled?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Are the right bits turned on?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Is there a PWM voltage?ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Seems like if several of those relays on at the same time you will blow fuses, but I'll assume you did it right...
> > > > > > > > Oops I forgot to remember what gear we were in so it was constantly changing gears and forcing the output to zero.
> > > > > > > > Try Version 6
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Sunday, May 20, 2012 12:35 PM
> > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > >
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > Went back to the workshop and made a test running only in Hi gear and it sounds OK from 240rpm (jog4=15085) and runs up to 2330rpm.
> > > > > > > >
> > > > > > > > May be it is just simpler to have it in HI gear all the time instead of having a breakpoint at say 700rpm as discussed before. If need be for very low rpm I can use the mechanical gears that are locked now.
> > > > > > > > That is if I loose a lot of power having it in HI gear all the time but gives me the freedom to change rpm's on the fly.
> > > > > > > >
> > > > > > > > Don't get me wrong here as I appreciate the work you do but I feel that IÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚´m getting to be PITA with this bothering you.
> > > > > > > >
> > > > > > > > Cheers
> > > > > > > > Bengt
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 4763 From: Bengt Sjoelund Date: 5/4/2012
Subject: PWM to VFD
Hi Tom,

I have some trouble setting the external control voltage to 0-10V sp I have to manage with 0-5VDC. There was a lot of parameters to set for me to get external control working, now I have tested manually with potentiometer and forward switch so thai working.

Tried the c-file pwm1KHz to I get nogood voltage out of my small board. Can you have a look in my folder PWM to VFD 0-5V jpg and see if it is OK or if something is wrong.

Cheers
Bengt
Group: DynoMotion Message: 4766 From: Tom Kerekes Date: 5/4/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
It looks reasonable to me.  I assume the pots are all set to about 1K.  Setting the pots to a low resistance (less than 100 ohms) could cause damage.
 
The first step would be to set the output low and check if the analog output goes low.
 
Then set the output high and check if the analog output goes to +5V.
 
Regards
TK
 
Group: DynoMotion Message: 4782 From: Bengt Sjoelund Date: 5/6/2012
Subject: Re: PWM to VFD
Hi Tom,

Forward/Reverse control to VFD has given me a lot of trouble and search for why only Forward was working. Been looking for errors on my small relayboard but all OK running it manually. I have now found out that SW7 FET output is faulty, it seems like it is shorted. No big deal but it took some time to find this.

So, now SW1 (Bit153) and SW6 (Bit158) will have to do the job.
_____________________________________________________________

PWM to VFD.

Unloaded JP6 pin 5 goes only up to 2.976VDC when set High
LO is 0
1KHz = 1.489VDC

Loaded with optocoupler PC817
HI is 2.741VDC
LO is 0
1KHz is 1.372VDC


So Tom, what next for me to get this VFD working?

Manually with 2 swithes and a potentiometer it runs externally controlled, and I can use the RS485 remote panel switching from panel to external control.

Cheers
Bengt


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> It looks reasonable to me.  I assume the pots are all set to about 1K.  Setting the pots to a low resistance (less than 100 ohms) could cause damage.
>  
> The first step would be to set the output low and check if the analog output goes low.
>  
> Then set the output high and check if the analog output goes to +5V.
>  
> Regards
> TK
>  
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Friday, May 4, 2012 7:59 AM
> Subject: [DynoMotion] PWM to VFD
>
>
>  
> Hi Tom,
>
> I have some trouble setting the external control voltage to 0-10V sp I have to manage with 0-5VDC. There was a lot of parameters to set for me to get external control working, now I have tested manually with potentiometer and forward switch so thai working.
>
> Tried the c-file pwm1KHz to I get nogood voltage out of my small board. Can you have a look in my folder PWM to VFD 0-5V jpg and see if it is OK or if something is wrong.
>
> Cheers
> Bengt
>
Group: DynoMotion Message: 4787 From: Tom Kerekes Date: 5/6/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
Any idea how that channel might have been damaged?  I can send you a new FET if you want to try to replace it.
 
All your measurements are what I would expect.  But you didn't report on the output of your circuit.  Does it show 0V, 5V, and 2.5V with the 50% duty cycle 1KHz?  It isn't clear to me if you ar saying you have a problem or not.  Are you able to control the speed by changing the PWM1KHz.c program?  Change the value of 128 to values between 0 and 255 and see if the speed changes proportionally.
 
Regards
TK

Group: DynoMotion Message: 4788 From: Bengt Sjoelund Date: 5/6/2012
Subject: Re: PWM to VFD
Hi Tom,

First time use for that FET output, might have done something wrong earlier but nothing I can recall. I can live with it so let us not worry about that. I have one spare set of KFlop/Kanalog as you might remember.

The output from the circuitry is 0. How can the LED saturate in the optocoupler with so low voltage? I will have to solder another board just for kicks to see what is going on as I get nothing out at all.

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Any idea how that channel might have been damaged?  I can send you a new FET if you want to try to replace it.
>  
> All your measurements are what I would expect.  But you didn't report on the output of your circuit.  Does it show 0V, 5V, and 2.5V with the 50% duty cycle 1KHz?  It isn't clear to me if you ar saying you have a problem or not.  Are you able to control the speed by changing the PWM1KHz.c program?  Change the value of 128 to values between 0 and 255 and see if the speed changes proportionally.
>  
> Regards
> TK
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, May 6, 2012 8:52 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> Forward/Reverse control to VFD has given me a lot of trouble and search for why only Forward was working. Been looking for errors on my small relayboard but all OK running it manually. I have now found out that SW7 FET output is faulty, it seems like it is shorted. No big deal but it took some time to find this.
>
> So, now SW1 (Bit153) and SW6 (Bit158) will have to do the job.
> __________________________________________________________
>
> PWM to VFD.
>
> Unloaded JP6 pin 5 goes only up to 2.976VDC when set High
> LO is 0
> 1KHz = 1.489VDC
>
> Loaded with optocoupler PC817
> HI is 2.741VDC
> LO is 0
> 1KHz is 1.372VDC
>
> So Tom, what next for me to get this VFD working?
>
> Manually with 2 swithes and a potentiometer it runs externally controlled, and I can use the RS485 remote panel switching from panel to external control.
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > It looks reasonable to me.  I assume the pots are all set to about 1K.  Setting the pots to a low resistance (less than 100 ohms) could cause damage.
> >  
> > The first step would be to set the output low and check if the analog output goes low.
> >  
> > Then set the output high and check if the analog output goes to +5V.
> >  
> > Regards
> > TK
> >  
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Friday, May 4, 2012 7:59 AM
> > Subject: [DynoMotion] PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > I have some trouble setting the external control voltage to 0-10V sp I have to manage with 0-5VDC. There was a lot of parameters to set for me to get external control working, now I have tested manually with potentiometer and forward switch so thai working.
> >
> > Tried the c-file pwm1KHz to I get nogood voltage out of my small board. Can you have a look in my folder PWM to VFD 0-5V jpg and see if it is OK or if something is wrong.
> >
> > Cheers
> > Bengt
> >
>
Group: DynoMotion Message: 4790 From: Tom Kerekes Date: 5/6/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
I think you just need to troubleshoot your circuit.  2.7V is enough to turn on your opto.  The opto diode should have ~ 1.4V drop or less.  So that leaves 1.3V across the 100 ohms resistor or 13ma through the opto.
 
The opto output should then turn on and be able to sink 5ma or more.  Check voltages throughout your circuit and you should be able to find your problem.
 
Regards
TK
 
 
 
 
 

Group: DynoMotion Message: 4792 From: Bengt Sjoelund Date: 5/6/2012
Subject: Re: PWM to VFD
Hi Tom,

Have soldered a new on a piece of bredboard and it is functioning with the simple signal gennerator I have in my DMM. The other board is something wrong with, obviously some connections are wrong as it is not according to schematics, this pcb is not verified against the schematics so I have made an error.

So I will test this tomorrow and come back with hopefully happy news.
Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> I think you just need to troubleshoot your circuit.  2.7V is enough to turn on your opto.  The opto diode should have ~ 1.4V drop or less.  So that leaves 1.3V across the 100 ohms resistor or 13ma through the opto.
>  
> The opto output should then turn on and be able to sink 5ma or more.  Check voltages throughout your circuit and you should be able to find your problem.
>  
> Regards
> TK
>  
>  
>  
>  
>  
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, May 6, 2012 11:37 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> First time use for that FET output, might have done something wrong earlier but nothing I can recall. I can live with it so let us not worry about that. I have one spare set of KFlop/Kanalog as you might remember.
>
> The output from the circuitry is 0. How can the LED saturate in the optocoupler with so low voltage? I will have to solder another board just for kicks to see what is going on as I get nothing out at all.
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > Any idea how that channel might have been damaged?  I can send you a new FET if you want to try to replace it.
> >  
> > All your measurements are what I would expect.  But you didn't report on the output of your circuit.  Does it show 0V, 5V, and 2.5V with the 50% duty cycle 1KHz?  It isn't clear to me if you ar saying you have a problem or not.  Are you able to control the speed by changing the PWM1KHz.c program?  Change the value of 128 to values between 0 and 255 and see if the speed changes proportionally.
> >  
> > Regards
> > TK
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Sunday, May 6, 2012 8:52 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > Forward/Reverse control to VFD has given me a lot of trouble and search for why only Forward was working. Been looking for errors on my small relayboard but all OK running it manually. I have now found out that SW7 FET output is faulty, it seems like it is shorted. No big deal but it took some time to find this.
> >
> > So, now SW1 (Bit153) and SW6 (Bit158) will have to do the job.
> > __________________________________________________________
> >
> > PWM to VFD.
> >
> > Unloaded JP6 pin 5 goes only up to 2.976VDC when set High
> > LO is 0
> > 1KHz = 1.489VDC
> >
> > Loaded with optocoupler PC817
> > HI is 2.741VDC
> > LO is 0
> > 1KHz is 1.372VDC
> >
> > So Tom, what next for me to get this VFD working?
> >
> > Manually with 2 swithes and a potentiometer it runs externally controlled, and I can use the RS485 remote panel switching from panel to external control.
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > It looks reasonable to me.  I assume the pots are all set to about 1K.  Setting the pots to a low resistance (less than 100 ohms) could cause damage.
> > >  
> > > The first step would be to set the output low and check if the analog output goes low.
> > >  
> > > Then set the output high and check if the analog output goes to +5V.
> > >  
> > > Regards
> > > TK
> > >  
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Friday, May 4, 2012 7:59 AM
> > > Subject: [DynoMotion] PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > I have some trouble setting the external control voltage to 0-10V sp I have to manage with 0-5VDC. There was a lot of parameters to set for me to get external control working, now I have tested manually with potentiometer and forward switch so thai working.
> > >
> > > Tried the c-file pwm1KHz to I get nogood voltage out of my small board. Can you have a look in my folder PWM to VFD 0-5V jpg and see if it is OK or if something is wrong.
> > >
> > > Cheers
> > > Bengt
> > >
> >
>
Group: DynoMotion Message: 4794 From: Bengt Sjoelund Date: 5/6/2012
Subject: Re: PWM to VFD
Hi Tom,
I just had to go down to the workshop and test and all is well so task tomorrow is to make a new board and isolationmill this board.

Now we know its working so my question is 'what next'?
I assume that new C-file is what is needed now when all odd things are cleared out.

Cheers
Bengt
Group: DynoMotion Message: 4796 From: Tom Kerekes Date: 5/6/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
Let's see if we can now drive your Spindle as a crude servo.
 
Configure one of your unused KFLOP axis channels to be a Spindle Axis.  Configure as a Dummy DAC Servo with low P only Gain.
 
I've uploaded a program called OutputToPWMandDir.c to your folder.
 
 
If you have this program running in a C Programs Thread then if you enable the Spindle Axis the Spindle should servo.  You should then be able to Move on the Step Reponse Screen and observe the result.
 
You will need to modify the program for the Axis and IO Bits you are actually using.
 
Regards
TK

Group: DynoMotion Message: 4804 From: Bengt Sjoelund Date: 5/7/2012
Subject: Re: PWM to VFD
Hi Tom,

Have done what you wanted but there is one problem.
1. I created #4 DAC servo with encoder input and downloaded
2. Loaded the C-file with correct settings
3. Manually tested 153 and tested other value than 26 to see that rpm changed.
4. Low P =0.1 in Step/response
5. As soon as I push 'MOVE' BIT 152 goes low and no ation obviously occurs on physical axis but I can see that frequency rises in my VFD monitor so the C file is doing as it seems what it is supposed to do.

So BIT152 is a riddle for me but I am confident that you will have a solution for this.

As always looking forward to receive your kind advise on what to do next.

Cheers
Bengt



--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Let's see if we can now drive your Spindle as a crude servo.
>  
> Configure one of your unused KFLOP axis channels to be a Spindle Axis.  Configure as a Dummy DAC Servo with low P only Gain.
>  
> I've uploaded a program called OutputToPWMandDir.c to your folder.
>  
> http://f1.grp.yahoofs.com/v1/cAKnTztAYF4TCSfHR1mPckW6WH4MA12J0tBRKXPnCYuJ-MLAi3zFFfVTRV4YvUYgoJogTi57bNcpcE2WQZbVTw/Bengt%27s%20CombiMill/OutputToPWMandDir.c
>  
> If you have this program running in a C Programs Thread then if you enable the Spindle Axis the Spindle should servo.  You should then be able to Move on the Step Reponse Screen and observe the result.
>  
> You will need to modify the program for the Axis and IO Bits you are actually using.
>  
> Regards
> TK
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, May 6, 2012 2:03 PM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
> I just had to go down to the workshop and test and all is well so task tomorrow is to make a new board and isolationmill this board.
>
> Now we know its working so my question is 'what next'?
> I assume that new C-file is what is needed now when all odd things are cleared out.
>
> Cheers
> Bengt
>
Group: DynoMotion Message: 4805 From: Tom Kerekes Date: 5/7/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
What are bits 152 and 153?  Did you change the C program to use those bits?  How?
 
What state do bits 152 and 153 have to be in to drive CW or CCW??
 
Regards
TK
 

Group: DynoMotion Message: 4806 From: Bengt Sjoelund Date: 5/7/2012
Subject: Re: PWM to VFD
Hi Tom,

BIT152 LO = Enables the VFD/Spindle = 3-phase contactor
BIT153 CCW reverse
BIT158 CW forward
BIT154 HI = cranks the speed up on 3-phase motor = another 3-phase contactor.

Cheers
Bengt


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> What are bits 152 and 153?  Did you change the C program to use those bits?  How?
>  
> What state do bits 152 and 153 have to be in to drive CW or CCW??
>  
> Regards
> TK
>  
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, May 7, 2012 8:27 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> Have done what you wanted but there is one problem.
> 1. I created #4 DAC servo with encoder input and downloaded
> 2. Loaded the C-file with correct settings
> 3. Manually tested 153 and tested other value than 26 to see that rpm changed.
> 4. Low P =0.1 in Step/response
> 5. As soon as I push 'MOVE' BIT 152 goes low and no ation obviously occurs on physical axis but I can see that frequency rises in my VFD monitor so the C file is doing as it seems what it is supposed to do.
>
> So BIT152 is a riddle for me but I am confident that you will have a solution for this.
>
> As always looking forward to receive your kind advise on what to do next.
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > Let's see if we can now drive your Spindle as a crude servo.
> >  
> > Configure one of your unused KFLOP axis channels to be a Spindle Axis.  Configure as a Dummy DAC Servo with low P only Gain.
> >  
> > I've uploaded a program called OutputToPWMandDir.c to your folder.
> >  
> > http://f1.grp.yahoofs.com/v1/cAKnTztAYF4TCSfHR1mPckW6WH4MA12J0tBRKXPnCYuJ-MLAi3zFFfVTRV4YvUYgoJogTi57bNcpcE2WQZbVTw/Bengt%27s%20CombiMill/OutputToPWMandDir.c
> >  
> > If you have this program running in a C Programs Thread then if you enable the Spindle Axis the Spindle should servo.  You should then be able to Move on the Step Reponse Screen and observe the result.
> >  
> > You will need to modify the program for the Axis and IO Bits you are actually using.
> >  
> > Regards
> > TK
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Sunday, May 6, 2012 2:03 PM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> > I just had to go down to the workshop and test and all is well so task tomorrow is to make a new board and isolationmill this board.
> >
> > Now we know its working so my question is 'what next'?
> > I assume that new C-file is what is needed now when all odd things are cleared out.
> >
> > Cheers
> > Bengt
> >
>
Group: DynoMotion Message: 4807 From: Tom Kerekes Date: 5/7/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
Your description is incomplete on the state each bit needs to be in.
 
Regards
TK

Group: DynoMotion Message: 4808 From: Bengt Sjoelund Date: 5/7/2012
Subject: Re: PWM to VFD
Hi Tom,

All BITs need to be High to be active.

Just learned something new that is if 158 and 153 are HIGH at the same time VFD goes to STOP. Just deactivate one or the other and we have motion according to whitch one is High/active.

Cheers
Bengt


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Your description is incomplete on the state each bit needs to be in.
>  
> Regards
> TK
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, May 7, 2012 9:05 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> BIT152 LO = Enables the VFD/Spindle = 3-phase contactor
> BIT153 CCW reverse
> BIT158 CW forward
> BIT154 HI = cranks the speed up on 3-phase motor = another 3-phase contactor.
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > What are bits 152 and 153?  Did you change the C program to use those bits?  How?
> >  
> > What state do bits 152 and 153 have to be in to drive CW or CCW??
> >  
> > Regards
> > TK
> >  
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, May 7, 2012 8:27 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > Have done what you wanted but there is one problem.
> > 1. I created #4 DAC servo with encoder input and downloaded
> > 2. Loaded the C-file with correct settings
> > 3. Manually tested 153 and tested other value than 26 to see that rpm changed.
> > 4. Low P =0.1 in Step/response
> > 5. As soon as I push 'MOVE' BIT 152 goes low and no ation obviously occurs on physical axis but I can see that frequency rises in my VFD monitor so the C file is doing as it seems what it is supposed to do.
> >
> > So BIT152 is a riddle for me but I am confident that you will have a solution for this.
> >
> > As always looking forward to receive your kind advise on what to do next.
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > Let's see if we can now drive your Spindle as a crude servo.
> > >  
> > > Configure one of your unused KFLOP axis channels to be a Spindle Axis.  Configure as a Dummy DAC Servo with low P only Gain.
> > >  
> > > I've uploaded a program called OutputToPWMandDir.c to your folder.
> > >  
> > > http://f1.grp.yahoofs.com/v1/cAKnTztAYF4TCSfHR1mPckW6WH4MA12J0tBRKXPnCYuJ-MLAi3zFFfVTRV4YvUYgoJogTi57bNcpcE2WQZbVTw/Bengt%27s%20CombiMill/OutputToPWMandDir.c
> > >  
> > > If you have this program running in a C Programs Thread then if you enable the Spindle Axis the Spindle should servo.  You should then be able to Move on the Step Reponse Screen and observe the result.
> > >  
> > > You will need to modify the program for the Axis and IO Bits you are actually using.
> > >  
> > > Regards
> > > TK
> > >
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Sunday, May 6, 2012 2:03 PM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > > I just had to go down to the workshop and test and all is well so task tomorrow is to make a new board and isolationmill this board.
> > >
> > > Now we know its working so my question is 'what next'?
> > > I assume that new C-file is what is needed now when all odd things are cleared out.
> > >
> > > Cheers
> > > Bengt
> > >
> >
>
Group: DynoMotion Message: 4809 From: Tom Kerekes Date: 5/7/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
Wouldn't that also be true if both are LOW ?
 
Anyway I uploaded a new V2
 
Regards
TK

Group: DynoMotion Message: 4810 From: himykabibble Date: 5/7/2012
Subject: Re: PWM to VFD
Bengt,

These two lines caught my eye:

> BIT152 LO = Enables the VFD/Spindle = 3-phase contactor
> BIT154 HI = cranks the speed up on 3-phase motor = another 3-phase contactor.

I hope those are not contactors are not switching the wires between the VFD and motor? If so, you are setting yourself up for a (likely spectacularly) blown VFD, if those contactors are ever switched when when VFD is driving the motor, even if it happens due to a power failure. There should never be relays or switches between the VFD and motor, unless they are manually operated, and you take responsibility for making sure the VFD is turned off whenever they are changed.

Regards,
Ray L.


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Wouldn't that also be true if both are LOW ?
>  
> Anyway I uploaded a new V2
>  
> Regards
> TK
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, May 7, 2012 10:14 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> All BITs need to be High to be active.
>
> Just learned something new that is if 158 and 153 are HIGH at the same time VFD goes to STOP. Just deactivate one or the other and we have motion according to whitch one is High/active.
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > Your description is incomplete on the state each bit needs to be in.
> >  
> > Regards
> > TK
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, May 7, 2012 9:05 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > BIT152 LO = Enables the VFD/Spindle = 3-phase contactor
> > BIT153 CCW reverse
> > BIT158 CW forward
> > BIT154 HI = cranks the speed up on 3-phase motor = another 3-phase contactor.
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > What are bits 152 and 153?  Did you change the C program to use those bits?  How?
> > >  
> > > What state do bits 152 and 153 have to be in to drive CW or CCW??
> > >  
> > > Regards
> > > TK
> > >  
> > >
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Monday, May 7, 2012 8:27 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > Have done what you wanted but there is one problem.
> > > 1. I created #4 DAC servo with encoder input and downloaded
> > > 2. Loaded the C-file with correct settings
> > > 3. Manually tested 153 and tested other value than 26 to see that rpm changed.
> > > 4. Low P =0.1 in Step/response
> > > 5. As soon as I push 'MOVE' BIT 152 goes low and no ation obviously occurs on physical axis but I can see that frequency rises in my VFD monitor so the C file is doing as it seems what it is supposed to do.
> > >
> > > So BIT152 is a riddle for me but I am confident that you will have a solution for this.
> > >
> > > As always looking forward to receive your kind advise on what to do next.
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > Let's see if we can now drive your Spindle as a crude servo.
> > > > ÃÆ'‚ 
> > > > Configure one of your unused KFLOP axis channels to be a Spindle Axis.ÃÆ'‚  Configure as a Dummy DAC Servo with low P only Gain.
> > > > ÃÆ'‚ 
> > > > I've uploaded a program calledÃÆ'‚ OutputToPWMandDir.c to your folder.
> > > > ÃÆ'‚ 
> > > > http://f1.grp.yahoofs.com/v1/cAKnTztAYF4TCSfHR1mPckW6WH4MA12J0tBRKXPnCYuJ-MLAi3zFFfVTRV4YvUYgoJogTi57bNcpcE2WQZbVTw/Bengt%27s%20CombiMill/OutputToPWMandDir.c
> > > > ÃÆ'‚ 
> > > > If you have this program running in a C Programs Thread then if you enable the Spindle Axis the Spindle should servo.ÃÆ'‚  You should then be able to Move on the Step Reponse Screen and observe the result.
> > > > ÃÆ'‚ 
> > > > You will need to modify the program for the Axis and IO Bits you are actually using.
> > > > ÃÆ'‚ 
> > > > Regards
> > > > TK
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Sunday, May 6, 2012 2:03 PM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > > I just had to go down to the workshop and test and all is well so task tomorrow is to make a new board and isolationmill this board.
> > > >
> > > > Now we know its working so my question is 'what next'?
> > > > I assume that new C-file is what is needed now when all odd things are cleared out.
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > >
> >
>
Group: DynoMotion Message: 4811 From: Bengt Sjoelund Date: 5/7/2012
Subject: Re: PWM to VFD
Hi Tom,
Yes that is correct.

Will look at this tomorrow, thanks for your support.

Cherrs
Bengt


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Wouldn't that also be true if both are LOW ?
>  
> Anyway I uploaded a new V2
>  
> Regards
> TK
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, May 7, 2012 10:14 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> All BITs need to be High to be active.
>
> Just learned something new that is if 158 and 153 are HIGH at the same time VFD goes to STOP. Just deactivate one or the other and we have motion according to whitch one is High/active.
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > Your description is incomplete on the state each bit needs to be in.
> >  
> > Regards
> > TK
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, May 7, 2012 9:05 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > BIT152 LO = Enables the VFD/Spindle = 3-phase contactor
> > BIT153 CCW reverse
> > BIT158 CW forward
> > BIT154 HI = cranks the speed up on 3-phase motor = another 3-phase contactor.
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > What are bits 152 and 153?  Did you change the C program to use those bits?  How?
> > >  
> > > What state do bits 152 and 153 have to be in to drive CW or CCW??
> > >  
> > > Regards
> > > TK
> > >  
> > >
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Monday, May 7, 2012 8:27 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > Have done what you wanted but there is one problem.
> > > 1. I created #4 DAC servo with encoder input and downloaded
> > > 2. Loaded the C-file with correct settings
> > > 3. Manually tested 153 and tested other value than 26 to see that rpm changed.
> > > 4. Low P =0.1 in Step/response
> > > 5. As soon as I push 'MOVE' BIT 152 goes low and no ation obviously occurs on physical axis but I can see that frequency rises in my VFD monitor so the C file is doing as it seems what it is supposed to do.
> > >
> > > So BIT152 is a riddle for me but I am confident that you will have a solution for this.
> > >
> > > As always looking forward to receive your kind advise on what to do next.
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > Let's see if we can now drive your Spindle as a crude servo.
> > > > ÃÆ'‚ 
> > > > Configure one of your unused KFLOP axis channels to be a Spindle Axis.ÃÆ'‚  Configure as a Dummy DAC Servo with low P only Gain.
> > > > ÃÆ'‚ 
> > > > I've uploaded a program calledÃÆ'‚ OutputToPWMandDir.c to your folder.
> > > > ÃÆ'‚ 
> > > > http://f1.grp.yahoofs.com/v1/cAKnTztAYF4TCSfHR1mPckW6WH4MA12J0tBRKXPnCYuJ-MLAi3zFFfVTRV4YvUYgoJogTi57bNcpcE2WQZbVTw/Bengt%27s%20CombiMill/OutputToPWMandDir.c
> > > > ÃÆ'‚ 
> > > > If you have this program running in a C Programs Thread then if you enable the Spindle Axis the Spindle should servo.ÃÆ'‚  You should then be able to Move on the Step Reponse Screen and observe the result.
> > > > ÃÆ'‚ 
> > > > You will need to modify the program for the Axis and IO Bits you are actually using.
> > > > ÃÆ'‚ 
> > > > Regards
> > > > TK
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Sunday, May 6, 2012 2:03 PM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > > I just had to go down to the workshop and test and all is well so task tomorrow is to make a new board and isolationmill this board.
> > > >
> > > > Now we know its working so my question is 'what next'?
> > > > I assume that new C-file is what is needed now when all odd things are cleared out.
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > >
> >
>
Group: DynoMotion Message: 4812 From: Bengt Sjoelund Date: 5/7/2012
Subject: Re: PWM to VFD
Hi Ray,

The VFD is directly connected to the motor.
The contactors are on incoming in powerstage and has been so from the very beginning, the Siemens system that was in here before KFlop/Kanalog had its own built in VFD. So I hope I am on the right track, have had industrial electrician to look at the drawings. All contactors are on the 'primary' side so to speak.
Thanks for you concern, really appreciated.
Cheers
Bengt


--- In DynoMotion@yahoogroups.com, "himykabibble" <jagboy@...> wrote:
>
> Bengt,
>
> These two lines caught my eye:
>
> > BIT152 LO = Enables the VFD/Spindle = 3-phase contactor
> > BIT154 HI = cranks the speed up on 3-phase motor = another 3-phase contactor.
>
> I hope those are not contactors are not switching the wires between the VFD and motor? If so, you are setting yourself up for a (likely spectacularly) blown VFD, if those contactors are ever switched when when VFD is driving the motor, even if it happens due to a power failure. There should never be relays or switches between the VFD and motor, unless they are manually operated, and you take responsibility for making sure the VFD is turned off whenever they are changed.
>
> Regards,
> Ray L.
>
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > Wouldn't that also be true if both are LOW ?
> >  
> > Anyway I uploaded a new V2
> >  
> > Regards
> > TK
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, May 7, 2012 10:14 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > All BITs need to be High to be active.
> >
> > Just learned something new that is if 158 and 153 are HIGH at the same time VFD goes to STOP. Just deactivate one or the other and we have motion according to whitch one is High/active.
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > Your description is incomplete on the state each bit needs to be in.
> > >  
> > > Regards
> > > TK
> > >
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Monday, May 7, 2012 9:05 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > BIT152 LO = Enables the VFD/Spindle = 3-phase contactor
> > > BIT153 CCW reverse
> > > BIT158 CW forward
> > > BIT154 HI = cranks the speed up on 3-phase motor = another 3-phase contactor.
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > >  
> > > > What are bits 152 and 153?  Did you change the C program to use those bits?  How?
> > > >  
> > > > What state do bits 152 and 153 have to be in to drive CW or CCW??
> > > >  
> > > > Regards
> > > > TK
> > > >  
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Monday, May 7, 2012 8:27 AM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > >  
> > > > Hi Tom,
> > > >
> > > > Have done what you wanted but there is one problem.
> > > > 1. I created #4 DAC servo with encoder input and downloaded
> > > > 2. Loaded the C-file with correct settings
> > > > 3. Manually tested 153 and tested other value than 26 to see that rpm changed.
> > > > 4. Low P =0.1 in Step/response
> > > > 5. As soon as I push 'MOVE' BIT 152 goes low and no ation obviously occurs on physical axis but I can see that frequency rises in my VFD monitor so the C file is doing as it seems what it is supposed to do.
> > > >
> > > > So BIT152 is a riddle for me but I am confident that you will have a solution for this.
> > > >
> > > > As always looking forward to receive your kind advise on what to do next.
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'‚ 
> > > > > Let's see if we can now drive your Spindle as a crude servo.
> > > > > ÃÆ'‚ 
> > > > > Configure one of your unused KFLOP axis channels to be a Spindle Axis.ÃÆ'‚  Configure as a Dummy DAC Servo with low P only Gain.
> > > > > ÃÆ'‚ 
> > > > > I've uploaded a program calledÃÆ'‚ OutputToPWMandDir.c to your folder.
> > > > > ÃÆ'‚ 
> > > > > http://f1.grp.yahoofs.com/v1/cAKnTztAYF4TCSfHR1mPckW6WH4MA12J0tBRKXPnCYuJ-MLAi3zFFfVTRV4YvUYgoJogTi57bNcpcE2WQZbVTw/Bengt%27s%20CombiMill/OutputToPWMandDir.c
> > > > > ÃÆ'‚ 
> > > > > If you have this program running in a C Programs Thread then if you enable the Spindle Axis the Spindle should servo.ÃÆ'‚  You should then be able to Move on the Step Reponse Screen and observe the result.
> > > > > ÃÆ'‚ 
> > > > > You will need to modify the program for the Axis and IO Bits you are actually using.
> > > > > ÃÆ'‚ 
> > > > > Regards
> > > > > TK
> > > > >
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Sunday, May 6, 2012 2:03 PM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'‚ 
> > > > > Hi Tom,
> > > > > I just had to go down to the workshop and test and all is well so task tomorrow is to make a new board and isolationmill this board.
> > > > >
> > > > > Now we know its working so my question is 'what next'?
> > > > > I assume that new C-file is what is needed now when all odd things are cleared out.
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 4829 From: Bengt Sjoelund Date: 5/8/2012
Subject: Re: PWM to VFD
Hi Tom,

Tried the new version and still Bit152 goes off as soon as I push 'Move' in step/response.

Manually it works, set BIT152 high and setting 158 or 153 the spindle rotates.

When I open the c-file and compile + download I get no response at all in Step/Response.
If I compile+download+run the spindle rotates in reverse. Disable and then enable = nothing.
If I then manually set BIT152 High and push 'Move' 152 disables.

Obviously I am doing something wrong here, so bare with me and if you would be so kind and give me Step-by-Step instructions on what to do as I assume I am missing a step somewhere as I cannot get this right.

Cheers
Bengt
Group: DynoMotion Message: 4844 From: Tom Kerekes Date: 5/8/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
There was a bug in my program.  If the axis is ever disabled it turns off all the bits and then when it becomes enabled I forgot to turn them back on.
 
I uploaded a new version V3.  Please try that.  As with any servo there will be a 50/50 chance that the Spindle will drive the wrong way and run away from the target rather than toward the target.  If this happens change the sign of the InputGain0.
 
Regards
TK

Group: DynoMotion Message: 4846 From: Bengt Sjoelund Date: 5/8/2012
Subject: Re: PWM to VFD
Hi Tom,

Now I have movement, spindle goes reverse and forward in a loop so I suppose that was the goal. S/R Disable and enable does what they are supposed to do as well as 'move' enables.

Encoder counts are about +- 13000

So the question goes 'what next'?

Cheers
Bengt


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> There was a bug in my program.  If the axis is ever disabled it turns off all the bits and then when it becomes enabled I forgot to turn them back on.
>  
> I uploaded a new version V3.  Please try that.  As with any servo there will be a 50/50 chance that the Spindle will drive the wrong way and run away from the target rather than toward the target.  If this happens change the sign of the InputGain0.
>  
> Regards
> TK
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, May 8, 2012 4:09 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> Tried the new version and still Bit152 goes off as soon as I push 'Move' in step/response.
>
> Manually it works, set BIT152 high and setting 158 or 153 the spindle rotates.
>
> When I open the c-file and compile + download I get no response at all in Step/Response.
> If I compile+download+run the spindle rotates in reverse. Disable and then enable = nothing.
> If I then manually set BIT152 High and push 'Move' 152 disables.
>
> Obviously I am doing something wrong here, so bare with me and if you would be so kind and give me Step-by-Step instructions on what to do as I assume I am missing a step somewhere as I cannot get this right.
>
> Cheers
> Bengt
>
Group: DynoMotion Message: 4849 From: Tom Kerekes Date: 5/8/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
The next step is to tune the Spindle Servo and check the performance.  I don't understand what you mean by "Encoder Counts are +/-13000"?
 
To do something like Rigid Tapping you might want to do 30 revs CW and then 30 revs CCW at a controlled speed of 300RPM so let's test such a case.  How many counts/rev do you have?
 
To convert from RPM to counts/sec divide by 60 and multiply by the number of counts/rev.  Set this as the Max VelYou will probably need to adjust P and I gains to get good tracking. Also Jerk and Acceleration.
 
Setup such a Move on the Step Response Screen and Post a plot of the results.
 
Also you should be able to now command any RPM using Jog commands from a C program or the Console Screen.  Verify you can do this.
 
Regards
TK
 
 

Group: DynoMotion Message: 4852 From: Bengt Sjoelund Date: 5/8/2012
Subject: Re: PWM to VFD
Hi Tom,

During the test I looked at the Axis page and encoder counts where the number of count where approx +13000 to -13000.

In my folder I uploaded the data sheet for my encoder that is 1000lines.

I will try to do what you ask, hope I can do all correctly ;)
Will do this tomorrow afternoon = your early morning in California

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> The next step is to tune the Spindle Servo and check the performance.  I don't understand what you mean by "Encoder Counts are +/-13000"?
>  
> To do something like Rigid Tapping you might want to do 30 revs CW and then 30 revs CCW at a controlled speed of 300RPM so let's test such a case.  How many counts/rev do you have?
>  
> To convert from RPM to counts/sec divide by 60 and multiply by the number of counts/rev.  Set this as the Max Vel.  You will probably need to adjust P and I gains to get good tracking. Also Jerk and Acceleration.
>  
> Setup such a Move on the Step Response Screen and Post a plot of the results.
>  
> Also you should be able to now command any RPM using Jog commands from a C program or the Console Screen.  Verify you can do this.
>  
> Regards
> TK
>  
>  
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, May 8, 2012 11:35 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> Now I have movement, spindle goes reverse and forward in a loop so I suppose that was the goal. S/R Disable and enable does what they are supposed to do as well as 'move' enables.
>
> Encoder counts are about +- 13000
>
> So the question goes 'what next'?
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > There was a bug in my program.  If the axis is ever disabled it turns off all the bits and then when it becomes enabled I forgot to turn them back on.
> >  
> > I uploaded a new version V3.  Please try that.  As with any servo there will be a 50/50 chance that the Spindle will drive the wrong way and run away from the target rather than toward the target.  If this happens change the sign of the InputGain0.
> >  
> > Regards
> > TK
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tuesday, May 8, 2012 4:09 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > Tried the new version and still Bit152 goes off as soon as I push 'Move' in step/response.
> >
> > Manually it works, set BIT152 high and setting 158 or 153 the spindle rotates.
> >
> > When I open the c-file and compile + download I get no response at all in Step/Response.
> > If I compile+download+run the spindle rotates in reverse. Disable and then enable = nothing.
> > If I then manually set BIT152 High and push 'Move' 152 disables.
> >
> > Obviously I am doing something wrong here, so bare with me and if you would be so kind and give me Step-by-Step instructions on what to do as I assume I am missing a step somewhere as I cannot get this right.
> >
> > Cheers
> > Bengt
> >
>
Group: DynoMotion Message: 4868 From: Bengt Sjoelund Date: 5/9/2012
Subject: Re: PWM to VFD
Hi Tom,

I am getting nowhere, the spindle just rocks back and forth starting from short +/- and gets longer over time. So this is nowhere near to track.
Suggestions to actions for me to take?
Cheers
Bengt

--- In DynoMotion@yahoogroups.com, "Bengt Sjoelund" <cnc@...> wrote:
>
> Hi Tom,
>
> During the test I looked at the Axis page and encoder counts where the number of count where approx +13000 to -13000.
>
> In my folder I uploaded the data sheet for my encoder that is 1000lines.
>
> I will try to do what you ask, hope I can do all correctly ;)
> Will do this tomorrow afternoon = your early morning in California
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > The next step is to tune the Spindle Servo and check the performance.  I don't understand what you mean by "Encoder Counts are +/-13000"?
> >  
> > To do something like Rigid Tapping you might want to do 30 revs CW and then 30 revs CCW at a controlled speed of 300RPM so let's test such a case.  How many counts/rev do you have?
> >  
> > To convert from RPM to counts/sec divide by 60 and multiply by the number of counts/rev.  Set this as the Max Vel.  You will probably need to adjust P and I gains to get good tracking. Also Jerk and Acceleration.
> >  
> > Setup such a Move on the Step Response Screen and Post a plot of the results.
> >  
> > Also you should be able to now command any RPM using Jog commands from a C program or the Console Screen.  Verify you can do this.
> >  
> > Regards
> > TK
> >  
> >  
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tuesday, May 8, 2012 11:35 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > Now I have movement, spindle goes reverse and forward in a loop so I suppose that was the goal. S/R Disable and enable does what they are supposed to do as well as 'move' enables.
> >
> > Encoder counts are about +- 13000
> >
> > So the question goes 'what next'?
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > There was a bug in my program.  If the axis is ever disabled it turns off all the bits and then when it becomes enabled I forgot to turn them back on.
> > >  
> > > I uploaded a new version V3.  Please try that.  As with any servo there will be a 50/50 chance that the Spindle will drive the wrong way and run away from the target rather than toward the target.  If this happens change the sign of the InputGain0.
> > >  
> > > Regards
> > > TK
> > >
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tuesday, May 8, 2012 4:09 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > Tried the new version and still Bit152 goes off as soon as I push 'Move' in step/response.
> > >
> > > Manually it works, set BIT152 high and setting 158 or 153 the spindle rotates.
> > >
> > > When I open the c-file and compile + download I get no response at all in Step/Response.
> > > If I compile+download+run the spindle rotates in reverse. Disable and then enable = nothing.
> > > If I then manually set BIT152 High and push 'Move' 152 disables.
> > >
> > > Obviously I am doing something wrong here, so bare with me and if you would be so kind and give me Step-by-Step instructions on what to do as I assume I am missing a step somewhere as I cannot get this right.
> > >
> > > Cheers
> > > Bengt
> > >
> >
>
Group: DynoMotion Message: 4869 From: Tom Kerekes Date: 5/9/2012
Subject: Re: PWM to VFD
Hi Bengt,

That sounds like classic instability.  The Spindle is away from the target destination.  The output is applied to the PWM to move the Spindle toward the target.  As the Spindle moves toward the target the output reduces to zero but the spindle overshoots the target position.  The process repeats.

The delay in your PWM to Analog circuit (basically the 10uF capacitor) contributes to this problem (~10ms response).  Besides however long it takes for the VFD to respond to the Analog Voltage.

Because you have not included any information on what your settings are or what the response is it is hard to recommend what to change.

Decreasing the P gain should reduce the speed of correction and reduce the overshoot.

D gain should also be useful in reducing the overshoot, but will probably require a low pass filter (100Hz Q1.4) to smooth the output.

Regards
TK

Group: DynoMotion Message: 4870 From: Bengt Sjoelund Date: 5/9/2012
Subject: Re: PWM to VFD
Hi Tom,

Sorry for not including a png of todays test, now in my new folder PWM to VFD.

I have a hang of the problem but do not know how to do so I really appreciate your kind support.

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>
> That sounds like classic instability.  The Spindle is away from the target destination.  The output is applied to the PWM to move the Spindle toward the target.  As the Spindle moves toward the target the output reduces to zero but the spindle overshoots the target position.  The process repeats.
>
>
> The delay in your PWM to Analog circuit (basically the 10uF capacitor) contributes to this problem (~10ms response).  Besides however long it takes for the VFD to respond to the Analog Voltage.
>
> Because you have not included any information on what your settings are or what the response is it is hard to recommend what to change.
>
>
> Decreasing the P gain should reduce the speed of correction and reduce the overshoot.
>
> D gain should also be useful in reducing the overshoot, but will probably require a low pass filter (100Hz Q1.4) to smooth the output.
>
>
> Regards
> TK
>
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wednesday, May 9, 2012 8:17 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> I am getting nowhere, the spindle just rocks back and forth starting from short +/- and gets longer over time. So this is nowhere near to track.
> Suggestions to actions for me to take?
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, "Bengt Sjoelund" <cnc@> wrote:
> >
> > Hi Tom,
> >
> > During the test I looked at the Axis page and encoder counts where the number of count where approx +13000 to -13000.
> >
> > In my folder I uploaded the data sheet for my encoder that is 1000lines.
> >
> > I will try to do what you ask, hope I can do all correctly ;)
> > Will do this tomorrow afternoon = your early morning in California
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > The next step is to tune the Spindle Servo and check the performance.  I don't understand what you mean by "Encoder Counts are +/-13000"?
> > >  
> > > To do something like Rigid Tapping you might want to do 30 revs CW and then 30 revs CCW at a controlled speed of 300RPM so let's test such a case.  How many counts/rev do you have?
> > >  
> > > To convert from RPM to counts/sec divide by 60 and multiply by the number of counts/rev.  Set this as the Max Vel.  You will probably need to adjust P and I gains to get good tracking. Also Jerk and Acceleration.
> > >  
> > > Setup such a Move on the Step Response Screen and Post a plot of the results.
> > >  
> > > Also you should be able to now command any RPM using Jog commands from a C program or the Console Screen.  Verify you can do this.
> > >  
> > > Regards
> > > TK
> > >  
> > >  
> > >
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tuesday, May 8, 2012 11:35 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > Now I have movement, spindle goes reverse and forward in a loop so I suppose that was the goal. S/R Disable and enable does what they are supposed to do as well as 'move' enables.
> > >
> > > Encoder counts are about +- 13000
> > >
> > > So the question goes 'what next'?
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > >  
> > > > There was a bug in my program.  If the axis is ever disabled it turns off all the bits and then when it becomes enabled I forgot to turn them back on.
> > > >  
> > > > I uploaded a new version V3.  Please try that.  As with any servo there will be a 50/50 chance that the Spindle will drive the wrong way and run away from the target rather than toward the target.  If this happens change the sign of the InputGain0.
> > > >  
> > > > Regards
> > > > TK
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tuesday, May 8, 2012 4:09 AM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > >  
> > > > Hi Tom,
> > > >
> > > > Tried the new version and still Bit152 goes off as soon as I push 'Move' in step/response.
> > > >
> > > > Manually it works, set BIT152 high and setting 158 or 153 the spindle rotates.
> > > >
> > > > When I open the c-file and compile + download I get no response at all in Step/Response.
> > > > If I compile+download+run the spindle rotates in reverse. Disable and then enable = nothing.
> > > > If I then manually set BIT152 High and push 'Move' 152 disables.
> > > >
> > > > Obviously I am doing something wrong here, so bare with me and if you would be so kind and give me Step-by-Step instructions on what to do as I assume I am missing a step somewhere as I cannot get this right.
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > >
> >
>
Group: DynoMotion Message: 4873 From: Tom Kerekes Date: 5/9/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
Try removing the I gain and reduce the P Gain until there is little overshoot.  P will probably be a small value like 0.01.
 
Also reduce your acceleration to 20000 (this will accelerate to 20000 cnts/sec (300RPM) in 1 sec).
 
You might try some settings on your own and report what you tried and what the results were.
 
Regards
TK

Group: DynoMotion Message: 4874 From: Bengt Sjoelund Date: 5/9/2012
Subject: Re: PWM to VFD
Hi Tom,

New picture uploaded. Seems a bit better, have tried a lot of alternatives with decreasing numbers and the one pictured seems to be the closest I can get. I just made things worse.

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Try removing the I gain and reduce the P Gain until there is little overshoot.  P will probably be a small value like 0.01.
>  
> Also reduce your acceleration to 20000 (this will accelerate to 20000 cnts/sec (300RPM) in 1 sec).
>  
> You might try some settings on your own and report what you tried and what the results were.
>  
> Regards
> TK
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wednesday, May 9, 2012 10:40 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> Sorry for not including a png of todays test, now in my new folder PWM to VFD.
>
> I have a hang of the problem but do not know how to do so I really appreciate your kind support.
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >
> > That sounds like classic instability.  The Spindle is away from the target destination.  The output is applied to the PWM to move the Spindle toward the target.  As the Spindle moves toward the target the output reduces to zero but the spindle overshoots the target position.  The process repeats.
> >
> >
> > The delay in your PWM to Analog circuit (basically the 10uF capacitor) contributes to this problem (~10ms response).  Besides however long it takes for the VFD to respond to the Analog Voltage.
> >
> > Because you have not included any information on what your settings are or what the response is it is hard to recommend what to change.
> >
> >
> > Decreasing the P gain should reduce the speed of correction and reduce the overshoot.
> >
> > D gain should also be useful in reducing the overshoot, but will probably require a low pass filter (100Hz Q1.4) to smooth the output.
> >
> >
> > Regards
> > TK
> >
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Wednesday, May 9, 2012 8:17 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > I am getting nowhere, the spindle just rocks back and forth starting from short +/- and gets longer over time. So this is nowhere near to track.
> > Suggestions to actions for me to take?
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, "Bengt Sjoelund" <cnc@> wrote:
> > >
> > > Hi Tom,
> > >
> > > During the test I looked at the Axis page and encoder counts where the number of count where approx +13000 to -13000.
> > >
> > > In my folder I uploaded the data sheet for my encoder that is 1000lines.
> > >
> > > I will try to do what you ask, hope I can do all correctly ;)
> > > Will do this tomorrow afternoon = your early morning in California
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > >  
> > > > The next step is to tune the Spindle Servo and check the performance.  I don't understand what you mean by "Encoder Counts are +/-13000"?
> > > >  
> > > > To do something like Rigid Tapping you might want to do 30 revs CW and then 30 revs CCW at a controlled speed of 300RPM so let's test such a case.  How many counts/rev do you have?
> > > >  
> > > > To convert from RPM to counts/sec divide by 60 and multiply by the number of counts/rev.  Set this as the Max Vel.  You will probably need to adjust P and I gains to get good tracking. Also Jerk and Acceleration.
> > > >  
> > > > Setup such a Move on the Step Response Screen and Post a plot of the results.
> > > >  
> > > > Also you should be able to now command any RPM using Jog commands from a C program or the Console Screen.  Verify you can do this.
> > > >  
> > > > Regards
> > > > TK
> > > >  
> > > >  
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tuesday, May 8, 2012 11:35 AM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > >  
> > > > Hi Tom,
> > > >
> > > > Now I have movement, spindle goes reverse and forward in a loop so I suppose that was the goal. S/R Disable and enable does what they are supposed to do as well as 'move' enables.
> > > >
> > > > Encoder counts are about +- 13000
> > > >
> > > > So the question goes 'what next'?
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'‚ 
> > > > > There was a bug in my program.ÃÆ'‚  If the axis is ever disabled it turns off all the bits and then when it becomes enabled I forgot to turn them back on.
> > > > > ÃÆ'‚ 
> > > > > I uploaded a new version V3.ÃÆ'‚  Please try that.ÃÆ'‚  As with any servo there will be a 50/50 chance that the Spindle will drive the wrong way and run away from the target rather than toward the target.ÃÆ'‚  If this happens change the sign of the InputGain0.
> > > > > ÃÆ'‚ 
> > > > > Regards
> > > > > TK
> > > > >
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tuesday, May 8, 2012 4:09 AM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'‚ 
> > > > > Hi Tom,
> > > > >
> > > > > Tried the new version and still Bit152 goes off as soon as I push 'Move' in step/response.
> > > > >
> > > > > Manually it works, set BIT152 high and setting 158 or 153 the spindle rotates.
> > > > >
> > > > > When I open the c-file and compile + download I get no response at all in Step/Response.
> > > > > If I compile+download+run the spindle rotates in reverse. Disable and then enable = nothing.
> > > > > If I then manually set BIT152 High and push 'Move' 152 disables.
> > > > >
> > > > > Obviously I am doing something wrong here, so bare with me and if you would be so kind and give me Step-by-Step instructions on what to do as I assume I am missing a step somewhere as I cannot get this right.
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 4875 From: Tom Kerekes Date: 5/9/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
Looking at the Plot the problem is obvious.  The PWM output (green plot) is limited to only +/- 1 yet the spindle is driving +/-100 RPM or so.
 
You should go back and test your control of the VFD.  I had assumed you had tested manual control of the VFD.
 
Go back to the PWM 1KHz and vary the PWM output.  Check what speeds are possible.  Also check what the analog voltages come out of your PWM circuit with a voltmeter.  Imagine yourself as the servo.  Command a slower and slower speed until you approach a position and then stop.  Would you be able to do it?
 
Regards
TK 
 
 
 
 

Group: DynoMotion Message: 4881 From: Bengt Sjoelund Date: 5/10/2012
Subject: Re: PWM to VFD
Hi Tom,

In my PWM to VFD folder you will find my report and a screen snapshot as well.

I have found out during todays manual test that there are factory preset acceleration parameters set to 5sec ramp up and down. Now I changed these to 0.1sec so it looks better but not tracking good.

I hope you will find something useful for further testing, one thing that worries me is that the PWM to voltage adapter only swings from 0 to +2.5V not +5V as expected I suppose.

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Looking at the Plot the problem is obvious.  The PWM output (green plot) is limited to only +/- 1 yet the spindle is driving +/-100 RPM or so.
>  
> You should go back and test your control of the VFD.  I had assumed you had tested manual control of the VFD.
>  
> Go back to the PWM 1KHz and vary the PWM output.  Check what speeds are possible.  Also check what the analog voltages come out of your PWM circuit with a voltmeter.  Imagine yourself as the servo.  Command a slower and slower speed until you approach a position and then stop.  Would you be able to do it?
>  
> Regards
> TK 
>
Group: DynoMotion Message: 4890 From: Tom Kerekes Date: 5/10/2012
Subject: Re: PWM to VFD
Hi Bengt,

Normally the way a PWM works is that we leave the frequency constant (ie 1KHz and Pre Scale = 65) and vary the duty cycle from 0 to 100%.  Since this is an 8-bit PWM that means to set the duty cycle from values from 0 to 255.

If you observe the plot we are still having a problem commanding a slow speed.  The slowest it ever goes is about 8000 counts/sec which is about 100RPM.  We have a limit in the C program to never reverse direction relays (CW to CCW) more than every 1 second.  So the plot shows a change in direction every one second.  See at times 0.1 second, 1.1 second, 2.1 second.   I thought the way this would work was that as we got close to the target we could reduce the PWM to zero and the spindle would slow to a stop.  But even though we command zero the spindle continues at 100RPM and way overshoots the target.

Please perform the following tests:

#1 using the PWM1KHz.c program vary the PWM values from 0 to 255 while leaving the frequency constant (Prescale 65).  Measure the output voltage.  We are mostly interested in the low voltage range so take lots of measurements with small values: 0, 1, 2, 3, 4...  but in mid and high range you can skip every 10 or so. 

#2 use your potentiometer and check the RPM with small input voltages like 0V, 0.05V, 0.1V ...

This may not work as well as I hoped.  But let's figure out exactly what the problem is before we give up on this technique.

Regards
TK



Group: DynoMotion Message: 4897 From: Bengt Sjoelund Date: 5/11/2012
Subject: Re: PWM to VFD
Hi Tom,

I have uploaded the test you requested, hopefully this will give you some ideas on how to proceed with further tests.

What do you say about modifying the PWM adapter (PWM to VFD 0-5VDC.png) as I get no higher than 2.5Vmax with 100% dutycycle on PWM. Changing collector to output resistors from 1K to <50R? Have this up in simulator (Multisim) with a load of 1K5 on the output that gives with 1K resistors 2.5V changing to 33R gives 4.82V so that gives a swing from 2% duty cycle 80mV to 99% duty cycle 4.82V

Cheers
Bengt


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>
> Normally the way a PWM works is that we leave the frequency constant (ie 1KHz and Pre Scale = 65) and vary the duty cycle from 0 to 100%.  Since this is an 8-bit PWM that means to set the duty cycle from values from 0 to 255.
>
> If you observe the plot we are still having a problem commanding a slow speed.  The slowest it ever goes is about 8000 counts/sec which is about 100RPM.  We have a limit in the C program to never reverse direction relays (CW to CCW) more than every 1 second.  So the plot shows a change in direction every one second.  See at times 0.1 second, 1.1 second, 2.1 second.   I thought the way this would work was that as we got close to the target we could reduce the PWM to zero and the spindle would slow to a stop.  But even though we command zero the spindle continues at 100RPM and way overshoots the target.
>
> Please perform the following tests:
>
> #1 using the PWM1KHz.c program vary the PWM values from 0 to 255 while leaving the frequency constant (Prescale 65).  Measure the output voltage.  We are mostly interested in the low voltage range so take lots of measurements with small values: 0, 1, 2, 3, 4...  but in mid and high range you can skip every 10 or so. 
>
>
> #2 use your potentiometer and check the RPM with small input voltages like 0V, 0.05V, 0.1V ...
>
> This may not work as well as I hoped.  But let's figure out exactly what the problem is before we give up on this technique.
>
> Regards
> TK
>
>
>
>
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thursday, May 10, 2012 8:41 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> In my PWM to VFD folder you will find my report and a screen snapshot as well.
>
> I have found out during todays manual test that there are factory preset acceleration parameters set to 5sec ramp up and down. Now I changed these to 0.1sec so it looks better but not tracking good.
>
> I hope you will find something useful for further testing, one thing that worries me is that the PWM to voltage adapter only swings from 0 to +2.5V not +5V as expected I suppose.
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > Looking at the Plot the problem is obvious.  The PWM output (green plot) is limited to only +/- 1 yet the spindle is driving +/-100 RPM or so.
> >  
> > You should go back and test your control of the VFD.  I had assumed you had tested manual control of the VFD.
> >  
> > Go back to the PWM 1KHz and vary the PWM output.  Check what speeds are possible.  Also check what the analog voltages come out of your PWM circuit with a voltmeter.  Imagine yourself as the servo.  Command a slower and slower speed until you approach a position and then stop.  Would you be able to do it?
> >  
> > Regards
> > TK 
> >
>
Group: DynoMotion Message: 4906 From: Tom Kerekes Date: 5/11/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
Thanks.  That was exactly the information I needed.  It seems like there is still a problem with your circuit.  For a duty cycle of 0% (solid off) your circuit output should be closer to 0V (0.1V or less).  Not 0.5V.  Also 100% (solid on) should be approximately 4.8V not 2.5V.  It should be easy to use a voltmeter to locate the problem.  In the 0% and 100% cases everything is steady state.  I've uploaded two schematic files where I have marked the expected voltages at each node in your circuit. Please command the PWM to 0% (value=0) and PWM to 100% (value=255) and measure the voltages to see what you actually have at each node so we can locate the problem.
 
 
 
Regards
TK

Group: DynoMotion Message: 4908 From: Bengt Sjoelund Date: 5/11/2012
Subject: Re: PWM to VFD
Hi Tom,

I will carry out the measurements tomorrow, just now I am not up to it as I am having one or several kidney stones on the way out.
Hopefully this will be over soon.

This is what I was afraid of as the max would not go over 2.5V so let us hope I can nail down the fault.

Cheers
Bengt




--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Thanks.  That was exactly the information I needed.  It seems like there is still a problem with your circuit.  For a duty cycle of 0% (solid off) your circuit output should be closer to 0V (0.1V or less).  Not 0.5V.  Also 100% (solid on) should be approximately 4.8V not 2.5V.  It should be easy to use a voltmeter to locate the problem.  In the 0% and 100% cases everything is steady state.  I've uploaded two schematic files where I have marked the expected voltages at each node in your circuit. Please command the PWM to 0% (value=0) and PWM to 100% (value=255) and measure the voltages to see what you actually have at each node so we can locate the problem.
>  
> http://f1.grp.yahoofs.com/v1/oFOtT2Z7Vu3mb-HtLJrM0zouZxMlRoikiy7UiNSef9Znrtl98rj6hT6fqhc2raV0LGWqTh0hEcsGFDQ8FFW29w/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20OFF%20TK.png
>  
> http://f1.grp.yahoofs.com/v1/oFOtTwpfuFnmb-HtjrjdyeNq-eXiQWjBHvWPTd2NS7sojh8fmcw4eq_9F-ukbqA6letv9dvRbafVmcOCFDXHXQ/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20ON%20TK.png
>  
> Regards
> TK
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Friday, May 11, 2012 5:27 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> I have uploaded the test you requested, hopefully this will give you some ideas on how to proceed with further tests.
>
> What do you say about modifying the PWM adapter (PWM to VFD 0-5VDC.png) as I get no higher than 2.5Vmax with 100% dutycycle on PWM. Changing collector to output resistors from 1K to <50R? Have this up in simulator (Multisim) with a load of 1K5 on the output that gives with 1K resistors 2.5V changing to 33R gives 4.82V so that gives a swing from 2% duty cycle 80mV to 99% duty cycle 4.82V
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >
> > Normally the way a PWM works is that we leave the frequency constant (ie 1KHz and Pre Scale = 65) and vary the duty cycle from 0 to 100%.  Since this is an 8-bit PWM that means to set the duty cycle from values from 0 to 255.
> >
> > If you observe the plot we are still having a problem commanding a slow speed.  The slowest it ever goes is about 8000 counts/sec which is about 100RPM.  We have a limit in the C program to never reverse direction relays (CW to CCW) more than every 1 second.  So the plot shows a change in direction every one second.  See at times 0.1 second, 1.1 second, 2.1 second.   I thought the way this would work was that as we got close to the target we could reduce the PWM to zero and the spindle would slow to a stop.  But even though we command zero the spindle continues at 100RPM and way overshoots the target.
> >
> > Please perform the following tests:
> >
> > #1 using the PWM1KHz.c program vary the PWM values from 0 to 255 while leaving the frequency constant (Prescale 65).  Measure the output voltage.  We are mostly interested in the low voltage range so take lots of measurements with small values: 0, 1, 2, 3, 4...  but in mid and high range you can skip every 10 or so. 
> >
> >
> > #2 use your potentiometer and check the RPM with small input voltages like 0V, 0.05V, 0.1V ...
> >
> > This may not work as well as I hoped.  But let's figure out exactly what the problem is before we give up on this technique.
> >
> > Regards
> > TK
> >
> >
> >
> >
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thursday, May 10, 2012 8:41 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > In my PWM to VFD folder you will find my report and a screen snapshot as well.
> >
> > I have found out during todays manual test that there are factory preset acceleration parameters set to 5sec ramp up and down. Now I changed these to 0.1sec so it looks better but not tracking good.
> >
> > I hope you will find something useful for further testing, one thing that worries me is that the PWM to voltage adapter only swings from 0 to +2.5V not +5V as expected I suppose.
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > Looking at the Plot the problem is obvious.  The PWM output (green plot) is limited to only +/- 1 yet the spindle is driving +/-100 RPM or so.
> > >  
> > > You should go back and test your control of the VFD.  I had assumed you had tested manual control of the VFD.
> > >  
> > > Go back to the PWM 1KHz and vary the PWM output.  Check what speeds are possible.  Also check what the analog voltages come out of your PWM circuit with a voltmeter.  Imagine yourself as the servo.  Command a slower and slower speed until you approach a position and then stop.  Would you be able to do it?
> > >  
> > > Regards
> > > TK 
> > >
> >
>
Group: DynoMotion Message: 4909 From: Tom Kerekes Date: 5/11/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
No rush.  Take care of yourself we need you :}
 
Regards
TK

Group: DynoMotion Message: 4915 From: Bengt Sjoelund Date: 5/11/2012
Subject: Re: PWM to VFD
Hi Tom,

I just had to get down and do it, had a break with pain so here it is.

PWM
0= 0V 255= 2.7V
collector opto
4.99V 0.137V
base pnp
4.99V 4.18V
base npn
0.525V 0.642V
collector pnp
0.510V 4.77V
collector npn
0.528V 0.643V

Looks to me like the 2N2222A is out of order (Ebay...)

Cheers
Bengt




--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> No rush.  Take care of yourself we need you :}
>  
> Regards
> TK
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Friday, May 11, 2012 11:41 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> I will carry out the measurements tomorrow, just now I am not up to it as I am having one or several kidney stones on the way out.
> Hopefully this will be over soon.
>
> This is what I was afraid of as the max would not go over 2.5V so let us hope I can nail down the fault.
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > Thanks.  That was exactly the information I needed.  It seems like there is still a problem with your circuit.  For a duty cycle of 0% (solid off) your circuit output should be closer to 0V (0.1V or less).  Not 0.5V.  Also 100% (solid on) should be approximately 4.8V not 2.5V.  It should be easy to use a voltmeter to locate the problem.  In the 0% and 100% cases everything is steady state.  I've uploaded two schematic files where I have marked the expected voltages at each node in your circuit. Please command the PWM to 0% (value=0) and PWM to 100% (value=255) and measure the voltages to see what you actually have at each node so we can locate the problem.
> >  
> > http://f1.grp.yahoofs.com/v1/oFOtT2Z7Vu3mb-HtLJrM0zouZxMlRoikiy7UiNSef9Znrtl98rj6hT6fqhc2raV0LGWqTh0hEcsGFDQ8FFW29w/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20OFF%20TK.png
> >  
> > http://f1.grp.yahoofs.com/v1/oFOtTwpfuFnmb-HtjrjdyeNq-eXiQWjBHvWPTd2NS7sojh8fmcw4eq_9F-ukbqA6letv9dvRbafVmcOCFDXHXQ/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20ON%20TK.png
> >  
> > Regards
> > TK
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Friday, May 11, 2012 5:27 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > I have uploaded the test you requested, hopefully this will give you some ideas on how to proceed with further tests.
> >
> > What do you say about modifying the PWM adapter (PWM to VFD 0-5VDC.png) as I get no higher than 2.5Vmax with 100% dutycycle on PWM. Changing collector to output resistors from 1K to <50R? Have this up in simulator (Multisim) with a load of 1K5 on the output that gives with 1K resistors 2.5V changing to 33R gives 4.82V so that gives a swing from 2% duty cycle 80mV to 99% duty cycle 4.82V
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >
> > > Normally the way a PWM works is that we leave the frequency constant (ie 1KHz and Pre Scale = 65) and vary the duty cycle from 0 to 100%.  Since this is an 8-bit PWM that means to set the duty cycle from values from 0 to 255.
> > >
> > > If you observe the plot we are still having a problem commanding a slow speed.  The slowest it ever goes is about 8000 counts/sec which is about 100RPM.  We have a limit in the C program to never reverse direction relays (CW to CCW) more than every 1 second.  So the plot shows a change in direction every one second.  See at times 0.1 second, 1.1 second, 2.1 second.   I thought the way this would work was that as we got close to the target we could reduce the PWM to zero and the spindle would slow to a stop.  But even though we command zero the spindle continues at 100RPM and way overshoots the target.
> > >
> > > Please perform the following tests:
> > >
> > > #1 using the PWM1KHz.c program vary the PWM values from 0 to 255 while leaving the frequency constant (Prescale 65).  Measure the output voltage.  We are mostly interested in the low voltage range so take lots of measurements with small values: 0, 1, 2, 3, 4...  but in mid and high range you can skip every 10 or so. 
> > >
> > >
> > > #2 use your potentiometer and check the RPM with small input voltages like 0V, 0.05V, 0.1V ...
> > >
> > > This may not work as well as I hoped.  But let's figure out exactly what the problem is before we give up on this technique.
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Thursday, May 10, 2012 8:41 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > In my PWM to VFD folder you will find my report and a screen snapshot as well.
> > >
> > > I have found out during todays manual test that there are factory preset acceleration parameters set to 5sec ramp up and down. Now I changed these to 0.1sec so it looks better but not tracking good.
> > >
> > > I hope you will find something useful for further testing, one thing that worries me is that the PWM to voltage adapter only swings from 0 to +2.5V not +5V as expected I suppose.
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > Looking at the Plot the problem is obvious.ÃÆ'‚  The PWM output (green plot) is limited to only +/- 1 yet the spindle is driving +/-100 RPM or so.
> > > > ÃÆ'‚ 
> > > > You should go back and test your control of the VFD.ÃÆ'‚  I had assumed you had tested manual control of the VFD.
> > > > ÃÆ'‚ 
> > > > Go back to the PWM 1KHz and vary the PWM output.ÃÆ'‚  Check what speeds are possible.ÃÆ'‚  Also check what the analog voltages come out of your PWM circuit with a voltmeter.ÃÆ'‚  Imagine yourself as the servo.ÃÆ'‚  Command a slower and slower speed until you approach a position and then stop.ÃÆ'‚  Would you be able to do it?
> > > > ÃÆ'‚ 
> > > > Regards
> > > > TKÃÆ'‚ 
> > > >
> > >
> >
>
Group: DynoMotion Message: 4916 From: Tom Kerekes Date: 5/11/2012
Subject: Re: PWM to VFD

Hi Bengt,
 
I agree.  Or  a short from base to collector somehow.
 
Regards
TK
Group: DynoMotion Message: 4923 From: Bengt Sjoelund Date: 5/12/2012
Subject: Re: PWM to VFD
Hi Tom,

Changed both transistors just to safe and now it is working. Uploaded a picture PWMtoVFD4.png to my folder.

Can you be so kind and direct me so we can get the best of of this.
How can I command in Console a fixed speed for test?

Looking forward to see what you have in mind for this old fart ;)
I am happy as I have peed out the small stone last night, picture in same folder.

Cheers
Bengt



--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
>
>
> Hi Bengt,
>  
> I agree.  Or  a short from base to collector somehow.
>  
> Regards
> TK
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Friday, May 11, 2012 1:34 PM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> I just had to get down and do it, had a break with pain so here it is.
>
> PWM
> 0= 0V 255= 2.7V
> collector opto
> 4.99V 0.137V
> base pnp
> 4.99V 4.18V
> base npn
> 0.525V 0.642V
> collector pnp
> 0.510V 4.77V
> collector npn
> 0.528V 0.643V
>
> Looks to me like the 2N2222A is out of order (Ebay...)
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > No rush.  Take care of yourself we need you :}
> >  
> > Regards
> > TK
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Friday, May 11, 2012 11:41 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > I will carry out the measurements tomorrow, just now I am not up to it as I am having one or several kidney stones on the way out.
> > Hopefully this will be over soon.
> >
> > This is what I was afraid of as the max would not go over 2.5V so let us hope I can nail down the fault.
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > Thanks.  That was exactly the information I needed.  It seems like there is still a problem with your circuit.  For a duty cycle of 0% (solid off) your circuit output should be closer to 0V (0.1V or less).  Not 0.5V.  Also 100% (solid on) should be approximately 4.8V not 2.5V.  It should be easy to use a voltmeter to locate the problem.  In the 0% and 100% cases everything is steady state.  I've uploaded two schematic files where I have marked the expected voltages at each node in your circuit. Please command the PWM to 0% (value=0) and PWM to 100% (value=255) and measure the voltages to see what you actually have at each node so we can locate the problem.
> > >  
> > > http://f1.grp.yahoofs.com/v1/oFOtT2Z7Vu3mb-HtLJrM0zouZxMlRoikiy7UiNSef9Znrtl98rj6hT6fqhc2raV0LGWqTh0hEcsGFDQ8FFW29w/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20OFF%20TK.png
> > >  
> > > http://f1.grp.yahoofs.com/v1/oFOtTwpfuFnmb-HtjrjdyeNq-eXiQWjBHvWPTd2NS7sojh8fmcw4eq_9F-ukbqA6letv9dvRbafVmcOCFDXHXQ/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20ON%20TK.png
> > >  
> > > Regards
> > > TK
> > >
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Friday, May 11, 2012 5:27 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > I have uploaded the test you requested, hopefully this will give you some ideas on how to proceed with further tests.
> > >
> > > What do you say about modifying the PWM adapter (PWM to VFD 0-5VDC.png) as I get no higher than 2.5Vmax with 100% dutycycle on PWM. Changing collector to output resistors from 1K to <50R? Have this up in simulator (Multisim) with a load of 1K5 on the output that gives with 1K resistors 2.5V changing to 33R gives 4.82V so that gives a swing from 2% duty cycle 80mV to 99% duty cycle 4.82V
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > >
> > > > Normally the way a PWM works is that we leave the frequency constant (ie 1KHz and Pre Scale = 65) and vary the duty cycle from 0 to 100%.ÃÆ'‚  Since this is an 8-bit PWM that means to set the duty cycle from values from 0 to 255.
> > > >
> > > > If you observe the plot we are still having a problem commanding a slow speed.ÃÆ'‚  The slowest it ever goes is about 8000 counts/sec which is about 100RPM.ÃÆ'‚  We have a limit in the C program to never reverse direction relays (CW to CCW) more than every 1 second.ÃÆ'‚  So the plot shows a change in direction every one second.ÃÆ'‚  See at times 0.1 second, 1.1 second, 2.1 second.ÃÆ'‚ ÃÆ'‚  I thought the way this would work was that as we got close to the target we could reduce the PWM to zero and the spindle would slow to a stop.ÃÆ'‚  But even though we command zero the spindle continues at 100RPM and way overshoots the target.
> > > >
> > > > Please perform the following tests:
> > > >
> > > > #1 using the PWM1KHz.c program vary the PWM values from 0 to 255 while leaving the frequency constant (Prescale 65).ÃÆ'‚  Measure the output voltage.ÃÆ'‚  We are mostly interested in the low voltage range so take lots of measurements with small values: 0, 1, 2, 3, 4...ÃÆ'‚  but in mid and high range you can skip every 10 or so.ÃÆ'‚ 
> > > >
> > > >
> > > > #2 use your potentiometer and check the RPM with small input voltages like 0V, 0.05V, 0.1V ...
> > > >
> > > > This may not work as well as I hoped.ÃÆ'‚  But let's figure out exactly what the problem is before we give up on this technique.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Thursday, May 10, 2012 8:41 AM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > >
> > > > In my PWM to VFD folder you will find my report and a screen snapshot as well.
> > > >
> > > > I have found out during todays manual test that there are factory preset acceleration parameters set to 5sec ramp up and down. Now I changed these to 0.1sec so it looks better but not tracking good.
> > > >
> > > > I hope you will find something useful for further testing, one thing that worries me is that the PWM to voltage adapter only swings from 0 to +2.5V not +5V as expected I suppose.
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Looking at the Plot the problem is obvious.ÃÆ'Æ'‚ÃÆ'‚  The PWM output (green plot) is limited to only +/- 1 yet the spindle is driving +/-100 RPM or so.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > You should go back and test your control of the VFD.ÃÆ'Æ'‚ÃÆ'‚  I had assumed you had tested manual control of the VFD.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Go back to the PWM 1KHz and vary the PWM output.ÃÆ'Æ'‚ÃÆ'‚  Check what speeds are possible.ÃÆ'Æ'‚ÃÆ'‚  Also check what the analog voltages come out of your PWM circuit with a voltmeter.ÃÆ'Æ'‚ÃÆ'‚  Imagine yourself as the servo.ÃÆ'Æ'‚ÃÆ'‚  Command a slower and slower speed until you approach a position and then stop.ÃÆ'Æ'‚ÃÆ'‚  Would you be able to do it?
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Regards
> > > > > TKÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 4933 From: Tom Kerekes Date: 5/14/2012
Subject: Re: PWM to VFD
Hi Bengt,

Yes I think that is getting close.  Looks like it is moving to within about ~100 counts or about 10 degrees of where it is being told to go.  That should be sufficient for rigid tapping.

But notice the actual speed (red slope) is not able to keep up with the commanded speed (blue slope).  This is because we have a Max Error setting of only 200 counts combined with a low P gain setting of 0.006.  200 x 0.006 = 1.2 PWM counts.  You can see that the PWM Output (green plot) is clipped at that value so we are never commanding more than 1 PWM count.  Let's increase the Max Error from 200 to 4000.  Also try a bigger move that would accelerate to a higher speed.  You may have to re-adjust the P gain for best results.

To reduce over shoot you might try some D gain.  You should use this with a 2nd order Low pass filter (Q=1.4) to smooth the output.  A low pass filter has the benefit of smoothing the output but will have the disadvantage of phase lag which will cause the system to overshoot more.  The lower the frequency the more smoothing but the more phase lag.  Add the Low Pass filter first (before any D gain) and find the lowest frequency possible that doesn't add significant additional overshoot.  I'm guessing this may be around 50Hz.  Then start adding D gain to see if it reduces the overshoot.  It's hard for me to predict what the numeric value might be.  Start with is tiny number that has no effect.  Then increase it in steps of about 50% increases until you see an effect.  Too much will cause the system to become more unstable.

Regards
TK


Group: DynoMotion Message: 4934 From: Bengt Sjoelund Date: 5/14/2012
Subject: Re: PWM to VFD
Hi Tom,

Have uploaded PWMtoVFD 5.png to my folder.
I have tried to follow you instructions and have added the filter you wanted and 50Hz Q1.4 looks best if I can 'read' the curves correctly.

As you meantioned tapping would probably work just fine even with a very coarse thread and I will be using tap holders that are flexible to some degree up and down.

One thing I have noticed is that after the spindle makes it move the bits 152 and 153 are on. I assumed that they should be off?

So is this as good as we can get it and I can do tapping and run the spindle I assume there will be a new C-file to make it work with Mach3.

Have been doing some wireing to JP12, I am a bit confused as bits 128 to 135 behave very odd I am using 132-134-135 that is 132 for worklight swith on my control panel, 134 for manual coolant on and 135 for starting central oiler pump.
132/134 are +24VDC via 1K + 3.3V Zener to GND and a serial 100R to input, 135 3.3V via swithch to input.
When I start up all show active even if OFF and unused/unconnected 128-131+133 show active.
Cannot get 132 and 135 to work but 134 works OK, do I need pulldown to settle these bits?
JP12 is connected via Winford breakout with 10-12cm ribboncable.

Cheers
Bengt


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>
> Yes I think that is getting close.  Looks like it is moving to within about ~100 counts or about 10 degrees of where it is being told to go.  That should be sufficient for rigid tapping.
>
> But notice the actual speed (red slope) is not able to keep up with the commanded speed (blue slope).  This is because we have a Max Error setting of only 200 counts combined with a low P gain setting of 0.006.  200 x 0.006 = 1.2 PWM counts.  You can see that the PWM Output (green plot) is clipped at that value so we are never commanding more than 1 PWM count.  Let's increase the Max Error from 200 to 4000.  Also try a bigger move that would accelerate to a higher speed.  You may have to re-adjust the P gain for best results.
>
>
> To reduce over shoot you might try some D gain.  You should use this with a 2nd order Low pass filter (Q=1.4) to smooth the output.  A low pass filter has the benefit of smoothing the output but will have the disadvantage of phase lag which will cause the system to overshoot more.  The lower the frequency the more smoothing but the more phase lag.  Add the Low Pass filter first (before any D gain) and find the lowest frequency possible that doesn't add significant additional overshoot.  I'm guessing this may be around 50Hz.  Then start adding D gain to see if it reduces the overshoot.  It's hard for me to predict what the numeric value might be.  Start with is tiny number that has no effect.  Then increase it in steps of about 50% increases until you see an effect.  Too much will cause the system to become more unstable.
>
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Saturday, May 12, 2012 4:37 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>
>  
> Hi Tom,
>
> Changed both transistors just to safe and now it is working. Uploaded a picture PWMtoVFD4.png to my folder.
>
> Can you be so kind and direct me so we can get the best of of this.
> How can I command in Console a fixed speed for test?
>
> Looking forward to see what you have in mind for this old fart ;)
> I am happy as I have peed out the small stone last night, picture in same folder.
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> >
> >
> > Hi Bengt,
> >  
> > I agree.  Or  a short from base to collector somehow.
> >  
> > Regards
> > TK
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Friday, May 11, 2012 1:34 PM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > I just had to get down and do it, had a break with pain so here it is.
> >
> > PWM
> > 0= 0V 255= 2.7V
> > collector opto
> > 4.99V 0.137V
> > base pnp
> > 4.99V 4.18V
> > base npn
> > 0.525V 0.642V
> > collector pnp
> > 0.510V 4.77V
> > collector npn
> > 0.528V 0.643V
> >
> > Looks to me like the 2N2222A is out of order (Ebay...)
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > No rush.  Take care of yourself we need you :}
> > >  
> > > Regards
> > > TK
> > >
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Friday, May 11, 2012 11:41 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > I will carry out the measurements tomorrow, just now I am not up to it as I am having one or several kidney stones on the way out.
> > > Hopefully this will be over soon.
> > >
> > > This is what I was afraid of as the max would not go over 2.5V so let us hope I can nail down the fault.
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > Thanks.ÃÆ'‚  That was exactly the information I needed.ÃÆ'‚  It seems like there is still a problem with your circuit.ÃÆ'‚  For a duty cycle of 0% (solid off) your circuit output should be closer to 0V (0.1V or less).ÃÆ'‚  Not 0.5V.ÃÆ'‚  Also 100% (solid on) should be approximately 4.8V not 2.5V.ÃÆ'‚  It should be easy to use a voltmeter toÃÆ'‚ locate the problem.ÃÆ'‚  In the 0% and 100% cases everything is steady state.ÃÆ'‚  I've uploaded two schematic files where I have marked the expected voltages at each node in your circuit.ÃÆ'‚ Please command the PWM to 0% (value=0) and PWM to 100% (value=255) and measure the voltages to see what you actually have at each node so we can locate the problem.
> > > > ÃÆ'‚ 
> > > > http://f1.grp.yahoofs.com/v1/oFOtT2Z7Vu3mb-HtLJrM0zouZxMlRoikiy7UiNSef9Znrtl98rj6hT6fqhc2raV0LGWqTh0hEcsGFDQ8FFW29w/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20OFF%20TK.png
> > > > ÃÆ'‚ 
> > > > http://f1.grp.yahoofs.com/v1/oFOtTwpfuFnmb-HtjrjdyeNq-eXiQWjBHvWPTd2NS7sojh8fmcw4eq_9F-ukbqA6letv9dvRbafVmcOCFDXHXQ/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20ON%20TK.png
> > > > ÃÆ'‚ 
> > > > Regards
> > > > TK
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Friday, May 11, 2012 5:27 AM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > >
> > > > I have uploaded the test you requested, hopefully this will give you some ideas on how to proceed with further tests.
> > > >
> > > > What do you say about modifying the PWM adapter (PWM to VFD 0-5VDC.png) as I get no higher than 2.5Vmax with 100% dutycycle on PWM. Changing collector to output resistors from 1K to <50R? Have this up in simulator (Multisim) with a load of 1K5 on the output that gives with 1K resistors 2.5V changing to 33R gives 4.82V so that gives a swing from 2% duty cycle 80mV to 99% duty cycle 4.82V
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > >
> > > > > Normally the way a PWM works is that we leave the frequency constant (ie 1KHz and Pre Scale = 65) and vary the duty cycle from 0 to 100%.ÃÆ'Æ'‚ÃÆ'‚  Since this is an 8-bit PWM that means to set the duty cycle from values from 0 to 255.
> > > > >
> > > > > If you observe the plot we are still having a problem commanding a slow speed.ÃÆ'Æ'‚ÃÆ'‚  The slowest it ever goes is about 8000 counts/sec which is about 100RPM.ÃÆ'Æ'‚ÃÆ'‚  We have a limit in the C program to never reverse direction relays (CW to CCW) more than every 1 second.ÃÆ'Æ'‚ÃÆ'‚  So the plot shows a change in direction every one second.ÃÆ'Æ'‚ÃÆ'‚  See at times 0.1 second, 1.1 second, 2.1 second.ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚  I thought the way this would work was that as we got close to the target we could reduce the PWM to zero and the spindle would slow to a stop.ÃÆ'Æ'‚ÃÆ'‚  But even though we command zero the spindle continues at 100RPM and way overshoots the target.
> > > > >
> > > > > Please perform the following tests:
> > > > >
> > > > > #1 using the PWM1KHz.c program vary the PWM values from 0 to 255 while leaving the frequency constant (Prescale 65).ÃÆ'Æ'‚ÃÆ'‚  Measure the output voltage.ÃÆ'Æ'‚ÃÆ'‚  We are mostly interested in the low voltage range so take lots of measurements with small values: 0, 1, 2, 3, 4...ÃÆ'Æ'‚ÃÆ'‚  but in mid and high range you can skip every 10 or so.ÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > >
> > > > > #2 use your potentiometer and check the RPM with small input voltages like 0V, 0.05V, 0.1V ...
> > > > >
> > > > > This may not work as well as I hoped.ÃÆ'Æ'‚ÃÆ'‚  But let's figure out exactly what the problem is before we give up on this technique.
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Thursday, May 10, 2012 8:41 AM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom,
> > > > >
> > > > > In my PWM to VFD folder you will find my report and a screen snapshot as well.
> > > > >
> > > > > I have found out during todays manual test that there are factory preset acceleration parameters set to 5sec ramp up and down. Now I changed these to 0.1sec so it looks better but not tracking good.
> > > > >
> > > > > I hope you will find something useful for further testing, one thing that worries me is that the PWM to voltage adapter only swings from 0 to +2.5V not +5V as expected I suppose.
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Looking at the Plot the problem is obvious.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The PWM output (green plot) is limited to only +/- 1 yet the spindle is driving +/-100 RPM or so.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > You should go back and test your control of the VFD.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I had assumed you had tested manual control of the VFD.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Go back to the PWM 1KHz and vary the PWM output.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Check what speeds are possible.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also check what the analog voltages come out of your PWM circuit with a voltmeter.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Imagine yourself as the servo.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Command a slower and slower speed until you approach a position and then stop.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Would you be able to do it?
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Regards
> > > > > > TKÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 4935 From: Tom Kerekes Date: 5/14/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
Yes that looks quite good.  You still are not moving very far.  1.5 revs??  So the speed is only getting up to about 200 RPM.  And we are only using 7 of 255 PWM counts.  The 0.2 sec delay is a bit odd but shouldn't hurt anything.  
 
Realize that just because the spindle motion is not perfect doesn't mean that the Rigid Tap won't be perfect.  This is because the Z motion will be sync'ed to the Spindle Motion.  We just need the Spindle to accelerate smoothly to the right tapping speed and stop/reverse after the right number of turns.  Other systems that just try to move the spindle and z axis in an open loop but coordinated manner wouldn't work as well.  You shouldn't need flexible tap holders.  Hopefully :}
 
The C Program is written to always output CW or CCW whenever the axis is enabled.  So it always tries to hold position.  0 PWM setting causes it to stop so I don't see a need to disable the VFD.    It will disable everything if the axis is disabled.
 
You should also now be able to try setting constant spindle speed by commanding Jogs.  So for example on the Console Screen Jog4=40000 should be 600RPM exactly.  Also the SpindleMach3Jog.c should now work for Mach3.
 
Regarding the IO are those inputs or outputs?  Seems like Coolant On would be an output but you are referencing inputs.  But yes the general purpose inputs are very high impedance inputs which will just float if not driven.  They must be driven high and low (ie a pulldown resistor).
 
Regards
TK
 
 

Group: DynoMotion Message: 4937 From: Bengt Sjoelund Date: 5/15/2012
Subject: Re: PWM to VFD
Hi Tom,

1. Cannot get jog4=40000 to work
2. Nothing in Mach3 MDI M3 S300

Obviosly something is wrong. Can you tell me what C files should be compiled and downloaded to KFlop and what files is needed in Mach3 plugin setup.

I assume in Mach3 following will be needed in Mach3
CombiMill 3axis.c (do I need to add ch4?)
SpindleMach3PWMHiLoGear.c is the latest tested file
CombiMillHomeMach3C.c
NotifyMach3.c

Sorry but I am all mixed up here, so be kind to me ;)
Would be helpful to have a step by step setup so I can manage to get all working.

Cheers
Bengt


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Yes that looks quite good.  You still are not moving very far.  1.5 revs??  So the speed is only getting up to about 200 RPM.  And we are only using 7 of 255 PWM counts.  The 0.2 sec delay is a bit odd but shouldn't hurt anything.  
>  
> Realize that just because the spindle motion is not perfect doesn't mean that the Rigid Tap won't be perfect.  This is because the Z motion will be sync'ed to the Spindle Motion.  We just need the Spindle to accelerate smoothly to the right tapping speed and stop/reverse after the right number of turns.  Other systems that just try to move the spindle and z axis in an open loop but coordinated manner wouldn't work as well.  You shouldn't need flexible tap holders.  Hopefully :}
>  
> The C Program is written to always output CW or CCW whenever the axis is enabled.  So it always tries to hold position.  0 PWM setting causes it to stop so I don't see a need to disable the VFD.    It will disable everything if the axis is disabled.
>  
> You should also now be able to try setting constant spindle speed by commanding Jogs.  So for example on the Console Screen Jog4=40000 should be 600RPM exactly.  Also the SpindleMach3Jog.c should now work for Mach3.
>  
> Regarding the IO are those inputs or outputs?  Seems like Coolant On would be an output but you are referencing inputs.  But yes the general purpose inputs are very high impedance inputs which will just float if not driven.  They must be driven high and low (ie a pulldown resistor).
>  
> Regards
> TK
>  
>  
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, May 14, 2012 12:38 PM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> Have uploaded PWMtoVFD 5.png to my folder.
> I have tried to follow you instructions and have added the filter you wanted and 50Hz Q1.4 looks best if I can 'read' the curves correctly.
>
> As you meantioned tapping would probably work just fine even with a very coarse thread and I will be using tap holders that are flexible to some degree up and down.
>
> One thing I have noticed is that after the spindle makes it move the bits 152 and 153 are on. I assumed that they should be off?
>
> So is this as good as we can get it and I can do tapping and run the spindle I assume there will be a new C-file to make it work with Mach3.
>
> Have been doing some wireing to JP12, I am a bit confused as bits 128 to 135 behave very odd I am using 132-134-135 that is 132 for worklight swith on my control panel, 134 for manual coolant on and 135 for starting central oiler pump.
> 132/134 are +24VDC via 1K + 3.3V Zener to GND and a serial 100R to input, 135 3.3V via swithch to input.
> When I start up all show active even if OFF and unused/unconnected 128-131+133 show active.
> Cannot get 132 and 135 to work but 134 works OK, do I need pulldown to settle these bits?
> JP12 is connected via Winford breakout with 10-12cm ribboncable.
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >
> > Yes I think that is getting close.  Looks like it is moving to within about ~100 counts or about 10 degrees of where it is being told to go.  That should be sufficient for rigid tapping.
> >
> > But notice the actual speed (red slope) is not able to keep up with the commanded speed (blue slope).  This is because we have a Max Error setting of only 200 counts combined with a low P gain setting of 0.006.  200 x 0.006 = 1.2 PWM counts.  You can see that the PWM Output (green plot) is clipped at that value so we are never commanding more than 1 PWM count.  Let's increase the Max Error from 200 to 4000.  Also try a bigger move that would accelerate to a higher speed.  You may have to re-adjust the P gain for best results.
> >
> >
> > To reduce over shoot you might try some D gain.  You should use this with a 2nd order Low pass filter (Q=1.4) to smooth the output.  A low pass filter has the benefit of smoothing the output but will have the disadvantage of phase lag which will cause the system to overshoot more.  The lower the frequency the more smoothing but the more phase lag.  Add the Low Pass filter first (before any D gain) and find the lowest frequency possible that doesn't add significant additional overshoot.  I'm guessing this may be around 50Hz.  Then start adding D gain to see if it reduces the overshoot.  It's hard for me to predict what the numeric value might be.  Start with is tiny number that has no effect.  Then increase it in steps of about 50% increases until you see an effect.  Too much will cause the system to become more unstable.
> >
> >
> > Regards
> > TK
> >
> >
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Saturday, May 12, 2012 4:37 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >
> >  
> > Hi Tom,
> >
> > Changed both transistors just to safe and now it is working. Uploaded a picture PWMtoVFD4.png to my folder.
> >
> > Can you be so kind and direct me so we can get the best of of this.
> > How can I command in Console a fixed speed for test?
> >
> > Looking forward to see what you have in mind for this old fart ;)
> > I am happy as I have peed out the small stone last night, picture in same folder.
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > >
> > >
> > > Hi Bengt,
> > >  
> > > I agree.  Or  a short from base to collector somehow.
> > >  
> > > Regards
> > > TK
> > >
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Friday, May 11, 2012 1:34 PM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > I just had to get down and do it, had a break with pain so here it is.
> > >
> > > PWM
> > > 0= 0V 255= 2.7V
> > > collector opto
> > > 4.99V 0.137V
> > > base pnp
> > > 4.99V 4.18V
> > > base npn
> > > 0.525V 0.642V
> > > collector pnp
> > > 0.510V 4.77V
> > > collector npn
> > > 0.528V 0.643V
> > >
> > > Looks to me like the 2N2222A is out of order (Ebay...)
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > No rush.ÃÆ'‚  Take care of yourself we need you :}
> > > > ÃÆ'‚ 
> > > > Regards
> > > > TK
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Friday, May 11, 2012 11:41 AM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > >
> > > > I will carry out the measurements tomorrow, just now I am not up to it as I am having one or several kidney stones on the way out.
> > > > Hopefully this will be over soon.
> > > >
> > > > This is what I was afraid of as the max would not go over 2.5V so let us hope I can nail down the fault.
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Thanks.ÃÆ'Æ'‚ÃÆ'‚  That was exactly the information I needed.ÃÆ'Æ'‚ÃÆ'‚  It seems like there is still a problem with your circuit.ÃÆ'Æ'‚ÃÆ'‚  For a duty cycle of 0% (solid off) your circuit output should be closer to 0V (0.1V or less).ÃÆ'Æ'‚ÃÆ'‚  Not 0.5V.ÃÆ'Æ'‚ÃÆ'‚  Also 100% (solid on) should be approximately 4.8V not 2.5V.ÃÆ'Æ'‚ÃÆ'‚  It should be easy to use a voltmeter toÃÆ'Æ'‚ÃÆ'‚ locate the problem.ÃÆ'Æ'‚ÃÆ'‚  In the 0% and 100% cases everything is steady state.ÃÆ'Æ'‚ÃÆ'‚  I've uploaded two schematic files where I have marked the expected voltages at each node in your circuit.ÃÆ'Æ'‚ÃÆ'‚ Please command the PWM to 0% (value=0) and PWM to
> 100% (value=255) and measure the voltages to see what you actually have at each node so we can locate the problem.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > http://f1.grp.yahoofs.com/v1/oFOtT2Z7Vu3mb-HtLJrM0zouZxMlRoikiy7UiNSef9Znrtl98rj6hT6fqhc2raV0LGWqTh0hEcsGFDQ8FFW29w/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20OFF%20TK.png
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > http://f1.grp.yahoofs.com/v1/oFOtTwpfuFnmb-HtjrjdyeNq-eXiQWjBHvWPTd2NS7sojh8fmcw4eq_9F-ukbqA6letv9dvRbafVmcOCFDXHXQ/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20ON%20TK.png
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Regards
> > > > > TK
> > > > >
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Friday, May 11, 2012 5:27 AM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom,
> > > > >
> > > > > I have uploaded the test you requested, hopefully this will give you some ideas on how to proceed with further tests.
> > > > >
> > > > > What do you say about modifying the PWM adapter (PWM to VFD 0-5VDC.png) as I get no higher than 2.5Vmax with 100% dutycycle on PWM. Changing collector to output resistors from 1K to <50R? Have this up in simulator (Multisim) with a load of 1K5 on the output that gives with 1K resistors 2.5V changing to 33R gives 4.82V so that gives a swing from 2% duty cycle 80mV to 99% duty cycle 4.82V
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > >
> > > > > > Normally the way a PWM works is that we leave the frequency constant (ie 1KHz and Pre Scale = 65) and vary the duty cycle from 0 to 100%.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Since this is an 8-bit PWM that means to set the duty cycle from values from 0 to 255.
> > > > > >
> > > > > > If you observe the plot we are still having a problem commanding a slow speed.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The slowest it ever goes is about 8000 counts/sec which is about 100RPM.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We have a limit in the C program to never reverse direction relays (CW to CCW) more than every 1 second.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So the plot shows a change in direction every one second.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  See at times 0.1 second, 1.1 second, 2.1 second.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I thought the way this would work was that as we got close to the target
> we could reduce the PWM to zero and the spindle would slow to a stop.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But even though we command zero the spindle continues at 100RPM and way overshoots the target.
> > > > > >
> > > > > > Please perform the following tests:
> > > > > >
> > > > > > #1 using the PWM1KHz.c program vary the PWM values from 0 to 255 while leaving the frequency constant (Prescale 65).ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Measure the output voltage.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We are mostly interested in the low voltage range so take lots of measurements with small values: 0, 1, 2, 3, 4...ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  but in mid and high range you can skip every 10 or so.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > >
> > > > > > #2 use your potentiometer and check the RPM with small input voltages like 0V, 0.05V, 0.1V ...
> > > > > >
> > > > > > This may not work as well as I hoped.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But let's figure out exactly what the problem is before we give up on this technique.
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Thursday, May 10, 2012 8:41 AM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom,
> > > > > >
> > > > > > In my PWM to VFD folder you will find my report and a screen snapshot as well.
> > > > > >
> > > > > > I have found out during todays manual test that there are factory preset acceleration parameters set to 5sec ramp up and down. Now I changed these to 0.1sec so it looks better but not tracking good.
> > > > > >
> > > > > > I hope you will find something useful for further testing, one thing that worries me is that the PWM to voltage adapter only swings from 0 to +2.5V not +5V as expected I suppose.
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Bengt,
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Looking at the Plot the problem is obvious.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The PWM output (green plot) is limited to only +/- 1 yet the spindle is driving +/-100 RPM or so.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > You should go back and test your control of the VFD.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I had assumed you had tested manual control of the VFD.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Go back to the PWM 1KHz and vary the PWM output.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Check what speeds are possible.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also check what the analog voltages come out of your PWM circuit with a voltmeter.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Imagine yourself as the servo.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Command a slower and slower speed until
> you approach a position and then stop.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Would you be able to do it?
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Regards
> > > > > > > TKÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 4938 From: Tom Kerekes Date: 5/15/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
Ok let's go one step at a time.  Let's get Console Jogs to work.
 
#1 On the Step Response Screen use the Zero and Move buttons to Download and Enable the Spindle Axis and verify it is functioning properly as your previous plots showed.
 
#2 On the Console Screen Enter:  Jog4=4000   Does the spindle rotate 1 rev per second?  If not, explain what happened.
 
#3 On the Console Screen Enter:  Jog4=40000 Does the spindle rotate 10 rev per second (600 RPM)?
 
Regards
TK
 
 
Group: DynoMotion Message: 4941 From: Bengt Sjoelund Date: 5/15/2012
Subject: Re: PWM to VFD
Hi Tom,
You are one early bird ;)

#1 OK
#2 -4000 = CW / turns the spindle ~15turns and stops ~1sec / 67rpm
#3 -40000 runs the spindle with 67 rpm

#2 if jog4=4000 it turns 1rev stops 1rev stops etc

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Ok let's go one step at a time.  Let's get Console Jogs to work.
>  
> #1 On the Step Response Screen use the Zero and Move buttons to Download and Enable the Spindle Axis and verify it is functioning properly as your previous plots showed.
>  
> #2 On the Console Screen Enter:  Jog4=4000   Does the spindle rotate 1 rev per second?  If not, explain what happened.
>  
> #3 On the Console Screen Enter:  Jog4=40000 Does the spindle rotate 10 rev per second (600 RPM)?
>  
> Regards
> TK
>  
>  
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, May 15, 2012 6:18 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
>
> 1. Cannot get jog4=40000 to work
> 2. Nothing in Mach3 MDI M3 S300
>
> Obviosly something is wrong. Can you tell me what C files should be compiled and downloaded to KFlop and what files is needed in Mach3 plugin setup.
>
> I assume in Mach3 following will be needed in Mach3
> CombiMill 3axis.c (do I need to add ch4?)
> SpindleMach3PWMHiLoGear.c is the latest tested file
> CombiMillHomeMach3C.c
> NotifyMach3.c
>
> Sorry but I am all mixed up here, so be kind to me ;)
> Would be helpful to have a step by step setup so I can manage to get all working.
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > Yes that looks quite good.  You still are not moving very far.  1.5 revs??  So the speed is only getting up to about 200 RPM.  And we are only using 7 of 255 PWM counts.  The 0.2 sec delay is a bit odd but shouldn't hurt anything.  
> >  
> > Realize that just because the spindle motion is not perfect doesn't mean that the Rigid Tap won't be perfect.  This is because the Z motion will be sync'ed to the Spindle Motion.  We just need the Spindle to accelerate smoothly to the right tapping speed and stop/reverse after the right number of turns.  Other systems that just try to move the spindle and z axis in an open loop but coordinated manner wouldn't work as well.  You shouldn't need flexible tap holders.  Hopefully :}
> >  
> > The C Program is written to always output CW or CCW whenever the axis is enabled.  So it always tries to hold position.  0 PWM setting causes it to stop so I don't see a need to disable the VFD.    It will disable everything if the axis is disabled.
> >  
> > You should also now be able to try setting constant spindle speed by commanding Jogs.  So for example on the Console Screen Jog4=40000 should be 600RPM exactly.  Also the SpindleMach3Jog.c should now work for Mach3.
> >  
> > Regarding the IO are those inputs or outputs?  Seems like Coolant On would be an output but you are referencing inputs.  But yes the general purpose inputs are very high impedance inputs which will just float if not driven.  They must be driven high and low (ie a pulldown resistor).
> >  
> > Regards
> > TK
> >  
> >  
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, May 14, 2012 12:38 PM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > Have uploaded PWMtoVFD 5.png to my folder.
> > I have tried to follow you instructions and have added the filter you wanted and 50Hz Q1.4 looks best if I can 'read' the curves correctly.
> >
> > As you meantioned tapping would probably work just fine even with a very coarse thread and I will be using tap holders that are flexible to some degree up and down.
> >
> > One thing I have noticed is that after the spindle makes it move the bits 152 and 153 are on. I assumed that they should be off?
> >
> > So is this as good as we can get it and I can do tapping and run the spindle I assume there will be a new C-file to make it work with Mach3.
> >
> > Have been doing some wireing to JP12, I am a bit confused as bits 128 to 135 behave very odd I am using 132-134-135 that is 132 for worklight swith on my control panel, 134 for manual coolant on and 135 for starting central oiler pump.
> > 132/134 are +24VDC via 1K + 3.3V Zener to GND and a serial 100R to input, 135 3.3V via swithch to input.
> > When I start up all show active even if OFF and unused/unconnected 128-131+133 show active.
> > Cannot get 132 and 135 to work but 134 works OK, do I need pulldown to settle these bits?
> > JP12 is connected via Winford breakout with 10-12cm ribboncable.
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >
> > > Yes I think that is getting close.  Looks like it is moving to within about ~100 counts or about 10 degrees of where it is being told to go.  That should be sufficient for rigid tapping.
> > >
> > > But notice the actual speed (red slope) is not able to keep up with the commanded speed (blue slope).  This is because we have a Max Error setting of only 200 counts combined with a low P gain setting of 0.006.  200 x 0.006 = 1.2 PWM counts.  You can see that the PWM Output (green plot) is clipped at that value so we are never commanding more than 1 PWM count.  Let's increase the Max Error from 200 to 4000.  Also try a bigger move that would accelerate to a higher speed.  You may have to re-adjust the P gain for best results.
> > >
> > >
> > > To reduce over shoot you might try some D gain.  You should use this with a 2nd order Low pass filter (Q=1.4) to smooth the output.  A low pass filter has the benefit of smoothing the output but will have the disadvantage of phase lag which will cause the system to overshoot more.  The lower the frequency the more smoothing but the more phase lag.  Add the Low Pass filter first (before any D gain) and find the lowest frequency possible that doesn't add significant additional overshoot.  I'm guessing this may be around 50Hz.  Then start adding D gain to see if it reduces the overshoot.  It's hard for me to predict what the numeric value might be.  Start with is tiny number that has no effect.  Then increase it in steps of about 50% increases until you see an effect.  Too much will cause the system to become more unstable.
> > >
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Saturday, May 12, 2012 4:37 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > Changed both transistors just to safe and now it is working. Uploaded a picture PWMtoVFD4.png to my folder.
> > >
> > > Can you be so kind and direct me so we can get the best of of this.
> > > How can I command in Console a fixed speed for test?
> > >
> > > Looking forward to see what you have in mind for this old fart ;)
> > > I am happy as I have peed out the small stone last night, picture in same folder.
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > >
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > I agree.ÃÆ'‚  OrÃÆ'‚  a short from base to collector somehow.
> > > > ÃÆ'‚ 
> > > > Regards
> > > > TK
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Friday, May 11, 2012 1:34 PM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > >
> > > > I just had to get down and do it, had a break with pain so here it is.
> > > >
> > > > PWM
> > > > 0= 0V 255= 2.7V
> > > > collector opto
> > > > 4.99V 0.137V
> > > > base pnp
> > > > 4.99V 4.18V
> > > > base npn
> > > > 0.525V 0.642V
> > > > collector pnp
> > > > 0.510V 4.77V
> > > > collector npn
> > > > 0.528V 0.643V
> > > >
> > > > Looks to me like the 2N2222A is out of order (Ebay...)
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > No rush.ÃÆ'Æ'‚ÃÆ'‚  Take care of yourself we need you :}
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Regards
> > > > > TK
> > > > >
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Friday, May 11, 2012 11:41 AM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom,
> > > > >
> > > > > I will carry out the measurements tomorrow, just now I am not up to it as I am having one or several kidney stones on the way out.
> > > > > Hopefully this will be over soon.
> > > > >
> > > > > This is what I was afraid of as the max would not go over 2.5V so let us hope I can nail down the fault.
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Thanks.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That was exactly the information I needed.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It seems like there is still a problem with your circuit.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  For a duty cycle of 0% (solid off) your circuit output should be closer to 0V (0.1V or less).ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Not 0.5V.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also 100% (solid on) should be approximately 4.8V not 2.5V.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It should be easy to use a voltmeter toÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ locate the
> problem.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  In the 0% and 100% cases everything is steady state.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I've uploaded two schematic files where I have marked the expected voltages at each node in your circuit.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ Please command the PWM to 0% (value=0) and PWM to
> > 100% (value=255) and measure the voltages to see what you actually have at each node so we can locate the problem.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > http://f1.grp.yahoofs.com/v1/oFOtT2Z7Vu3mb-HtLJrM0zouZxMlRoikiy7UiNSef9Znrtl98rj6hT6fqhc2raV0LGWqTh0hEcsGFDQ8FFW29w/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20OFF%20TK.png
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > http://f1.grp.yahoofs.com/v1/oFOtTwpfuFnmb-HtjrjdyeNq-eXiQWjBHvWPTd2NS7sojh8fmcw4eq_9F-ukbqA6letv9dvRbafVmcOCFDXHXQ/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20ON%20TK.png
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Friday, May 11, 2012 5:27 AM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom,
> > > > > >
> > > > > > I have uploaded the test you requested, hopefully this will give you some ideas on how to proceed with further tests.
> > > > > >
> > > > > > What do you say about modifying the PWM adapter (PWM to VFD 0-5VDC.png) as I get no higher than 2.5Vmax with 100% dutycycle on PWM. Changing collector to output resistors from 1K to <50R? Have this up in simulator (Multisim) with a load of 1K5 on the output that gives with 1K resistors 2.5V changing to 33R gives 4.82V so that gives a swing from 2% duty cycle 80mV to 99% duty cycle 4.82V
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Bengt,
> > > > > > >
> > > > > > > Normally the way a PWM works is that we leave the frequency constant (ie 1KHz and Pre Scale = 65) and vary the duty cycle from 0 to 100%.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Since this is an 8-bit PWM that means to set the duty cycle from values from 0 to 255.
> > > > > > >
> > > > > > > If you observe the plot we are still having a problem commanding a slow speed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The slowest it ever goes is about 8000 counts/sec which is about 100RPM.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We have a limit in the C program to never reverse direction relays (CW to CCW) more than every 1 second.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So the plot shows a change in direction every one
> second.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  See at times 0.1 second, 1.1 second, 2.1 second.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I thought the way this would work was that as we got close to the target
> > we could reduce the PWM to zero and the spindle would slow to a stop.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But even though we command zero the spindle continues at 100RPM and way overshoots the target.
> > > > > > >
> > > > > > > Please perform the following tests:
> > > > > > >
> > > > > > > #1 using the PWM1KHz.c program vary the PWM values from 0 to 255 while leaving the frequency constant (Prescale 65).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Measure the output voltage.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We are mostly interested in the low voltage range so take lots of measurements with small values: 0, 1, 2, 3, 4...ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  but in mid and high range you can skip every 10 or
> so.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > >
> > > > > > >
> > > > > > > #2 use your potentiometer and check the RPM with small input voltages like 0V, 0.05V, 0.1V ...
> > > > > > >
> > > > > > > This may not work as well as I hoped.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But let's figure out exactly what the problem is before we give up on this technique.
> > > > > > >
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Thursday, May 10, 2012 8:41 AM
> > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > In my PWM to VFD folder you will find my report and a screen snapshot as well.
> > > > > > >
> > > > > > > I have found out during todays manual test that there are factory preset acceleration parameters set to 5sec ramp up and down. Now I changed these to 0.1sec so it looks better but not tracking good.
> > > > > > >
> > > > > > > I hope you will find something useful for further testing, one thing that worries me is that the PWM to voltage adapter only swings from 0 to +2.5V not +5V as expected I suppose.
> > > > > > >
> > > > > > > Cheers
> > > > > > > Bengt
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Bengt,
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Looking at the Plot the problem is obvious.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The PWM output (green plot) is limited to only +/- 1 yet the spindle is driving +/-100 RPM or so.
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > You should go back and test your control of the VFD.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I had assumed you had tested manual control of the VFD.
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Go back to the PWM 1KHz and vary the PWM output.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Check what speeds are possible.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also check what the analog voltages come out of your PWM circuit with a
> voltmeter.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Imagine yourself as the servo.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Command a slower and slower speed until
> > you approach a position and then stop.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Would you be able to do it?
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Regards
> > > > > > > > TKÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 4946 From: Tom Kerekes Date: 5/15/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
Are you saying you enter Jog4=4000 and the Spindle turns 15 turns and stops forever?
 
Could you explain things in more detail what you are doing and exactly what happens?  Please include as much information as possible including things like information on what the commanded Dest and Encoder Position is doing on the Axis Screen and whether the axes remain enabled and so forth?
 
I suppose we should go back to the Step Response Screen.  I asked how many revs the Spindle was moving for the plotted moves and you never answered.  I asked to test larger and faster speeds and you never responded.  I don't know whether you did those requests and all was good or did not test.  All you have shown is a slow 6000 count move.  Is that move 1.5 Revs?
Regards
TK

Group: DynoMotion Message: 4947 From: Bengt Sjoelund Date: 5/15/2012
Subject: Re: PWM to VFD
Hi Tom,
Jog4=4000 SP turns 15rev stops 1sec turns 15r stops 1sec etc.....
Opening cfile OutputtoPWMDirv3.c
Compile/download/run
load my data
Disable/zero/move 3sec/6000
Spindle rotates ~1.5rev
Axis screen
Dest goes to 6000 and counts down.
Pos overshoots 10-20 and zeroes at -10-20 (varies from move to move)
When 60000 is commanded Dest goes up to 60.000 and down
Pos somewhere about 51-52000 and counts down
When 100000 Dest goes up to 100000 and down
Pos to 83.000+ and ends at +40 to 50
Checked rpm's to be ~200rpm

Sorry but I cannot set higher speeds, what figures to change?

Checked PWMto1kHz and 100PWM = 512rpm

All spindle movement starts with CCW

Sorry for long delay but something odd with Yahoo as my keyboard is like typeing in tar.

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> Are you saying you enter Jog4=4000 and the Spindle turns 15 turns and stops forever?
>  
> Could you explain things in more detail what you are doing and exactly what happens?  Please include as much information as possible including things like information on what the commanded Dest and Encoder Position is doing on the Axis Screen and whether the axes remain enabled and so forth?
>  
> I suppose we should go back to the Step Response Screen.  I asked how many revs the Spindle was moving for the plotted moves and you never answered.  I asked to test larger and faster speeds and you never responded.  I don't know whether you did those requests and all was good or did not test.  All you have shown is a slow 6000 count move.  Is that move 1.5 Revs?
> Regards
> TK
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, May 15, 2012 7:54 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
> You are one early bird ;)
>
> #1 OK
> #2 -4000 = CW / turns the spindle ~15turns and stops ~1sec / 67rpm
> #3 -40000 runs the spindle with 67 rpm
>
> #2 if jog4=4000 it turns 1rev stops 1rev stops etc
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > Ok let's go one step at a time.  Let's get Console Jogs to work.
> >  
> > #1 On the Step Response Screen use the Zero and Move buttons to Download and Enable the Spindle Axis and verify it is functioning properly as your previous plots showed.
> >  
> > #2 On the Console Screen Enter:  Jog4=4000   Does the spindle rotate 1 rev per second?  If not, explain what happened.
> >  
> > #3 On the Console Screen Enter:  Jog4=40000 Does the spindle rotate 10 rev per second (600 RPM)?
> >  
> > Regards
> > TK
> >  
> >  
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tuesday, May 15, 2012 6:18 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> >
> > 1. Cannot get jog4=40000 to work
> > 2. Nothing in Mach3 MDI M3 S300
> >
> > Obviosly something is wrong. Can you tell me what C files should be compiled and downloaded to KFlop and what files is needed in Mach3 plugin setup.
> >
> > I assume in Mach3 following will be needed in Mach3
> > CombiMill 3axis.c (do I need to add ch4?)
> > SpindleMach3PWMHiLoGear.c is the latest tested file
> > CombiMillHomeMach3C.c
> > NotifyMach3.c
> >
> > Sorry but I am all mixed up here, so be kind to me ;)
> > Would be helpful to have a step by step setup so I can manage to get all working.
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > Yes that looks quite good.  You still are not moving very far.  1.5 revs??  So the speed is only getting up to about 200 RPM.  And we are only using 7 of 255 PWM counts.  The 0.2 sec delay is a bit odd but shouldn't hurt anything.  
> > >  
> > > Realize that just because the spindle motion is not perfect doesn't mean that the Rigid Tap won't be perfect.  This is because the Z motion will be sync'ed to the Spindle Motion.  We just need the Spindle to accelerate smoothly to the right tapping speed and stop/reverse after the right number of turns.  Other systems that just try to move the spindle and z axis in an open loop but coordinated manner wouldn't work as well.  You shouldn't need flexible tap holders.  Hopefully :}
> > >  
> > > The C Program is written to always output CW or CCW whenever the axis is enabled.  So it always tries to hold position.  0 PWM setting causes it to stop so I don't see a need to disable the VFD.    It will disable everything if the axis is disabled.
> > >  
> > > You should also now be able to try setting constant spindle speed by commanding Jogs.  So for example on the Console Screen Jog4=40000 should be 600RPM exactly.  Also the SpindleMach3Jog.c should now work for Mach3.
> > >  
> > > Regarding the IO are those inputs or outputs?  Seems like Coolant On would be an output but you are referencing inputs.  But yes the general purpose inputs are very high impedance inputs which will just float if not driven.  They must be driven high and low (ie a pulldown resistor).
> > >  
> > > Regards
> > > TK
> > >  
> > >  
> > >
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Monday, May 14, 2012 12:38 PM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > Have uploaded PWMtoVFD 5.png to my folder.
> > > I have tried to follow you instructions and have added the filter you wanted and 50Hz Q1.4 looks best if I can 'read' the curves correctly.
> > >
> > > As you meantioned tapping would probably work just fine even with a very coarse thread and I will be using tap holders that are flexible to some degree up and down.
> > >
> > > One thing I have noticed is that after the spindle makes it move the bits 152 and 153 are on. I assumed that they should be off?
> > >
> > > So is this as good as we can get it and I can do tapping and run the spindle I assume there will be a new C-file to make it work with Mach3.
> > >
> > > Have been doing some wireing to JP12, I am a bit confused as bits 128 to 135 behave very odd I am using 132-134-135 that is 132 for worklight swith on my control panel, 134 for manual coolant on and 135 for starting central oiler pump.
> > > 132/134 are +24VDC via 1K + 3.3V Zener to GND and a serial 100R to input, 135 3.3V via swithch to input.
> > > When I start up all show active even if OFF and unused/unconnected 128-131+133 show active.
> > > Cannot get 132 and 135 to work but 134 works OK, do I need pulldown to settle these bits?
> > > JP12 is connected via Winford breakout with 10-12cm ribboncable.
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > >
> > > > Yes I think that is getting close.ÃÆ'‚  Looks like it is moving to within about ~100 counts or about 10 degrees of where it is being told to go.ÃÆ'‚  That should be sufficient for rigid tapping.
> > > >
> > > > But notice the actual speed (red slope) is not able to keep up with the commanded speed (blue slope).ÃÆ'‚  This is because we have a Max Error setting of only 200 counts combined with a low P gain setting of 0.006.ÃÆ'‚  200 x 0.006 = 1.2 PWM counts.ÃÆ'‚  You can see that the PWM Output (green plot) is clipped at that value so we are never commanding more than 1 PWM count.ÃÆ'‚  Let's increase the Max Error from 200 to 4000.ÃÆ'‚  Also try a bigger move that would accelerate to a higher speed.ÃÆ'‚  You may have to re-adjust the P gain for best results.
> > > >
> > > >
> > > > To reduce over shoot you might try some D gain.ÃÆ'‚  You should use this with a 2nd order Low pass filter (Q=1.4) to smooth the output.ÃÆ'‚  A low pass filter has the benefit of smoothing the output but will have the disadvantage of phase lag which will cause the system to overshoot more.ÃÆ'‚  The lower the frequency the more smoothing but the more phase lag.ÃÆ'‚  Add the Low Pass filter first (before any D gain) and find the lowest frequency possible that doesn't add significant additional overshoot.ÃÆ'‚  I'm guessing this may be around 50Hz.ÃÆ'‚  Then start adding D gain to see if it reduces the overshoot.ÃÆ'‚  It's hard for me to predict what the numeric value might be.ÃÆ'‚  Start with is tiny number that has no effect.ÃÆ'‚  Then increase it in steps of about 50% increases until you see an
> effect.ÃÆ'‚  Too much will cause the system to become more unstable.
> > > >
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Saturday, May 12, 2012 4:37 AM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > >
> > > > Changed both transistors just to safe and now it is working. Uploaded a picture PWMtoVFD4.png to my folder.
> > > >
> > > > Can you be so kind and direct me so we can get the best of of this.
> > > > How can I command in Console a fixed speed for test?
> > > >
> > > > Looking forward to see what you have in mind for this old fart ;)
> > > > I am happy as I have peed out the small stone last night, picture in same folder.
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > >
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > I agree.ÃÆ'Æ'‚ÃÆ'‚  OrÃÆ'Æ'‚ÃÆ'‚  a short from base to collector somehow.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Regards
> > > > > TK
> > > > >
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Friday, May 11, 2012 1:34 PM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom,
> > > > >
> > > > > I just had to get down and do it, had a break with pain so here it is.
> > > > >
> > > > > PWM
> > > > > 0= 0V 255= 2.7V
> > > > > collector opto
> > > > > 4.99V 0.137V
> > > > > base pnp
> > > > > 4.99V 4.18V
> > > > > base npn
> > > > > 0.525V 0.642V
> > > > > collector pnp
> > > > > 0.510V 4.77V
> > > > > collector npn
> > > > > 0.528V 0.643V
> > > > >
> > > > > Looks to me like the 2N2222A is out of order (Ebay...)
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > No rush.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Take care of yourself we need you :}
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Friday, May 11, 2012 11:41 AM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom,
> > > > > >
> > > > > > I will carry out the measurements tomorrow, just now I am not up to it as I am having one or several kidney stones on the way out.
> > > > > > Hopefully this will be over soon.
> > > > > >
> > > > > > This is what I was afraid of as the max would not go over 2.5V so let us hope I can nail down the fault.
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Bengt,
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Thanks.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That was exactly the information I needed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It seems like there is still a problem with your circuit.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  For a duty cycle of 0% (solid off) your circuit output should be closer to 0V (0.1V or less).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Not
> 0.5V.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also 100% (solid on) should be approximately 4.8V not 2.5V.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It should be easy to use a voltmeter toÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ locate the
> > problem.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  In the 0% and 100% cases everything is steady state.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I've uploaded two schematic files where I have marked the expected voltages at each node in your circuit.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ Please command the PWM to 0% (value=0) and PWM to
> > > 100% (value=255) and measure the voltages to see what you actually have at each node so we can locate the problem.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > http://f1.grp.yahoofs.com/v1/oFOtT2Z7Vu3mb-HtLJrM0zouZxMlRoikiy7UiNSef9Znrtl98rj6hT6fqhc2raV0LGWqTh0hEcsGFDQ8FFW29w/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20OFF%20TK.png
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > http://f1.grp.yahoofs.com/v1/oFOtTwpfuFnmb-HtjrjdyeNq-eXiQWjBHvWPTd2NS7sojh8fmcw4eq_9F-ukbqA6letv9dvRbafVmcOCFDXHXQ/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20ON%20TK.png
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Friday, May 11, 2012 5:27 AM
> > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > I have uploaded the test you requested, hopefully this will give you some ideas on how to proceed with further tests.
> > > > > > >
> > > > > > > What do you say about modifying the PWM adapter (PWM to VFD 0-5VDC.png) as I get no higher than 2.5Vmax with 100% dutycycle on PWM. Changing collector to output resistors from 1K to <50R? Have this up in simulator (Multisim) with a load of 1K5 on the output that gives with 1K resistors 2.5V changing to 33R gives 4.82V so that gives a swing from 2% duty cycle 80mV to 99% duty cycle 4.82V
> > > > > > >
> > > > > > > Cheers
> > > > > > > Bengt
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Bengt,
> > > > > > > >
> > > > > > > > Normally the way a PWM works is that we leave the frequency constant (ie 1KHz and Pre Scale = 65) and vary the duty cycle from 0 to 100%.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Since this is an 8-bit PWM that means to set the duty cycle from values from 0 to 255.
> > > > > > > >
> > > > > > > > If you observe the plot we are still having a problem commanding a slow speed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The slowest it ever goes is about 8000 counts/sec which is about 100RPM.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We have a limit in the C program to never reverse direction
> relays (CW to CCW) more than every 1 second.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So the plot shows a change in direction every one
> > second.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  See at times 0.1 second, 1.1 second, 2.1
> second.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I thought the way this would work was that as we got close to the target
> > > we could reduce the PWM to zero and the spindle would slow to a stop.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But even though we command zero the spindle continues at 100RPM and way overshoots the target.
> > > > > > > >
> > > > > > > > Please perform the following tests:
> > > > > > > >
> > > > > > > > #1 using the PWM1KHz.c program vary the PWM values from 0 to 255 while leaving the frequency constant (Prescale 65).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Measure the output voltage.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We are mostly interested in the low voltage range so take lots of
> measurements with small values: 0, 1, 2, 3, 4...ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  but in mid and high range you can skip every 10 or
> > so.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > >
> > > > > > > >
> > > > > > > > #2 use your potentiometer and check the RPM with small input voltages like 0V, 0.05V, 0.1V ...
> > > > > > > >
> > > > > > > > This may not work as well as I hoped.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But let's figure out exactly what the problem is before we give up on this technique.
> > > > > > > >
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ________________________________
> > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Thursday, May 10, 2012 8:41 AM
> > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > >
> > > > > > > >
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > In my PWM to VFD folder you will find my report and a screen snapshot as well.
> > > > > > > >
> > > > > > > > I have found out during todays manual test that there are factory preset acceleration parameters set to 5sec ramp up and down. Now I changed these to 0.1sec so it looks better but not tracking good.
> > > > > > > >
> > > > > > > > I hope you will find something useful for further testing, one thing that worries me is that the PWM to voltage adapter only swings from 0 to +2.5V not +5V as expected I suppose.
> > > > > > > >
> > > > > > > > Cheers
> > > > > > > > Bengt
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Bengt,
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Looking at the Plot the problem is obvious.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The PWM output (green plot) is limited to only +/- 1 yet the spindle is driving +/-100 RPM or so.
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > You should go back and test your control of the VFD.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I had assumed you had tested manual control of the VFD.
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Go back to the PWM 1KHz and vary the PWM output.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Check what speeds are
> possible.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also check what the analog voltages come out of your PWM circuit with a
> > voltmeter.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Imagine yourself as the
> servo.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Command a slower and slower speed until
> > > you approach a position and then stop.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Would you be able to do it?
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Regards
> > > > > > > > > TKÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 4948 From: Tom Kerekes Date: 5/15/2012
Subject: Re: PWM to VFD
Hi Bengt,

If you still have Max Error = 4000  and P gain = 0.0031?

Then 4000 x 0.0031 = 12 PWM counts

Regards
TK


Group: DynoMotion Message: 4949 From: Bengt Sjoelund Date: 5/15/2012
Subject: Re: PWM to VFD
Hi Tom,
Change to 85000 gives following jog4=
8000 127rpm
16000 254rpm
32000 508rpm
64000 1018rpm
6000 95rpm but a bit unstable as I can hear

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>
> If you still have Max Error = 4000  and P gain = 0.0031?
>
> Then 4000 x 0.0031 = 12 PWM counts
>
> Regards
> TK
>
>
>
>
>
> ________________________________
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, May 15, 2012 11:52 AM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
> Jog4=4000 SP turns 15rev stops 1sec turns 15r stops 1sec etc.....
> Opening cfile OutputtoPWMDirv3.c
> Compile/download/run
> load my data
> Disable/zero/move 3sec/6000
> Spindle rotates ~1.5rev
> Axis screen
> Dest goes to 6000 and counts down.
> Pos overshoots 10-20 and zeroes at -10-20 (varies from move to move)
> When 60000 is commanded Dest goes up to 60.000 and down
> Pos somewhere about 51-52000 and counts down
> When 100000 Dest goes up to 100000 and down
> Pos to 83.000+ and ends at +40 to 50
> Checked rpm's to be ~200rpm
>
> Sorry but I cannot set higher speeds, what figures to change?
>
> Checked PWMto1kHz and 100PWM = 512rpm
>
> All spindle movement starts with CCW
>
> Sorry for long delay but something odd with Yahoo as my keyboard is like typeing in tar.
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > Are you saying you enter Jog4=4000 and the Spindle turns 15 turns and stops forever?
> >  
> > Could you explain things in more detail what you are doing and exactly what happens?  Please include as much information as possible including things like information on what the commanded Dest and Encoder Position is doing on the Axis Screen and whether the axes remain enabled and so forth?
> >  
> > I suppose we should go back to the Step Response Screen.  I asked how many revs the Spindle was moving for the plotted moves and you never answered.  I asked to test larger and faster speeds and you never responded.  I don't know whether you did those requests and all was good or did not test.  All you have shown is a slow 6000 count move.  Is that move 1.5 Revs?
> > Regards
> > TK
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tuesday, May 15, 2012 7:54 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> > You are one early bird ;)
> >
> > #1 OK
> > #2 -4000 = CW / turns the spindle ~15turns and stops ~1sec / 67rpm
> > #3 -40000 runs the spindle with 67 rpm
> >
> > #2 if jog4=4000 it turns 1rev stops 1rev stops etc
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > Ok let's go one step at a time.  Let's get Console Jogs to work.
> > >  
> > > #1 On the Step Response Screen use the Zero and Move buttons to Download and Enable the Spindle Axis and verify it is functioning properly as your previous plots showed.
> > >  
> > > #2 On the Console Screen Enter:  Jog4=4000   Does the spindle rotate 1 rev per second?  If not, explain what happened.
> > >  
> > > #3 On the Console Screen Enter:  Jog4=40000 Does the spindle rotate 10 rev per second (600 RPM)?
> > >  
> > > Regards
> > > TK
> > >  
> > >  
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tuesday, May 15, 2012 6:18 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > >
> > > 1. Cannot get jog4=40000 to work
> > > 2. Nothing in Mach3 MDI M3 S300
> > >
> > > Obviosly something is wrong. Can you tell me what C files should be compiled and downloaded to KFlop and what files is needed in Mach3 plugin setup.
> > >
> > > I assume in Mach3 following will be needed in Mach3
> > > CombiMill 3axis.c (do I need to add ch4?)
> > > SpindleMach3PWMHiLoGear.c is the latest tested file
> > > CombiMillHomeMach3C.c
> > > NotifyMach3.c
> > >
> > > Sorry but I am all mixed up here, so be kind to me ;)
> > > Would be helpful to have a step by step setup so I can manage to get all working.
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > Yes that looks quite good.ÃÆ'‚  You still are not moving very far.ÃÆ'‚  1.5 revs??ÃÆ'‚  So the speed is only getting up to about 200 RPM.ÃÆ'‚  And we are only using 7 of 255 PWM counts.ÃÆ'‚  The 0.2 sec delay is a bit odd but shouldn't hurt anything.ÃÆ'‚ ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > > Realize that just because the spindle motion is not perfect doesn't mean that the Rigid Tap won't be perfect.ÃÆ'‚  This is because the Z motion will be sync'ed to the Spindle Motion.ÃÆ'‚  We just need the Spindle to accelerate smoothly to the right tapping speed and stop/reverse after the right number of turns.ÃÆ'‚  Other systems that just try to move the spindle and z axis in an open loop but coordinated manner wouldn't work as well.ÃÆ'‚  You shouldn't need flexible tap holders.ÃÆ'‚  Hopefully :}
> > > > ÃÆ'‚ 
> > > > The C Program is written to always output CW or CCW whenever the axis is enabled.ÃÆ'‚  So it always tries to hold position.ÃÆ'‚  0 PWM setting causes it to stop so I don't see a need to disable the VFD.ÃÆ'‚ ÃÆ'‚ ÃÆ'‚  It will disable everything if the axis is disabled.
> > > > ÃÆ'‚ 
> > > > You should also now be able to try setting constant spindle speed by commanding Jogs.ÃÆ'‚  So for example on the Console Screen Jog4=40000 should be 600RPM exactly.ÃÆ'‚  Also the SpindleMach3Jog.c should now work for Mach3.
> > > > ÃÆ'‚ 
> > > > Regarding the IO are those inputs or outputs?ÃÆ'‚  Seems like Coolant On would be an output but you are referencing inputs.ÃÆ'‚  But yes the general purpose inputs are very high impedance inputs which will just float if not driven.ÃÆ'‚  They must be driven high and low (ie a pulldown resistor).
> > > > ÃÆ'‚ 
> > > > Regards
> > > > TK
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Monday, May 14, 2012 12:38 PM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > >
> > > > Have uploaded PWMtoVFD 5.png to my folder.
> > > > I have tried to follow you instructions and have added the filter you wanted and 50Hz Q1.4 looks best if I can 'read' the curves correctly.
> > > >
> > > > As you meantioned tapping would probably work just fine even with a very coarse thread and I will be using tap holders that are flexible to some degree up and down.
> > > >
> > > > One thing I have noticed is that after the spindle makes it move the bits 152 and 153 are on. I assumed that they should be off?
> > > >
> > > > So is this as good as we can get it and I can do tapping and run the spindle I assume there will be a new C-file to make it work with Mach3.
> > > >
> > > > Have been doing some wireing to JP12, I am a bit confused as bits 128 to 135 behave very odd I am using 132-134-135 that is 132 for worklight swith on my control panel, 134 for manual coolant on and 135 for starting central oiler pump.
> > > > 132/134 are +24VDC via 1K + 3.3V Zener to GND and a serial 100R to input, 135 3.3V via swithch to input.
> > > > When I start up all show active even if OFF and unused/unconnected 128-131+133 show active.
> > > > Cannot get 132 and 135 to work but 134 works OK, do I need pulldown to settle these bits?
> > > > JP12 is connected via Winford breakout with 10-12cm ribboncable.
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > >
> > > > > Yes I think that is getting close.ÃÆ'Æ'‚ÃÆ'‚  Looks like it is moving to within about ~100 counts or about 10 degrees of where it is being told to go.ÃÆ'Æ'‚ÃÆ'‚  That should be sufficient for rigid tapping.
> > > > >
> > > > > But notice the actual speed (red slope) is not able to keep up with the commanded speed (blue slope).ÃÆ'Æ'‚ÃÆ'‚  This is because we have a Max Error setting of only 200 counts combined with a low P gain setting of 0.006.ÃÆ'Æ'‚ÃÆ'‚  200 x 0.006 = 1.2 PWM counts.ÃÆ'Æ'‚ÃÆ'‚  You can see that the PWM Output (green plot) is clipped at that value so we are never commanding more than 1 PWM count.ÃÆ'Æ'‚ÃÆ'‚  Let's increase the Max Error from 200 to 4000.ÃÆ'Æ'‚ÃÆ'‚  Also try a bigger move that would accelerate to a higher speed.ÃÆ'Æ'‚ÃÆ'‚  You may have to re-adjust the P gain for best results.
> > > > >
> > > > >
> > > > > To reduce over shoot you might try some D gain.ÃÆ'Æ'‚ÃÆ'‚  You should use this with a 2nd order Low pass filter (Q=1.4) to smooth the output.ÃÆ'Æ'‚ÃÆ'‚  A low pass filter has the benefit of smoothing the output but will have the disadvantage of phase lag which will cause the system to overshoot more.ÃÆ'Æ'‚ÃÆ'‚  The lower the frequency the more smoothing but the more phase lag.ÃÆ'Æ'‚ÃÆ'‚  Add the Low Pass filter first (before any D gain) and find the lowest frequency possible that doesn't add significant additional overshoot.ÃÆ'Æ'‚ÃÆ'‚  I'm guessing this may be around 50Hz.ÃÆ'Æ'‚ÃÆ'‚  Then start adding D gain to see if it reduces the overshoot.ÃÆ'Æ'‚ÃÆ'‚  It's hard for me to predict what the numeric value might
> be.ÃÆ'Æ'‚ÃÆ'‚  Start with is tiny number that has no effect.ÃÆ'Æ'‚ÃÆ'‚  Then increase it in steps of about 50% increases until you see an
> > effect.ÃÆ'Æ'‚ÃÆ'‚  Too much will cause the system to become more unstable.
> > > > >
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Saturday, May 12, 2012 4:37 AM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom,
> > > > >
> > > > > Changed both transistors just to safe and now it is working. Uploaded a picture PWMtoVFD4.png to my folder.
> > > > >
> > > > > Can you be so kind and direct me so we can get the best of of this.
> > > > > How can I command in Console a fixed speed for test?
> > > > >
> > > > > Looking forward to see what you have in mind for this old fart ;)
> > > > > I am happy as I have peed out the small stone last night, picture in same folder.
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > >
> > > > > >
> > > > > > Hi Bengt,
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > I agree.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  OrÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  a short from base to collector somehow.
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Friday, May 11, 2012 1:34 PM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom,
> > > > > >
> > > > > > I just had to get down and do it, had a break with pain so here it is.
> > > > > >
> > > > > > PWM
> > > > > > 0= 0V 255= 2.7V
> > > > > > collector opto
> > > > > > 4.99V 0.137V
> > > > > > base pnp
> > > > > > 4.99V 4.18V
> > > > > > base npn
> > > > > > 0.525V 0.642V
> > > > > > collector pnp
> > > > > > 0.510V 4.77V
> > > > > > collector npn
> > > > > > 0.528V 0.643V
> > > > > >
> > > > > > Looks to me like the 2N2222A is out of order (Ebay...)
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Bengt,
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > No rush.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Take care of yourself we need you :}
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Friday, May 11, 2012 11:41 AM
> > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > I will carry out the measurements tomorrow, just now I am not up to it as I am having one or several kidney stones on the way out.
> > > > > > > Hopefully this will be over soon.
> > > > > > >
> > > > > > > This is what I was afraid of as the max would not go over 2.5V so let us hope I can nail down the fault.
> > > > > > >
> > > > > > > Cheers
> > > > > > > Bengt
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Bengt,
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Thanks.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That was exactly the information I needed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It seems like there is still a problem with your
> circuit.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  For a duty cycle of 0% (solid off) your circuit output should be closer to 0V (0.1V or less).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Not
> > 0.5V.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also 100% (solid on) should be approximately 4.8V not 2.5V.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It should be easy to use a voltmeter
> toÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ locate the
> > > problem.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  In the 0% and 100% cases everything is steady state.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I've uploaded two schematic files where I have marked the expected voltages at each node in your
> circuit.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ Please command the PWM to 0% (value=0) and PWM to
> > > > 100% (value=255) and measure the voltages to see what you actually have at each node so we can locate the problem.
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > http://f1.grp.yahoofs.com/v1/oFOtT2Z7Vu3mb-HtLJrM0zouZxMlRoikiy7UiNSef9Znrtl98rj6hT6fqhc2raV0LGWqTh0hEcsGFDQ8FFW29w/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20OFF%20TK.png
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > http://f1.grp.yahoofs.com/v1/oFOtTwpfuFnmb-HtjrjdyeNq-eXiQWjBHvWPTd2NS7sojh8fmcw4eq_9F-ukbqA6letv9dvRbafVmcOCFDXHXQ/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20ON%20TK.png
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Friday, May 11, 2012 5:27 AM
> > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > >
> > > > > > > >
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > I have uploaded the test you requested, hopefully this will give you some ideas on how to proceed with further tests.
> > > > > > > >
> > > > > > > > What do you say about modifying the PWM adapter (PWM to VFD 0-5VDC.png) as I get no higher than 2.5Vmax with 100% dutycycle on PWM. Changing collector to output resistors from 1K to <50R? Have this up in simulator (Multisim) with a load of 1K5 on the output that gives with 1K resistors 2.5V changing to 33R gives 4.82V so that gives a swing from 2% duty cycle 80mV to 99% duty cycle 4.82V
> > > > > > > >
> > > > > > > > Cheers
> > > > > > > > Bengt
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Bengt,
> > > > > > > > >
> > > > > > > > > Normally the way a PWM works is that we leave the frequency constant (ie 1KHz and Pre Scale = 65) and vary the duty cycle from 0 to 100%.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Since this is an 8-bit PWM that means to set the
> duty cycle from values from 0 to 255.
> > > > > > > > >
> > > > > > > > > If you observe the plot we are still having a problem commanding a slow speed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The slowest it ever goes is about 8000 counts/sec which is about
> 100RPM.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We have a limit in the C program to never reverse direction
> > relays (CW to CCW) more than every 1 second.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So the plot shows a change in direction every one
> > > second.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  See at times 0.1 second, 1.1 second, 2.1
> >
> second.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢Ã
> Æ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I thought the way this would work was that as we got close to the target
> > > > we could reduce the PWM to zero and the spindle would slow to a stop.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But even though we command zero the spindle continues at 100RPM and way overshoots the target.
> > > > > > > > >
> > > > > > > > > Please perform the following tests:
> > > > > > > > >
> > > > > > > > > #1 using the PWM1KHz.c program vary the PWM values from 0 to 255 while leaving the frequency constant (Prescale 65).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Measure the output
> voltage.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We are mostly interested in the low voltage range so take lots of
> > measurements with small values: 0, 1, 2, 3, 4...ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  but in mid and high range you can skip every 10 or
> > > so.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > #2 use your potentiometer and check the RPM with small input voltages like 0V, 0.05V, 0.1V ...
> > > > > > > > >
> > > > > > > > > This may not work as well as I hoped.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But let's figure out exactly what the problem is before we give up on this technique.
> > > > > > > > >
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ________________________________
> > > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Thursday, May 10, 2012 8:41 AM
> > > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Hi Tom,
> > > > > > > > >
> > > > > > > > > In my PWM to VFD folder you will find my report and a screen snapshot as well.
> > > > > > > > >
> > > > > > > > > I have found out during todays manual test that there are factory preset acceleration parameters set to 5sec ramp up and down. Now I changed these to 0.1sec so it looks better but not tracking good.
> > > > > > > > >
> > > > > > > > > I hope you will find something useful for further testing, one thing that worries me is that the PWM to voltage adapter only swings from 0 to +2.5V not +5V as expected I suppose.
> > > > > > > > >
> > > > > > > > > Cheers
> > > > > > > > > Bengt
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Bengt,
> > > > > > > > > >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Looking at the Plot the problem is
> obvious.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Â
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The PWM output (green plot) is limited to only +/- 1 yet the spindle is driving +/-100 RPM or so.
> > > > > > > > > >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > You should go back and test your control of the
> VFD.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I had assumed you had tested manual control of the VFD.
> > > > > > > > > >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Go back to the PWM 1KHz and vary the PWM
> output.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Check what speeds are
> >
> possible.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Â
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also check what the analog voltages come out of your PWM circuit with a
> > >
> voltmeter.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Ã
> ‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Imagine yourself as the
> >
> servo.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Command a slower and slower speed until
> > > > you approach a position and then
> stop.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Would you be able to do it?
> > > > > > > > > >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Regards
> > > > > > > > > >
> TKÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢Ã
> Æ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
Group: DynoMotion Message: 4951 From: Tom Kerekes Date: 5/15/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
ok that's progress.  I'm surprised it isn't more accurate.  With this method there could be some speed variation but the average speed pretty much must be exact.  How are you measuring?  You might check the counts with a stop watch.  For example Jog4=16000 should be exactly 240 RPM.  If you watch the counts on the Axis Screen the time from 1 million counts to the next should be:
 
1000000/16000 = 62.5 seconds
 
BTW Jog4=-16000 should be -240 RPM
 
I suppose we may as well handle the Hi/Lo Speed stuff next.
 
How do you expect this to work.  Is it ok to switch speeds while running?  For example if the User or the Gcode selects:
 
S200
S500
S1000
S1500
 
Is is ok to just at some point suddenly turn off Low Speed and switch to High speed on the fly while adjusting the PWM appropriately.  Or is it required to come to a full stop and then switch?
 
Could you perform a test using the Digital IO screen and the PWM1KHz.c example to manually make a test?
 
Regards
TK
 
 
 
 

Group: DynoMotion Message: 4953 From: Bengt Sjoelund Date: 5/16/2012
Subject: Re: PWM to VFD
Hi Tom,


I have today verified my spindle speeds as follows:

16000 = 240rpm at the encoder shaft that is the ingoing shaft into gearbox. I have been in the belief that it was 1:1 with spindle but actually no.
Spindle rotates at 254.4 rpm at commanded 16000 and at 32000 the rpms are 480 / 509.2 so I hope this can be adjusted in c-file if necessary.

I use a Phototachometer http://www.pedak.nl/Lutron/pdf/Dt-2234a.pdf

As regards shifting from LO to HI on the run works but not if tool is cutting as it takes a short time to stabilize the rpm.
So I would prefer that speed shifting is done when tool is not cutting

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> ok that's progress.  I'm surprised it isn't more accurate.  With this method there could be some speed variation but the average speed pretty much must be exact.  How are you measuring?  You might check the counts with a stop watch.  For example Jog4=16000 should be exactly 240 RPM.  If you watch the counts on the Axis Screen the time from 1 million counts to the next should be:
>  
> 1000000/16000 = 62.5 seconds
>  
> BTW Jog4=-16000 should be -240 RPM
>  
> I suppose we may as well handle the Hi/Lo Speed stuff next.
>  
> How do you expect this to work.  Is it ok to switch speeds while running?  For example if the User or the Gcode selects:
>  
> S200
> S500
> S1000
> S1500
>  
> Is is ok to just at some point suddenly turn off Low Speed and switch to High speed on the fly while adjusting the PWM appropriately.  Or is it required to come to a full stop and then switch?
>  
> Could you perform a test using the Digital IO screen and the PWM1KHz.c example to manually make a test?
>  
> Regards
> TK
>  
>  
>  
>  
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, May 15, 2012 2:11 PM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
> Change to 85000 gives following jog4=
> 8000 127rpm
> 16000 254rpm
> 32000 508rpm
> 64000 1018rpm
> 6000 95rpm but a bit unstable as I can hear
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >
> > If you still have Max Error = 4000  and P gain = 0.0031?
> >
> > Then 4000 x 0.0031 = 12 PWM counts
> >
> > Regards
> > TK
> >
> >
> >
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tuesday, May 15, 2012 11:52 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> > Jog4=4000 SP turns 15rev stops 1sec turns 15r stops 1sec etc.....
> > Opening cfile OutputtoPWMDirv3.c
> > Compile/download/run
> > load my data
> > Disable/zero/move 3sec/6000
> > Spindle rotates ~1.5rev
> > Axis screen
> > Dest goes to 6000 and counts down.
> > Pos overshoots 10-20 and zeroes at -10-20 (varies from move to move)
> > When 60000 is commanded Dest goes up to 60.000 and down
> > Pos somewhere about 51-52000 and counts down
> > When 100000 Dest goes up to 100000 and down
> > Pos to 83.000+ and ends at +40 to 50
> > Checked rpm's to be ~200rpm
> >
> > Sorry but I cannot set higher speeds, what figures to change?
> >
> > Checked PWMto1kHz and 100PWM = 512rpm
> >
> > All spindle movement starts with CCW
> >
> > Sorry for long delay but something odd with Yahoo as my keyboard is like typeing in tar.
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > Are you saying you enter Jog4=4000 and the Spindle turns 15 turns and stops forever?
> > >  
> > > Could you explain things in more detail what you are doing and exactly what happens?  Please include as much information as possible including things like information on what the commanded Dest and Encoder Position is doing on the Axis Screen and whether the axes remain enabled and so forth?
> > >  
> > > I suppose we should go back to the Step Response Screen.  I asked how many revs the Spindle was moving for the plotted moves and you never answered.  I asked to test larger and faster speeds and you never responded.  I don't know whether you did those requests and all was good or did not test.  All you have shown is a slow 6000 count move.  Is that move 1.5 Revs?
> > > Regards
> > > TK
> > >
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tuesday, May 15, 2012 7:54 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > > You are one early bird ;)
> > >
> > > #1 OK
> > > #2 -4000 = CW / turns the spindle ~15turns and stops ~1sec / 67rpm
> > > #3 -40000 runs the spindle with 67 rpm
> > >
> > > #2 if jog4=4000 it turns 1rev stops 1rev stops etc
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > Ok let's go one step at a time.ÃÆ'‚  Let's get Console Jogs to work.
> > > > ÃÆ'‚ 
> > > > #1 On the Step Response Screen use the Zero and Move buttons to Download and Enable the Spindle Axis and verify it is functioning properly as your previous plots showed.
> > > > ÃÆ'‚ 
> > > > #2 On the Console Screen Enter:ÃÆ'‚  Jog4=4000ÃÆ'‚ ÃÆ'‚  Does the spindle rotate 1 rev per second?ÃÆ'‚  If not, explain what happened.
> > > > ÃÆ'‚ 
> > > > #3 On the Console Screen Enter:ÃÆ'‚  Jog4=40000 Does the spindle rotate 10 rev per second (600 RPM)?
> > > > ÃÆ'‚ 
> > > > Regards
> > > > TK
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tuesday, May 15, 2012 6:18 AM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > >
> > > > 1. Cannot get jog4=40000 to work
> > > > 2. Nothing in Mach3 MDI M3 S300
> > > >
> > > > Obviosly something is wrong. Can you tell me what C files should be compiled and downloaded to KFlop and what files is needed in Mach3 plugin setup.
> > > >
> > > > I assume in Mach3 following will be needed in Mach3
> > > > CombiMill 3axis.c (do I need to add ch4?)
> > > > SpindleMach3PWMHiLoGear.c is the latest tested file
> > > > CombiMillHomeMach3C.c
> > > > NotifyMach3.c
> > > >
> > > > Sorry but I am all mixed up here, so be kind to me ;)
> > > > Would be helpful to have a step by step setup so I can manage to get all working.
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Yes that looks quite good.ÃÆ'Æ'‚ÃÆ'‚  You still are not moving very far.ÃÆ'Æ'‚ÃÆ'‚  1.5 revs??ÃÆ'Æ'‚ÃÆ'‚  So the speed is only getting up to about 200 RPM.ÃÆ'Æ'‚ÃÆ'‚  And we are only using 7 of 255 PWM counts.ÃÆ'Æ'‚ÃÆ'‚  The 0.2 sec delay is a bit odd but shouldn't hurt anything.ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Realize that just because the spindle motion is not perfect doesn't mean that the Rigid Tap won't be perfect.ÃÆ'Æ'‚ÃÆ'‚  This is because the Z motion will be sync'ed to the Spindle Motion.ÃÆ'Æ'‚ÃÆ'‚  We just need the Spindle to accelerate smoothly to the right tapping speed and stop/reverse after the right number of turns.ÃÆ'Æ'‚ÃÆ'‚  Other systems that just try to move the spindle and z axis in an open loop but coordinated manner wouldn't work as well.ÃÆ'Æ'‚ÃÆ'‚  You shouldn't need flexible tap holders.ÃÆ'Æ'‚ÃÆ'‚  Hopefully :}
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > The C Program is written to always output CW or CCW whenever the axis is enabled.ÃÆ'Æ'‚ÃÆ'‚  So it always tries to hold position.ÃÆ'Æ'‚ÃÆ'‚  0 PWM setting causes it to stop so I don't see a need to disable the VFD.ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚  It will disable everything if the axis is disabled.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > You should also now be able to try setting constant spindle speed by commanding Jogs.ÃÆ'Æ'‚ÃÆ'‚  So for example on the Console Screen Jog4=40000 should be 600RPM exactly.ÃÆ'Æ'‚ÃÆ'‚  Also the SpindleMach3Jog.c should now work for Mach3.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Regarding the IO are those inputs or outputs?ÃÆ'Æ'‚ÃÆ'‚  Seems like Coolant On would be an output but you are referencing inputs.ÃÆ'Æ'‚ÃÆ'‚  But yes the general purpose inputs are very high impedance inputs which will just float if not driven.ÃÆ'Æ'‚ÃÆ'‚  They must be driven high and low (ie a pulldown resistor).
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Regards
> > > > > TK
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Monday, May 14, 2012 12:38 PM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom,
> > > > >
> > > > > Have uploaded PWMtoVFD 5.png to my folder.
> > > > > I have tried to follow you instructions and have added the filter you wanted and 50Hz Q1.4 looks best if I can 'read' the curves correctly.
> > > > >
> > > > > As you meantioned tapping would probably work just fine even with a very coarse thread and I will be using tap holders that are flexible to some degree up and down.
> > > > >
> > > > > One thing I have noticed is that after the spindle makes it move the bits 152 and 153 are on. I assumed that they should be off?
> > > > >
> > > > > So is this as good as we can get it and I can do tapping and run the spindle I assume there will be a new C-file to make it work with Mach3.
> > > > >
> > > > > Have been doing some wireing to JP12, I am a bit confused as bits 128 to 135 behave very odd I am using 132-134-135 that is 132 for worklight swith on my control panel, 134 for manual coolant on and 135 for starting central oiler pump.
> > > > > 132/134 are +24VDC via 1K + 3.3V Zener to GND and a serial 100R to input, 135 3.3V via swithch to input.
> > > > > When I start up all show active even if OFF and unused/unconnected 128-131+133 show active.
> > > > > Cannot get 132 and 135 to work but 134 works OK, do I need pulldown to settle these bits?
> > > > > JP12 is connected via Winford breakout with 10-12cm ribboncable.
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > >
> > > > > > Yes I think that is getting close.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Looks like it is moving to within about ~100 counts or about 10 degrees of where it is being told to go.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That should be sufficient for rigid tapping.
> > > > > >
> > > > > > But notice the actual speed (red slope) is not able to keep up with the commanded speed (blue slope).ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because we have a Max Error setting of only 200 counts combined with a low P gain setting of 0.006.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  200 x 0.006 = 1.2 PWM counts.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You can see that the PWM Output (green plot) is clipped at that value so we are never commanding more than 1 PWM count.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Let's increase the Max Error from 200 to 4000.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also try a bigger move that would accelerate to a higher
> speed.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You may have to re-adjust the P gain for best results.
> > > > > >
> > > > > >
> > > > > > To reduce over shoot you might try some D gain.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You should use this with a 2nd order Low pass filter (Q=1.4) to smooth the output.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  A low pass filter has the benefit of smoothing the output but will have the disadvantage of phase lag which will cause the system to overshoot more.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The lower the frequency the more smoothing but the more phase lag.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Add the Low Pass filter first (before any D gain) and find the lowest frequency possible that doesn't add significant additional overshoot.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I'm guessing this may be around
> 50Hz.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Then start adding D gain to see if it reduces the overshoot.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It's hard for me to predict what the numeric value might
> > be.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Start with is tiny number that has no effect.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Then increase it in steps of about 50% increases until you see an
> > > effect.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Too much will cause the system to become more unstable.
> > > > > >
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Saturday, May 12, 2012 4:37 AM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom,
> > > > > >
> > > > > > Changed both transistors just to safe and now it is working. Uploaded a picture PWMtoVFD4.png to my folder.
> > > > > >
> > > > > > Can you be so kind and direct me so we can get the best of of this.
> > > > > > How can I command in Console a fixed speed for test?
> > > > > >
> > > > > > Looking forward to see what you have in mind for this old fart ;)
> > > > > > I am happy as I have peed out the small stone last night, picture in same folder.
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Hi Bengt,
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > I agree.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  OrÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  a short from base to collector somehow.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Friday, May 11, 2012 1:34 PM
> > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > I just had to get down and do it, had a break with pain so here it is.
> > > > > > >
> > > > > > > PWM
> > > > > > > 0= 0V 255= 2.7V
> > > > > > > collector opto
> > > > > > > 4.99V 0.137V
> > > > > > > base pnp
> > > > > > > 4.99V 4.18V
> > > > > > > base npn
> > > > > > > 0.525V 0.642V
> > > > > > > collector pnp
> > > > > > > 0.510V 4.77V
> > > > > > > collector npn
> > > > > > > 0.528V 0.643V
> > > > > > >
> > > > > > > Looks to me like the 2N2222A is out of order (Ebay...)
> > > > > > >
> > > > > > > Cheers
> > > > > > > Bengt
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Bengt,
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > No rush.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Take care of yourself we need you :}
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Friday, May 11, 2012 11:41 AM
> > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > >
> > > > > > > >
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > I will carry out the measurements tomorrow, just now I am not up to it as I am having one or several kidney stones on the way out.
> > > > > > > > Hopefully this will be over soon.
> > > > > > > >
> > > > > > > > This is what I was afraid of as the max would not go over 2.5V so let us hope I can nail down the fault.
> > > > > > > >
> > > > > > > > Cheers
> > > > > > > > Bengt
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Bengt,
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Thanks.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That was exactly the information I
> needed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It seems like there is still a problem with your
> > circuit.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  For a duty cycle of 0% (solid off) your circuit output should be closer to 0V (0.1V or
> less).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Not
> > > 0.5V.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also 100% (solid on) should be approximately 4.8V not
> 2.5V.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It should be easy to use a voltmeter
> > toÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ locate the
> > > > problem.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  In the 0% and 100% cases everything is steady
> state.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I've uploaded two schematic files where I have marked the expected voltages at each node in your
> > circuit.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ Please command the PWM to 0% (value=0) and PWM to
> > > > > 100% (value=255) and measure the voltages to see what you actually have at each node so we can locate the problem.
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > http://f1.grp.yahoofs.com/v1/oFOtT2Z7Vu3mb-HtLJrM0zouZxMlRoikiy7UiNSef9Znrtl98rj6hT6fqhc2raV0LGWqTh0hEcsGFDQ8FFW29w/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20OFF%20TK.png
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > http://f1.grp.yahoofs.com/v1/oFOtTwpfuFnmb-HtjrjdyeNq-eXiQWjBHvWPTd2NS7sojh8fmcw4eq_9F-ukbqA6letv9dvRbafVmcOCFDXHXQ/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20ON%20TK.png
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Friday, May 11, 2012 5:27 AM
> > > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Hi Tom,
> > > > > > > > >
> > > > > > > > > I have uploaded the test you requested, hopefully this will give you some ideas on how to proceed with further tests.
> > > > > > > > >
> > > > > > > > > What do you say about modifying the PWM adapter (PWM to VFD 0-5VDC.png) as I get no higher than 2.5Vmax with 100% dutycycle on PWM. Changing collector to output resistors from 1K to <50R? Have this up in simulator (Multisim) with a load of 1K5 on the output that gives with 1K resistors 2.5V changing to 33R gives 4.82V so that gives a swing from 2% duty cycle 80mV to 99% duty cycle 4.82V
> > > > > > > > >
> > > > > > > > > Cheers
> > > > > > > > > Bengt
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Bengt,
> > > > > > > > > >
> > > > > > > > > > Normally the way a PWM works is that we leave the frequency constant (ie 1KHz and Pre Scale = 65) and vary the duty cycle from 0 to
> 100%.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Since this is an 8-bit PWM that means to set the
> > duty cycle from values from 0 to 255.
> > > > > > > > > >
> > > > > > > > > > If you observe the plot we are still having a problem commanding a slow
> speed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The slowest it ever goes is about 8000 counts/sec which is about
> >
> 100RPM.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We have a limit in the C program to never reverse direction
> > > relays (CW to CCW) more than every 1
> second.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So the plot shows a change in direction every one
> > > >
> second.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  See at times 0.1 second, 1.1 second, 2.1
> > >
> >
> second.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'ââ‚
> ¬Å¡ÃÆ'‚¢ÃÆ'
> >
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'â€Â
> ¦ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I thought the way this would work was that as we got close to the target
> > > > > we could reduce the PWM to zero and the spindle would slow to a
> stop.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But even though we command zero the spindle continues at 100RPM and way overshoots the target.
> > > > > > > > > >
> > > > > > > > > > Please perform the following tests:
> > > > > > > > > >
> > > > > > > > > > #1 using the PWM1KHz.c program vary the PWM values from 0 to 255 while leaving the frequency constant (Prescale
> 65).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Measure the output
> >
> voltage.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Â
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We are mostly interested in the low voltage range so take lots of
> > > measurements with small values: 0, 1, 2, 3,
> 4...ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  but in mid and high range you can skip every 10 or
> > > >
> so.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢Ã
> Æ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > #2 use your potentiometer and check the RPM with small input voltages like 0V, 0.05V, 0.1V ...
> > > > > > > > > >
> > > > > > > > > > This may not work as well as I
> hoped.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But let's figure out exactly what the problem is before we give up on this technique.
> > > > > > > > > >
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > ________________________________
> > > > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > > Sent: Thursday, May 10, 2012 8:41 AM
> > > > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Hi Tom,
> > > > > > > > > >
> > > > > > > > > > In my PWM to VFD folder you will find my report and a screen snapshot as well.
> > > > > > > > > >
> > > > > > > > > > I have found out during todays manual test that there are factory preset acceleration parameters set to 5sec ramp up and down. Now I changed these to 0.1sec so it looks better but not tracking good.
> > > > > > > > > >
> > > > > > > > > > I hope you will find something useful for further testing, one thing that worries me is that the PWM to voltage adapter only swings from 0 to +2.5V not +5V as expected I suppose.
> > > > > > > > > >
> > > > > > > > > > Cheers
> > > > > > > > > > Bengt
> > > > > > > > > >
> > > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Bengt,
> > > > > > > > > > >
> >
> ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Ã
> ¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'ââ
> ‚¬Å¡ÃÆ'‚¢ÃÆ'Æ'
> >
> Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢
> €šÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > > Looking at the Plot the problem is
> >
> obvious.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ
> '‚ÃÆ'‚
> >
> ¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'
> ¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡Ã<br/><br/>(Message over 64 KB, truncated)
Group: DynoMotion Message: 4990 From: Bengt Sjoelund Date: 5/18/2012
Subject: Re: PWM to VFD
Hi Tom,

Do you have any chance to look at this so I can get the spindle working?

As always looking forward to see what you have to suggest.

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, "Bengt Sjoelund" <cnc@...> wrote:
>
> Hi Tom,
>
>
> I have today verified my spindle speeds as follows:
>
> 16000 = 240rpm at the encoder shaft that is the ingoing shaft into gearbox. I have been in the belief that it was 1:1 with spindle but actually no.
> Spindle rotates at 254.4 rpm at commanded 16000 and at 32000 the rpms are 480 / 509.2 so I hope this can be adjusted in c-file if necessary.
>
> I use a Phototachometer http://www.pedak.nl/Lutron/pdf/Dt-2234a.pdf
>
> As regards shifting from LO to HI on the run works but not if tool is cutting as it takes a short time to stabilize the rpm.
> So I would prefer that speed shifting is done when tool is not cutting
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >  
> > ok that's progress.  I'm surprised it isn't more accurate.  With this method there could be some speed variation but the average speed pretty much must be exact.  How are you measuring?  You might check the counts with a stop watch.  For example Jog4=16000 should be exactly 240 RPM.  If you watch the counts on the Axis Screen the time from 1 million counts to the next should be:
> >  
> > 1000000/16000 = 62.5 seconds
> >  
> > BTW Jog4=-16000 should be -240 RPM
> >  
> > I suppose we may as well handle the Hi/Lo Speed stuff next.
> >  
> > How do you expect this to work.  Is it ok to switch speeds while running?  For example if the User or the Gcode selects:
> >  
> > S200
> > S500
> > S1000
> > S1500
> >  
> > Is is ok to just at some point suddenly turn off Low Speed and switch to High speed on the fly while adjusting the PWM appropriately.  Or is it required to come to a full stop and then switch?
> >  
> > Could you perform a test using the Digital IO screen and the PWM1KHz.c example to manually make a test?
> >  
> > Regards
> > TK
> >  
> >  
> >  
> >  
> >
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tuesday, May 15, 2012 2:11 PM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> > Change to 85000 gives following jog4=
> > 8000 127rpm
> > 16000 254rpm
> > 32000 508rpm
> > 64000 1018rpm
> > 6000 95rpm but a bit unstable as I can hear
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >
> > > If you still have Max Error = 4000  and P gain = 0.0031?
> > >
> > > Then 4000 x 0.0031 = 12 PWM counts
> > >
> > > Regards
> > > TK
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tuesday, May 15, 2012 11:52 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > > Jog4=4000 SP turns 15rev stops 1sec turns 15r stops 1sec etc.....
> > > Opening cfile OutputtoPWMDirv3.c
> > > Compile/download/run
> > > load my data
> > > Disable/zero/move 3sec/6000
> > > Spindle rotates ~1.5rev
> > > Axis screen
> > > Dest goes to 6000 and counts down.
> > > Pos overshoots 10-20 and zeroes at -10-20 (varies from move to move)
> > > When 60000 is commanded Dest goes up to 60.000 and down
> > > Pos somewhere about 51-52000 and counts down
> > > When 100000 Dest goes up to 100000 and down
> > > Pos to 83.000+ and ends at +40 to 50
> > > Checked rpm's to be ~200rpm
> > >
> > > Sorry but I cannot set higher speeds, what figures to change?
> > >
> > > Checked PWMto1kHz and 100PWM = 512rpm
> > >
> > > All spindle movement starts with CCW
> > >
> > > Sorry for long delay but something odd with Yahoo as my keyboard is like typeing in tar.
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > >  
> > > > Are you saying you enter Jog4=4000 and the Spindle turns 15 turns and stops forever?
> > > >  
> > > > Could you explain things in more detail what you are doing and exactly what happens?  Please include as much information as possible including things like information on what the commanded Dest and Encoder Position is doing on the Axis Screen and whether the axes remain enabled and so forth?
> > > >  
> > > > I suppose we should go back to the Step Response Screen.  I asked how many revs the Spindle was moving for the plotted moves and you never answered.  I asked to test larger and faster speeds and you never responded.  I don't know whether you did those requests and all was good or did not test.  All you have shown is a slow 6000 count move.  Is that move 1.5 Revs?
> > > > Regards
> > > > TK
> > > >
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tuesday, May 15, 2012 7:54 AM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > >  
> > > > Hi Tom,
> > > > You are one early bird ;)
> > > >
> > > > #1 OK
> > > > #2 -4000 = CW / turns the spindle ~15turns and stops ~1sec / 67rpm
> > > > #3 -40000 runs the spindle with 67 rpm
> > > >
> > > > #2 if jog4=4000 it turns 1rev stops 1rev stops etc
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'‚ 
> > > > > Ok let's go one step at a time.ÃÆ'‚  Let's get Console Jogs to work.
> > > > > ÃÆ'‚ 
> > > > > #1 On the Step Response Screen use the Zero and Move buttons to Download and Enable the Spindle Axis and verify it is functioning properly as your previous plots showed.
> > > > > ÃÆ'‚ 
> > > > > #2 On the Console Screen Enter:ÃÆ'‚  Jog4=4000ÃÆ'‚ ÃÆ'‚  Does the spindle rotate 1 rev per second?ÃÆ'‚  If not, explain what happened.
> > > > > ÃÆ'‚ 
> > > > > #3 On the Console Screen Enter:ÃÆ'‚  Jog4=40000 Does the spindle rotate 10 rev per second (600 RPM)?
> > > > > ÃÆ'‚ 
> > > > > Regards
> > > > > TK
> > > > > ÃÆ'‚ 
> > > > > ÃÆ'‚ 
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Tuesday, May 15, 2012 6:18 AM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'‚ 
> > > > > Hi Tom,
> > > > >
> > > > > 1. Cannot get jog4=40000 to work
> > > > > 2. Nothing in Mach3 MDI M3 S300
> > > > >
> > > > > Obviosly something is wrong. Can you tell me what C files should be compiled and downloaded to KFlop and what files is needed in Mach3 plugin setup.
> > > > >
> > > > > I assume in Mach3 following will be needed in Mach3
> > > > > CombiMill 3axis.c (do I need to add ch4?)
> > > > > SpindleMach3PWMHiLoGear.c is the latest tested file
> > > > > CombiMillHomeMach3C.c
> > > > > NotifyMach3.c
> > > > >
> > > > > Sorry but I am all mixed up here, so be kind to me ;)
> > > > > Would be helpful to have a step by step setup so I can manage to get all working.
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Yes that looks quite good.ÃÆ'Æ'‚ÃÆ'‚  You still are not moving very far.ÃÆ'Æ'‚ÃÆ'‚  1.5 revs??ÃÆ'Æ'‚ÃÆ'‚  So the speed is only getting up to about 200 RPM.ÃÆ'Æ'‚ÃÆ'‚  And we are only using 7 of 255 PWM counts.ÃÆ'Æ'‚ÃÆ'‚  The 0.2 sec delay is a bit odd but shouldn't hurt anything.ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Realize that just because the spindle motion is not perfect doesn't mean that the Rigid Tap won't be perfect.ÃÆ'Æ'‚ÃÆ'‚  This is because the Z motion will be sync'ed to the Spindle Motion.ÃÆ'Æ'‚ÃÆ'‚  We just need the Spindle to accelerate smoothly to the right tapping speed and stop/reverse after the right number of turns.ÃÆ'Æ'‚ÃÆ'‚  Other systems that just try to move the spindle and z axis in an open loop but coordinated manner wouldn't work as well.ÃÆ'Æ'‚ÃÆ'‚  You shouldn't need flexible tap holders.ÃÆ'Æ'‚ÃÆ'‚  Hopefully :}
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > The C Program is written to always output CW or CCW whenever the axis is enabled.ÃÆ'Æ'‚ÃÆ'‚  So it always tries to hold position.ÃÆ'Æ'‚ÃÆ'‚  0 PWM setting causes it to stop so I don't see a need to disable the VFD.ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚  It will disable everything if the axis is disabled.
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > You should also now be able to try setting constant spindle speed by commanding Jogs.ÃÆ'Æ'‚ÃÆ'‚  So for example on the Console Screen Jog4=40000 should be 600RPM exactly.ÃÆ'Æ'‚ÃÆ'‚  Also the SpindleMach3Jog.c should now work for Mach3.
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Regarding the IO are those inputs or outputs?ÃÆ'Æ'‚ÃÆ'‚  Seems like Coolant On would be an output but you are referencing inputs.ÃÆ'Æ'‚ÃÆ'‚  But yes the general purpose inputs are very high impedance inputs which will just float if not driven.ÃÆ'Æ'‚ÃÆ'‚  They must be driven high and low (ie a pulldown resistor).
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Regards
> > > > > > TK
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > >
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Monday, May 14, 2012 12:38 PM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom,
> > > > > >
> > > > > > Have uploaded PWMtoVFD 5.png to my folder.
> > > > > > I have tried to follow you instructions and have added the filter you wanted and 50Hz Q1.4 looks best if I can 'read' the curves correctly.
> > > > > >
> > > > > > As you meantioned tapping would probably work just fine even with a very coarse thread and I will be using tap holders that are flexible to some degree up and down.
> > > > > >
> > > > > > One thing I have noticed is that after the spindle makes it move the bits 152 and 153 are on. I assumed that they should be off?
> > > > > >
> > > > > > So is this as good as we can get it and I can do tapping and run the spindle I assume there will be a new C-file to make it work with Mach3.
> > > > > >
> > > > > > Have been doing some wireing to JP12, I am a bit confused as bits 128 to 135 behave very odd I am using 132-134-135 that is 132 for worklight swith on my control panel, 134 for manual coolant on and 135 for starting central oiler pump.
> > > > > > 132/134 are +24VDC via 1K + 3.3V Zener to GND and a serial 100R to input, 135 3.3V via swithch to input.
> > > > > > When I start up all show active even if OFF and unused/unconnected 128-131+133 show active.
> > > > > > Cannot get 132 and 135 to work but 134 works OK, do I need pulldown to settle these bits?
> > > > > > JP12 is connected via Winford breakout with 10-12cm ribboncable.
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > > Hi Bengt,
> > > > > > >
> > > > > > > Yes I think that is getting close.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Looks like it is moving to within about ~100 counts or about 10 degrees of where it is being told to go.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That should be sufficient for rigid tapping.
> > > > > > >
> > > > > > > But notice the actual speed (red slope) is not able to keep up with the commanded speed (blue slope).ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because we have a Max Error setting of only 200 counts combined with a low P gain setting of 0.006.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  200 x 0.006 = 1.2 PWM counts.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You can see that the PWM Output (green plot) is clipped at that value so we are never commanding more than 1 PWM count.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Let's increase the Max Error from 200 to 4000.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also try a bigger move that would accelerate to a higher
> > speed.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You may have to re-adjust the P gain for best results.
> > > > > > >
> > > > > > >
> > > > > > > To reduce over shoot you might try some D gain.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You should use this with a 2nd order Low pass filter (Q=1.4) to smooth the output.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  A low pass filter has the benefit of smoothing the output but will have the disadvantage of phase lag which will cause the system to overshoot more.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The lower the frequency the more smoothing but the more phase lag.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Add the Low Pass filter first (before any D gain) and find the lowest frequency possible that doesn't add significant additional overshoot.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I'm guessing this may be around
> > 50Hz.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Then start adding D gain to see if it reduces the overshoot.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It's hard for me to predict what the numeric value might
> > > be.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Start with is tiny number that has no effect.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Then increase it in steps of about 50% increases until you see an
> > > > effect.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Too much will cause the system to become more unstable.
> > > > > > >
> > > > > > >
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Saturday, May 12, 2012 4:37 AM
> > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > Changed both transistors just to safe and now it is working. Uploaded a picture PWMtoVFD4.png to my folder.
> > > > > > >
> > > > > > > Can you be so kind and direct me so we can get the best of of this.
> > > > > > > How can I command in Console a fixed speed for test?
> > > > > > >
> > > > > > > Looking forward to see what you have in mind for this old fart ;)
> > > > > > > I am happy as I have peed out the small stone last night, picture in same folder.
> > > > > > >
> > > > > > > Cheers
> > > > > > > Bengt
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Hi Bengt,
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > I agree.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  OrÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  a short from base to collector somehow.
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Friday, May 11, 2012 1:34 PM
> > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > >
> > > > > > > >
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > I just had to get down and do it, had a break with pain so here it is.
> > > > > > > >
> > > > > > > > PWM
> > > > > > > > 0= 0V 255= 2.7V
> > > > > > > > collector opto
> > > > > > > > 4.99V 0.137V
> > > > > > > > base pnp
> > > > > > > > 4.99V 4.18V
> > > > > > > > base npn
> > > > > > > > 0.525V 0.642V
> > > > > > > > collector pnp
> > > > > > > > 0.510V 4.77V
> > > > > > > > collector npn
> > > > > > > > 0.528V 0.643V
> > > > > > > >
> > > > > > > > Looks to me like the 2N2222A is out of order (Ebay...)
> > > > > > > >
> > > > > > > > Cheers
> > > > > > > > Bengt
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Bengt,
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > No rush.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Take care of yourself we need you :}
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Regards
> > > > > > > > > TK
> > > > > > > > >
> > > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > Sent: Friday, May 11, 2012 11:41 AM
> > > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > Hi Tom,
> > > > > > > > >
> > > > > > > > > I will carry out the measurements tomorrow, just now I am not up to it as I am having one or several kidney stones on the way out.
> > > > > > > > > Hopefully this will be over soon.
> > > > > > > > >
> > > > > > > > > This is what I was afraid of as the max would not go over 2.5V so let us hope I can nail down the fault.
> > > > > > > > >
> > > > > > > > > Cheers
> > > > > > > > > Bengt
> > > > > > > > >
> > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Bengt,
> > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Thanks.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That was exactly the information I
> > needed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It seems like there is still a problem with your
> > > circuit.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  For a duty cycle of 0% (solid off) your circuit output should be closer to 0V (0.1V or
> > less).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Not
> > > > 0.5V.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also 100% (solid on) should be approximately 4.8V not
> > 2.5V.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It should be easy to use a voltmeter
> > > toÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ locate the
> > > > > problem.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  In the 0% and 100% cases everything is steady
> > state.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I've uploaded two schematic files where I have marked the expected voltages at each node in your
> > > circuit.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ Please command the PWM to 0% (value=0) and PWM to
> > > > > > 100% (value=255) and measure the voltages to see what you actually have at each node so we can locate the problem.
> > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > http://f1.grp.yahoofs.com/v1/oFOtT2Z7Vu3mb-HtLJrM0zouZxMlRoikiy7UiNSef9Znrtl98rj6hT6fqhc2raV0LGWqTh0hEcsGFDQ8FFW29w/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20OFF%20TK.png
> > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > http://f1.grp.yahoofs.com/v1/oFOtTwpfuFnmb-HtjrjdyeNq-eXiQWjBHvWPTd2NS7sojh8fmcw4eq_9F-ukbqA6letv9dvRbafVmcOCFDXHXQ/Bengt%27s%20CombiMill/PWMtoVFD/PWM%20to%20VFD%200-5V%20ON%20TK.png
> > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Regards
> > > > > > > > > > TK
> > > > > > > > > >
> > > > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > > Sent: Friday, May 11, 2012 5:27 AM
> > > > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > Hi Tom,
> > > > > > > > > >
> > > > > > > > > > I have uploaded the test you requested, hopefully this will give you some ideas on how to proceed with further tests.
> > > > > > > > > >
> > > > > > > > > > What do you say about modifying the PWM adapter (PWM to VFD 0-5VDC.png) as I get no higher than 2.5Vmax with 100% dutycycle on PWM. Changing collector to output resistors from 1K to <50R? Have this up in simulator (Multisim) with a load of 1K5 on the output that gives with 1K resistors 2.5V changing to 33R gives 4.82V so that gives a swing from 2% duty cycle 80mV to 99% duty cycle 4.82V
> > > > > > > > > >
> > > > > > > > > > Cheers
> > > > > > > > > > Bengt
> > > > > > > > > >
> > > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > >
> > > > > > > > > > > Hi Bengt,
> > > > > > > > > > >
> > > > > > > > > > > Normally the way a PWM works is that we leave the frequency constant (ie 1KHz and Pre Scale = 65) and vary the duty cycle from 0 to
> > 100%.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> > ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Since this is an 8-bit PWM that means to set the
> > > duty cycle from values from 0 to 255.
> > > > > > > > > > >
> > > > > > > > > > > If you observe the plot we are still having a problem commanding a slow
> > speed.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> > ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The slowest it ever goes is about 8000 counts/sec which is about
> > >
> > 100RPM.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> > ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We have a limit in the C program to never reverse direction
> > > > relays (CW to CCW) more than every 1
> > second.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> > ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  So the plot shows a change in direction every one
> > > > >
> > second.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> > ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  See at times 0.1 second, 1.1 second, 2.1
> > > >
> > >
> > second.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> > ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'ââ‚
> > ¬Å¡ÃÆ'‚¢ÃÆ'
> > >
> > Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'â€Â
> > ¦ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I thought the way this would work was that as we got close to the target
> > > > > > we could reduce the PWM to zero and the spindle would slow to a
> > stop.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> > ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But even though we command zero the spindle continues at 100RPM and way overshoots the target.
> > > > > > > > > > >
> > > > > > > > > > > Please perform the following tests:
> > > > > > > > > > >
> > > > > > > > > > > #1 using the PWM1KHz.c program vary the PWM values from 0 to 255 while leaving the frequency constant (Prescale
> > 65).ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> > ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Measure the output
> > >
> > voltage.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚Â
> > ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  We are mostly interested in the low voltage range so take lots of
> > > > measurements with small values: 0, 1, 2, 3,
> > 4...ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢
> > ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  but in mid and high range you can skip every 10 or
> > > > >
> > so.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢Ã
> > Æ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > #2 use your potentiometer and check the RPM with small input voltages like 0V, 0.05V, 0.1V ...
> > > > > > > > > > >
> > > > > > > > > > > This may not work as well as I
> > hoped.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚ÂÂ
> > ¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  But let's figure out exactly what the problem is before we give up on this technique.
> > > > > > > > > > >
> > > > > > > > > > > Regards
> > > > > > > > > > > TK
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > ________________________________
> > > > > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > > > > Sent: Thursday, May 10, 2012 8:41 AM
> > > > > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'
> > Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > > Hi Tom,
> > > > > > > > > > >
> > > > > > > > > > > In my PWM to VFD folder you will find my report and a screen snapshot as well.
> > > > > > > > > > >
> > > > > > > > > > > I have found out during todays manual test that there are factory preset acceleration parameters set to 5sec ramp up and down. Now I changed these to 0.1sec so it looks better but not tracking good.
> > > > > > > > > > >
> > > > > > > > > > > I hope you will find something useful for further testing, one thing that worries me is that the PWM to voltage adapter only swings from 0 to +2.5V not +5V as expected I suppose.
> > > > > > > > > > >
> > > > > > > > > > > Cheers
> > > > > > > > > > > Bengt
> > > > > > > > > > >
> > > > > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > > > > >
> > > > > > > > > > > > Hi Bengt,
> > > > > > > > > > > >
> > >
> > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Ã
> > ¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'ââ
> > ‚¬Å¡ÃÆ'‚¢ÃÆ'Æ'
> > >
> > Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢
> > €šÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > > > > > Looking at the Plot the problem is
> > >
> > obvious.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡
> > ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'‚ÃÆ'‚¦ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'‚ 'ÃÆ'Æ'Æ'ÃÆ'†'<br/><br/>(Message over 64 KB, truncated)
Group: DynoMotion Message: 4993 From: Tom Kerekes Date: 5/18/2012
Subject: Re: PWM to VFD
Hi Bengt,
 
Sorry for the delay.
 
The gear ratio will not be a problem.  That can be treated just like there is a different number of encoder counts/rev.  It would be nice to know the exact ratio.  What is it?
 
I uploaded a new C file V4 that should allow selecting the speed range.  The Speed Range is selected using Virtual IO Bit 48.  0=LO 1=HIGH.
 
Later this will allow us to select the speed range from either the Mach3Spindle control stuff or Rigid tapping stuff.
 
So now let's try repeating the previous experiments again, but for both speed ranges.
 
#1 Using the Digital IO screen Set Virtual Bit 48 off.
 
#2 run your init.c to configure everything including the spindle axis
 
#3 run the new C program
 
#4 Test using Jog4=XXX for all +/- speeds up to your max expected Low Speed RPM
 
 
Then set bit 48 on and repeat for up to your max expected Hi Speed RPM.
 
Regards
TK
 
 

From: Bengt Sjoelund <cnc@...>
To: DynoMotion@yahoogroups.com
Sent: Wednesday, May 16, 2012 7:53 AM
Subject: [DynoMotion] Re: PWM to VFD

 
Hi Tom,

I have today verified my spindle speeds as follows:

16000 = 240rpm at the encoder shaft that is the ingoing shaft into gearbox. I have been in the belief that it was 1:1 with spindle but actually no.
Spindle rotates at 254.4 rpm at commanded 16000 and at 32000 the rpms are 480 / 509.2 so I hope this can be adjusted in c-file if necessary.

I use a Phototachometer http://www.pedak.nl/Lutron/pdf/Dt-2234a.pdf

As regards shifting from LO to HI on the run works but not if tool is cutting as it takes a short time to stabilize the rpm.
So I would prefer that speed shifting is done when tool is not cutting

Cheers
Bengt

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Bengt,
>  
> ok that's progress.  I'm surprised it isn't more accurate.  With this method there could be some speed variation but the average speed pretty much must be exact.  How are you measuring?  You might check the counts with a stop watch.  For example Jog4=16000 should be exactly 240 RPM.  If you watch the counts on the Axis Screen the time from 1 million counts to the next should be:
>  
> 1000000/16000 = 62.5 seconds
>  
> BTW Jog4=-16000 should be -240 RPM
>  
> I suppose we may as well handle the Hi/Lo Speed stuff next.
>  
> How do you expect this to work.  Is it ok to switch speeds while running?  For example if the User or the Gcode selects:
>  
> S200
> S500
> S1000
> S1500
>  
> Is is ok to just at some point suddenly turn off Low Speed and switch to High speed on the fly while adjusting the PWM appropriately.  Or is it required to come to a full stop and then switch?
>  
> Could you perform a test using the Digital IO screen and the PWM1KHz.c example to manually make a test?
>  
> Regards
> TK
>  
>  
>  
>  
>
> From: Bengt Sjoelund <cnc@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, May 15, 2012 2:11 PM
> Subject: [DynoMotion] Re: PWM to VFD
>
>
>  
> Hi Tom,
> Change to 85000 gives following jog4=
> 8000 127rpm
> 16000 254rpm
> 32000 508rpm
> 64000 1018rpm
> 6000 95rpm but a bit unstable as I can hear
>
> Cheers
> Bengt
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Bengt,
> >
> > If you still have Max Error = 4000  and P gain = 0.0031?
> >
> > Then 4000 x 0.0031 = 12 PWM counts
> >
> > Regards
> > TK
> >
> >
> >
> >
> >
> > ________________________________
> > From: Bengt Sjoelund <cnc@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Tuesday, May 15, 2012 11:52 AM
> > Subject: [DynoMotion] Re: PWM to VFD
> >
> >
> >  
> > Hi Tom,
> > Jog4=4000 SP turns 15rev stops 1sec turns 15r stops 1sec etc.....
> > Opening cfile OutputtoPWMDirv3.c
> > Compile/download/run
> > load my data
> > Disable/zero/move 3sec/6000
> > Spindle rotates ~1.5rev
> > Axis screen
> > Dest goes to 6000 and counts down.
> > Pos overshoots 10-20 and zeroes at -10-20 (varies from move to move)
> > When 60000 is commanded Dest goes up to 60.000 and down
> > Pos somewhere about 51-52000 and counts down
> > When 100000 Dest goes up to 100000 and down
> > Pos to 83.000+ and ends at +40 to 50
> > Checked rpm's to be ~200rpm
> >
> > Sorry but I cannot set higher speeds, what figures to change?
> >
> > Checked PWMto1kHz and 100PWM = 512rpm
> >
> > All spindle movement starts with CCW
> >
> > Sorry for long delay but something odd with Yahoo as my keyboard is like typeing in tar.
> >
> > Cheers
> > Bengt
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > >
> > > Hi Bengt,
> > >  
> > > Are you saying you enter Jog4=4000 and the Spindle turns 15 turns and stops forever?
> > >  
> > > Could you explain things in more detail what you are doing and exactly what happens?  Please include as much information as possible including things like information on what the commanded Dest and Encoder Position is doing on the Axis Screen and whether the axes remain enabled and so forth?
> > >  
> > > I suppose we should go back to the Step Response Screen.  I asked how many revs the Spindle was moving for the plotted moves and you never answered.  I asked to test larger and faster speeds and you never responded.  I don't know whether you did those requests and all was good or did not test.  All you have shown is a slow 6000 count move.  Is that move 1.5 Revs?
> > > Regards
> > > TK
> > >
> > > From: Bengt Sjoelund <cnc@>
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Tuesday, May 15, 2012 7:54 AM
> > > Subject: [DynoMotion] Re: PWM to VFD
> > >
> > >
> > >  
> > > Hi Tom,
> > > You are one early bird ;)
> > >
> > > #1 OK
> > > #2 -4000 = CW / turns the spindle ~15turns and stops ~1sec / 67rpm
> > > #3 -40000 runs the spindle with 67 rpm
> > >
> > > #2 if jog4=4000 it turns 1rev stops 1rev stops etc
> > >
> > > Cheers
> > > Bengt
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > >
> > > > Hi Bengt,
> > > > ÃÆ'‚ 
> > > > Ok let's go one step at a time.ÃÆ'‚  Let's get Console Jogs to work.
> > > > ÃÆ'‚ 
> > > > #1 On the Step Response Screen use the Zero and Move buttons to Download and Enable the Spindle Axis and verify it is functioning properly as your previous plots showed.
> > > > ÃÆ'‚ 
> > > > #2 On the Console Screen Enter:ÃÆ'‚  Jog4=4000ÃÆ'‚ ÃÆ'‚  Does the spindle rotate 1 rev per second?ÃÆ'‚  If not, explain what happened.
> > > > ÃÆ'‚ 
> > > > #3 On the Console Screen Enter:ÃÆ'‚  Jog4=40000 Does the spindle rotate 10 rev per second (600 RPM)?
> > > > ÃÆ'‚ 
> > > > Regards
> > > > TK
> > > > ÃÆ'‚ 
> > > > ÃÆ'‚ 
> > > > From: Bengt Sjoelund <cnc@>
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Tuesday, May 15, 2012 6:18 AM
> > > > Subject: [DynoMotion] Re: PWM to VFD
> > > >
> > > >
> > > > ÃÆ'‚ 
> > > > Hi Tom,
> > > >
> > > > 1. Cannot get jog4=40000 to work
> > > > 2. Nothing in Mach3 MDI M3 S300
> > > >
> > > > Obviosly something is wrong. Can you tell me what C files should be compiled and downloaded to KFlop and what files is needed in Mach3 plugin setup.
> > > >
> > > > I assume in Mach3 following will be needed in Mach3
> > > > CombiMill 3axis.c (do I need to add ch4?)
> > > > SpindleMach3PWMHiLoGear.c is the latest tested file
> > > > CombiMillHomeMach3C.c
> > > > NotifyMach3.c
> > > >
> > > > Sorry but I am all mixed up here, so be kind to me ;)
> > > > Would be helpful to have a step by step setup so I can manage to get all working.
> > > >
> > > > Cheers
> > > > Bengt
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > >
> > > > > Hi Bengt,
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Yes that looks quite good.ÃÆ'Æ'‚ÃÆ'‚  You still are not moving very far.ÃÆ'Æ'‚ÃÆ'‚  1.5 revs??ÃÆ'Æ'‚ÃÆ'‚  So the speed is only getting up to about 200 RPM.ÃÆ'Æ'‚ÃÆ'‚  And we are only using 7 of 255 PWM counts.ÃÆ'Æ'‚ÃÆ'‚  The 0.2 sec delay is a bit odd but shouldn't hurt anything.ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Realize that just because the spindle motion is not perfect doesn't mean that the Rigid Tap won't be perfect.ÃÆ'Æ'‚ÃÆ'‚  This is because the Z motion will be sync'ed to the Spindle Motion.ÃÆ'Æ'‚ÃÆ'‚  We just need the Spindle to accelerate smoothly to the right tapping speed and stop/reverse after the right number of turns.ÃÆ'Æ'‚ÃÆ'‚  Other systems that just try to move the spindle and z axis in an open loop but coordinated manner wouldn't work as well.ÃÆ'Æ'‚ÃÆ'‚  You shouldn't need flexible tap holders.ÃÆ'Æ'‚ÃÆ'‚  Hopefully :}
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > The C Program is written to always output CW or CCW whenever the axis is enabled.ÃÆ'Æ'‚ÃÆ'‚  So it always tries to hold position.ÃÆ'Æ'‚ÃÆ'‚  0 PWM setting causes it to stop so I don't see a need to disable the VFD.ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚ ÃÆ'Æ'‚ÃÆ'‚  It will disable everything if the axis is disabled.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > You should also now be able to try setting constant spindle speed by commanding Jogs.ÃÆ'Æ'‚ÃÆ'‚  So for example on the Console Screen Jog4=40000 should be 600RPM exactly.ÃÆ'Æ'‚ÃÆ'‚  Also the SpindleMach3Jog.c should now work for Mach3.
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Regarding the IO are those inputs or outputs?ÃÆ'Æ'‚ÃÆ'‚  Seems like Coolant On would be an output but you are referencing inputs.ÃÆ'Æ'‚ÃÆ'‚  But yes the general purpose inputs are very high impedance inputs which will just float if not driven.ÃÆ'Æ'‚ÃÆ'‚  They must be driven high and low (ie a pulldown resistor).
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Regards
> > > > > TK
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > >
> > > > > From: Bengt Sjoelund <cnc@>
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Monday, May 14, 2012 12:38 PM
> > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > >
> > > > >
> > > > > ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > Hi Tom,
> > > > >
> > > > > Have uploaded PWMtoVFD 5.png to my folder.
> > > > > I have tried to follow you instructions and have added the filter you wanted and 50Hz Q1.4 looks best if I can 'read' the curves correctly.
> > > > >
> > > > > As you meantioned tapping would probably work just fine even with a very coarse thread and I will be using tap holders that are flexible to some degree up and down.
> > > > >
> > > > > One thing I have noticed is that after the spindle makes it move the bits 152 and 153 are on. I assumed that they should be off?
> > > > >
> > > > > So is this as good as we can get it and I can do tapping and run the spindle I assume there will be a new C-file to make it work with Mach3.
> > > > >
> > > > > Have been doing some wireing to JP12, I am a bit confused as bits 128 to 135 behave very odd I am using 132-134-135 that is 132 for worklight swith on my control panel, 134 for manual coolant on and 135 for starting central oiler pump.
> > > > > 132/134 are +24VDC via 1K + 3.3V Zener to GND and a serial 100R to input, 135 3.3V via swithch to input.
> > > > > When I start up all show active even if OFF and unused/unconnected 128-131+133 show active.
> > > > > Cannot get 132 and 135 to work but 134 works OK, do I need pulldown to settle these bits?
> > > > > JP12 is connected via Winford breakout with 10-12cm ribboncable.
> > > > >
> > > > > Cheers
> > > > > Bengt
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > >
> > > > > > Hi Bengt,
> > > > > >
> > > > > > Yes I think that is getting close.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Looks like it is moving to within about ~100 counts or about 10 degrees of where it is being told to go.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  That should be sufficient for rigid tapping.
> > > > > >
> > > > > > But notice the actual speed (red slope) is not able to keep up with the commanded speed (blue slope).ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  This is because we have a Max Error setting of only 200 counts combined with a low P gain setting of 0.006.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  200 x 0.006 = 1.2 PWM counts.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You can see that the PWM Output (green plot) is clipped at that value so we are never commanding more than 1 PWM count.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Let's increase the Max Error from 200 to 4000.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Also try a bigger move that would accelerate to a higher
> speed.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You may have to re-adjust the P gain for best results.
> > > > > >
> > > > > >
> > > > > > To reduce over shoot you might try some D gain.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  You should use this with a 2nd order Low pass filter (Q=1.4) to smooth the output.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  A low pass filter has the benefit of smoothing the output but will have the disadvantage of phase lag which will cause the system to overshoot more.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  The lower the frequency the more smoothing but the more phase lag.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Add the Low Pass filter first (before any D gain) and find the lowest frequency possible that doesn't add significant additional overshoot.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  I'm guessing this may be around
> 50Hz.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Then start adding D gain to see if it reduces the overshoot.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  It's hard for me to predict what the numeric value might
> > be.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Start with is tiny number that has no effect.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Then increase it in steps of about 50% increases until you see an
> > > effect.ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Too much will cause the system to become more unstable.
> > > > > >
> > > > > >
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Saturday, May 12, 2012 4:37 AM
> > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > >
> > > > > >
> > > > > >
> > > > > > ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > Hi Tom,
> > > > > >
> > > > > > Changed both transistors just to safe and now it is working. Uploaded a picture PWMtoVFD4.png to my folder.
> > > > > >
> > > > > > Can you be so kind and direct me so we can get the best of of this.
> > > > > > How can I command in Console a fixed speed for test?
> > > > > >
> > > > > > Looking forward to see what you have in mind for this old fart ;)
> > > > > > I am happy as I have peed out the small stone last night, picture in same folder.
> > > > > >
> > > > > > Cheers
> > > > > > Bengt
> > > > > >
> > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Hi Bengt,
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > I agree.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  OrÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  a short from base to collector somehow.
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Regards
> > > > > > > TK
> > > > > > >
> > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > Sent: Friday, May 11, 2012 1:34 PM
> > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > Hi Tom,
> > > > > > >
> > > > > > > I just had to get down and do it, had a break with pain so here it is.
> > > > > > >
> > > > > > > PWM
> > > > > > > 0= 0V 255= 2.7V
> > > > > > > collector opto
> > > > > > > 4.99V 0.137V
> > > > > > > base pnp
> > > > > > > 4.99V 4.18V
> > > > > > > base npn
> > > > > > > 0.525V 0.642V
> > > > > > > collector pnp
> > > > > > > 0.510V 4.77V
> > > > > > > collector npn
> > > > > > > 0.528V 0.643V
> > > > > > >
> > > > > > > Looks to me like the 2N2222A is out of order (Ebay...)
> > > > > > >
> > > > > > > Cheers
> > > > > > > Bengt
> > > > > > >
> > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > >
> > > > > > > > Hi Bengt,
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > No rush.ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚  Take care of yourself we need you :}
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Regards
> > > > > > > > TK
> > > > > > > >
> > > > > > > > From: Bengt Sjoelund <cnc@>
> > > > > > > > To: DynoMotion@yahoogroups.com
> > > > > > > > Sent: Friday, May 11, 2012 11:41 AM
> > > > > > > > Subject: [DynoMotion] Re: PWM to VFD
> > > > > > > >
> > > > > > > >
> > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â‚¬Å¡ÃÆ'‚¬ÃÆ'Æ'…ÃÆ'‚¡ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Å¡ÃÆ'Æ'‚ÃÆ'‚ 
> > > > > > > > Hi Tom,
> > > > > > > >
> > > > > > > > I will carry out the measurements tomorrow, just now I am not up to it as I am having one or several kidney stones on the way out.
> > > > > > > > Hopefully this will be over soon.
> > > > > > > >
> > > > > > > > This is what I was afraid of as the max would not go over 2.5V so let us hope I can nail down the fault.
> > > > > > > >
> > > > > > > > Cheers
> > > > > > > > Bengt
> > > > > > > >
> > > > > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> > > > > > > > >
> > > > > > > > > Hi Bengt,
> > > > > > > > > ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'†'ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â 'ÃÆ'Æ'Æ'ÃÆ'†'ÃÆ'Æ'‚ÃÆ'‚¢ÃÆ'Æ'Æ'ÃÆ'‚¢ÃÆ'Æ'¢ÃÆ'¢â€šÂ¬ÃÆ'…¡ÃÆ'Æ'‚ÃÆ'‚¬ÃÆ'Æ'Æ'ÃÆ'¢â‚¬Â¦ÃÆ'Æ'‚Ã