Hi Russ,
That sounds like the behaviour when one attempts to run KFlop+Kanalog from USB power and not a separate supply. But it seems you are not doing this. Is the KFlop USB Power Jumper J3 removed? On boot up when the Kanalog +/- 15V generators start up, there is about a 1 Amp power surge from the +5V. Is your +5V supply ok with this? If all this is true, you will need to return the boards for testing and/or repair.
Regards
TK
| Group: DynoMotion |
Message: 742 |
From: cncman172 |
Date: 11/6/2010 |
| Subject: Re: KFLOP+KANALOG |
Tom,
I just checked my 5V supply and it only has a 500ma capacity so I will put on a different supply. The jump J1 is removed. Let you know what happens. Thanks this could be an easy fix.
Russ
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Russ,
>
> That sounds like the behaviour when one attempts to run KFlop+Kanalog from USB
> power and not a separate supply. But it seems you are not doing this. Is the
> KFlop USB Power Jumper J3 removed? On boot up when the Kanalog +/- 15V
> generators start up, there is about a 1 Amp power surge from the +5V. Is your
> +5V supply ok with this? If all this is true, you will need to return the
> boards for testing and/or repair.
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: cncman172 <rdlarson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sat, November 6, 2010 10:06:38 AM
> Subject: [DynoMotion] KFLOP+KANALOG
>
> Â
> Tom,
>
> I purchased the FLOP + KANALOG card together and it came assembled together when
> it arrived. I got busy and did not have a chance to start testing it until
> today.
>
> When I tried plugging it into my Windows XT box everything seemed normal the
> blinking green LEDS and then they would go solid and then one led and then
> blinking again over and over.
>
> Windows would show the KFLOP discovered and then it would disapper and over and
> over again. I finally got it to add the driver but the same thing you could hear
> the ding in windows over and over. I uninstalled everything and attempted it
> again. This time windows would not even find the hardware seemed like it lost
> something.
>
> I have another hard disk for this same PC with Vista loaded so I tried the same
> thing with that hard disk and it would find the kflop and then it would
> disappear over and over again. This time I decided to try something new. I
> completely disconnected the KANALOG by unplugging both the small RJ8 cable and
> the flat ribbon cable. This time when I would plug in the unit it would blink
> and sudden go two solid green LEDs. This time I was able to load the drivers and
> then go into Kmotion and flash the newest verison 4.23.
>
> I then turn off everything and plugged the KANALOG back into the KFLOP turn it
> on and it went right back to the behaviour where it boots over and over and
> over. Can you tell me what I am doing wrong? I went itno Kmotion and told it
> there was a KANALOG and that did not fix anything. Thanks
>
> Just a little more information this has a dedicated 5V supply not the one in the
> PC so not drawing power from the USB port. I have not servo drivers or anything
> else connected as this is just sitting on my desk next to my pc for initial
> testing. Thanks for any guidance.
>
> Russ Larson
>
|
|
| Group: DynoMotion |
Message: 744 |
From: cncman172 |
Date: 11/6/2010 |
| Subject: KFLOP+KANALOG |
|
Tom,
When I study the documentation I am a little confused over what happened to the JP7 outputs from the pulse generators? When I examine the Kanalog docs I can not see where these got mapped. There is no schematic that I could find on the site.
I am attempting to use step/direction outputs to drive a 26LS31 differential driver that in turn drives the Panasonic Servo Amplifier. I have the drivers configured for step and direction and they have all been tested when connected to a parallel port using MACH3.
Right now I am just bench testing everything before I disconnect everything and rewire my entire machine.
When I purchased the KANALOG board with the KFLOP I figured I was getting much for I/O but it seems like you use access to some of the ports. On the docs it says I can not use the JP7 i/o when you use the KANALOG.
Litte more guidance would be useful. Thanks
Russ Larson
|
|
| Group: DynoMotion |
Message: 745 |
From: Tom Kerekes |
Date: 11/6/2010 |
| Subject: Re: KFLOP+KANALOG |
Hi Russ,
Yes KFlop JP7 is consumed when adding the Kanalog Board. Sorry about that :}
If you need Step/Dir generators with Kanalog then you can use 4 through 7 from JP5. Disconnect the RJ45 cable going to Kanalog. You will loose the last 8 of 16 differential inputs on Kanalog, but everything else on Kanalog will still be functional.
Regards
TK
| Group: DynoMotion |
Message: 746 |
From: cncman172 |
Date: 11/7/2010 |
| Subject: KFLOP+KANALOG |
|
Tom,
I removed the jumper as you suggested and used Step/Dir generator #4 on channel zero for my first motor to do some testing. This has been a real learning experience and I am still very much in the dark.
I have not used and C-programs just doing stuff on the console and using the config screens right now to see if I can get stuff working.
On the config screen I selected Channel 0 (left side) and for output Channel 4 (this is the forth step/dir generator that uses Open Collector outputs if I read things correctly. I send these output into a 26LS31 differential driver and I use 8.2K pullups on the step and direction inputs into this driver.
I then went into the Step Response screen and started playing. I could get the motor to move to a degree. If under step I changed the time to say 1 second and size to 2000 and pressed the move button the motor would move 1/4 turn followed by a small delay and then another quarter turn in the same direction. Was it suppose to move left and then right or is this correct. I am a little confused over the need to adjust the step response as I tuned the motor using the Panasonic internal wizard and it turns very smooth and accurately using MACH3 and the parallel port as a source.
When I tried playing with the max limits, motion profile, dead band, etc I could not get the command and Position plots to be even close to each other. It is pretty clear I have a problem here. Is is required to download anything to KFLOP or can you do this kind of testing just using the Step Response screen. When I tried to get things to move again using the console screen it did not work correctly. Now if I configured Channel 0 as my first motor and the output is channel 4 when you use the console do I use jog0=400 or jog4=400.
When I check Axis 0 it shows enabled. Once I configured the use console had most sample commands at the bottom using "4", jog4, moverel4, move4, etc.
I must have some of this stuff correct or the motor would not move while in the step response screen.
I will spend several more hours reading this afternoon. You had the Kmotion PDF as one file but not the stuff for KFLOP so I have been studying those page by page online.
Ultimately I would like to get this unit to drive (4) panasonic amplifiers (X,Y,Z,A) and motors and have my MPG and limit,home switches and finally my VFD working. ha ha
I have been attempting to read old posts to see if others had some of my same struggles so I can start to make more progress. Thank you for your guidance it has been most useful. :)
Russ
|
|
| Group: DynoMotion |
Message: 747 |
From: Tom Kerekes |
Date: 11/7/2010 |
| Subject: Re: KFLOP+KANALOG |
Hi Russ,
See below
| Group: DynoMotion |
Message: 748 |
From: cncman172 |
Date: 11/7/2010 |
| Subject: Re: KFLOP+KANALOG |
|
Tom,
Wow you are AWESOME. Amazing to get responses from you on Saturday and Sunday now that is nothing short of first class. I am still pounding away working the issues one at a time.
I have tried to respond to some of your comments and questions below.
Russ
Since you are using a driver chip anyway you could eliminate the need for the pull up resistor by driving the outputs as 3.3V LVTTL signals. LVTTL instead of "open collector" is selected by adding 8 to the Step/Dir channel number (so you would specify 12 instead of 4)
Tom
Yes, I figured the LVTTL would probably work without the using the pullups but this is just sitting on a proto board so it took two seconds to add the pullup resistors to ensure the open collector option would work.
Russ
Yes there is little to do in the Step Response Screen for a system like yours where KFlop does not close the servo loop. The only thing to do is to set the max Velocity, Acceleration, and Jerk and to verify proper operation as a diagnostic tool.
Tom
After reading through lots of documentation on the KFLOP it looks like I could put my amplifiers in velocity mode and have the KFLOP close the loop using +-10V inputs and encoder outputs from my amplifiers, but figured I would try this mode first because I know the Panasonic tuning was very good and had nice response.
When I look at the config page and the Step Response page I did not see where you can set the max velocity, acceleration, and jerk. I have seen on some of the C programs where that gets set. Did I overlook something somewhere?
Russ
Motion profile should be the only thing that has an effect, which will define the velocity, acceleration, and jerk.
Tom
Well just looked again and, did not catch the "V", "A", and "J" under profile were for those items. It does not show units so is that in steps? For a motor with a max velocity of 3000RPM and an encoder of 2000/rev do you just say 3000*2000 = 6,000,000? What is definition of JERK? Please don't say me.. ha ha
Russ
Do you have encoder feedback connected to KFlop??
Tom
No, so that explains why the RED actual postion never plots because it can not see my encoder changing. Makes sense to me.
Russ
OK, A little more progress in the last hour. I tracked down the issue of the motor not reversing. One of my wires from the differential driver on the direction output was broken inside the insulation. It was only getting half the signal. The motor now reverses during the test in step response.
Things are starting to become a little more stable, but still have lots of questions. When I go to the console I can now tell it to jog0=-250 and it moves but very slowly. When I tell it to Move0=0 it goes very fast back to the zero position. The jog speed must be defined somewhere I overlooked.
I tried setting the max velicoity using the calculations I provided above but it does not actually seem anything close to 3000 rpm. At least I have a motor moving still need to understand lots of items before I attempt to start putting the C-code together. Wow big learning curve. :) Tom thanks for all you help it is making this effort go easier.
Russ
|
|
| Group: DynoMotion |
Message: 750 |
From: Tom Kerekes |
Date: 11/7/2010 |
| Subject: Re: KFLOP+KANALOG |
Hi Russ,
Russ:Well just looked again and, did not catch the "V", "A", and "J" under profile were for those items. It does not show units so is that in steps? For a motor with a max velocity of 3000RPM and an encoder of 2000/rev do you just say 3000*2000 = 6,000,000? What is definition of JERK? Please don't say me.. ha ha
TK: The units are counts (or steps) and seconds. So you forgot to divide by 60 secs/minute. 3000 / 60 * 2000 = 100,000 cnts/sec. We may be off by a factor of 4 if your encoder is 2000 cycles/rev instead of 2000 quadrature counts/rev.
Yes driving your amps in analog velocity mode would offer more control but more of a learning curve :}
"Jerk" is the rate of change of acceleration. Applying the brakes a small amount quickly is more likely to make you spill your coffee than applying the brakes harder but more gradually. When using Mach3 it generates all the motion trajectories with instant acceleration (infinite Jerk). With our KMotionCNC rapids (G0) and Jogging uses jerk controlled independent motions. Coordinated motions G1,G2,G3 still use infinite Jerk though. If you set the Jerk value 100X bigger than the Acceleration value then the acceleration will be applied in 0.01 seconds which will be similar to what Mach3 does.
Our definition of "jog" is to move at constant velocity forever. So Jog0=250 means to move at 250 step/sec which would be quite slow. Move commands move to the specified position as fast as possible within the specified Velocity, Acceleration, and Jerk limits.
Regards
TK
| Group: DynoMotion |
Message: 751 |
From: cncman172 |
Date: 11/7/2010 |
| Subject: Re: KFLOP+KANALOG |
Tom,
Good catch. :) I just realized my amplifiers also have internal gearing which is really nothing more than an encoder count divider which allows you to higher speed or greater precision. I need to examine the current setting.
3000 RPM = 50 Rev per second
Just checked the amplifier I was using was set to electronic gearing so the motor was set to 1000 P/R
I went ahead and changed to 2000 P/R which is what I normally run on my system. The actual encoders can do 2500 P/R
In MACH3 they actual use Quadrature Counts, so it takes the encoder count and multiplies it by four, as they look for each edge transition on both A and B waveforms.
MAX VELOCITY IN COUNTS PER SECOND
50 * 2000 = 100,000 or 400,000 if you guys count quadrature. I will run an experiement and find out how much distance it takes to move one revolution which should answer this question.
Thanks again for all the prompt responses, it makes things go much faster. :)
OK, so JERK is really acceleration curves. In MACH3 that is all done in motor turning and actually the motor does ramp up and ramp down depending on how you have that set. You can actually watch it happen if you have gcode that moves far enough to get to speed and then slows down at the end of the move.
OK, I understand your JOG and MOVE commands better now. JOG is kind of like G1 and a given feedrate, and MOVE is more like G0 at full speed.
Still learning all the aspects it is starting to come but wow it has been like learning MACH3, slow but sure. ha ha Thanks again for all your help.
Russ
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Russ,
> Â
> Russ:Well just looked again and, did not catch the "V", "A", and "J" under
> profile were for those items. It does not show units so is that in steps? For a
> motor with a max velocity of 3000RPM and an encoder of 2000/rev do you just say
> 3000*2000 = 6,000,000? What is definition of JERK? Please don't say me.. ha ha
>
> TK: The units are counts (or steps) and seconds. So you forgot to divide by 60
> secs/minute.   3000 / 60 * 2000 = 100,000 cnts/sec. We may be off by a factor
> of 4 if your encoder is 2000 cycles/rev instead of 2000 quadrature counts/rev.
>
> Yes driving your amps in analog velocity mode would offer more control but more
> of a learning curve :}
>
> "Jerk" is the rate of change of acceleration. Applying the brakes a small
> amount quickly is more likely to make you spill your coffee than applying the
> brakes harder but more gradually.  When using Mach3 it generates all the motion
> trajectories with instant acceleration (infinite Jerk). With our KMotionCNC
> rapids (G0) and Jogging uses jerk controlled independent motions. Coordinated
> motions G1,G2,G3 still use infinite Jerk though.  If you set the Jerk value
> 100X bigger than the Acceleration value then the acceleration will be applied in
> 0.01 seconds which will be similar to what Mach3 does.Â
>
> Our definition of "jog" is to move at constant velocity forever. So Jog0=250
> means to move at 250 step/sec which would be quite slow. Move commands move to
> the specified position as fast as possible within the specified Velocity,
> Acceleration, and Jerk limits. Â
>
> Regards
> TK
>
>
>
>
> ________________________________
> From: cncman172 <rdlarson@...>
> To: DynoMotion@yahoogroups.com
> Sent: Sun, November 7, 2010 12:06:52 PM
> Subject: [DynoMotion] Re: KFLOP+KANALOG
>
> Â
> Tom,
>
> Wow you are AWESOME. Amazing to get responses from you on Saturday and Sunday
> now that is nothing short of first class. I am still pounding away working the
> issues one at a time.
>
> I have tried to respond to some of your comments and questions below.
>
> Russ
>
> Since you are using a driver chip anyway you could eliminate the need for the
> pull up resistor by driving the outputs as 3.3V LVTTL signals. LVTTL instead of
> "open collector" is selected by adding 8 to the Step/Dir channel number (so you
> would specify 12 instead of 4)
>
> Tom
>
> Yes, I figured the LVTTL would probably work without the using the pullups but
> this is just sitting on a proto board so it took two seconds to add the pullup
> resistors to ensure the open collector option would work.
> Russ
>
> Yes there is little to do in the Step Response Screen for a system like yours
> where KFlop does not close the servo loop. The only thing to do is to set the
> max Velocity, Acceleration, and Jerk and to verify proper operation as a
> diagnostic tool.
> Tom
>
> After reading through lots of documentation on the KFLOP it looks like I could
> put my amplifiers in velocity mode and have the KFLOP close the loop using +-10V
> inputs and encoder outputs from my amplifiers, but figured I would try this mode
> first because I know the Panasonic tuning was very good and had nice response.
>
> When I look at the config page and the Step Response page I did not see where
> you can set the max velocity, acceleration, and jerk. I have seen on some of the
> C programs where that gets set. Did I overlook something somewhere?
> Russ
>
> Motion profile should be the only thing that has an effect, which will define
> the velocity, acceleration, and jerk.
> Tom
>
> Well just looked again and, did not catch the "V", "A", and "J" under profile
> were for those items. It does not show units so is that in steps? For a motor
> with a max velocity of 3000RPM and an encoder of 2000/rev do you just say
> 3000*2000 = 6,000,000? What is definition of JERK? Please don't say me.. ha ha
>
> Russ
>
> Do you have encoder feedback connected to KFlop??
> Tom
>
> No, so that explains why the RED actual postion never plots because it can not
> see my encoder changing. Makes sense to me.
> Russ
>
> OK, A little more progress in the last hour. I tracked down the issue of the
> motor not reversing. One of my wires from the differential driver on the
> direction output was broken inside the insulation. It was only getting half the
> signal. The motor now reverses during the test in step response.
>
> Things are starting to become a little more stable, but still have lots of
> questions. When I go to the console I can now tell it to jog0=-250 and it moves
> but very slowly. When I tell it to Move0=0 it goes very fast back to the zero
> position. The jog speed must be defined somewhere I overlooked.
>
> I tried setting the max velicoity using the calculations I provided above but it
> does not actually seem anything close to 3000 rpm. At least I have a motor
> moving still need to understand lots of items before I attempt to start putting
> the C-code together. Wow big learning curve. :) Tom thanks for all you help it
> is making this effort go easier.
>
>
> Russ
>
|
|
| | | | | | | |