Page 1 of 3 123 LastLast
Results 1 to 12 of 29

Thread: Kfop+Kstep loosing steps

  1. #1
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    46
    Downloads
    0
    Uploads
    0

    Kfop+Kstep loosing steps

    A short story: been using Mach+smoothstepper for 7 years and never happy with both,
    Mach not that reliable, rounding corner,jerky movement,Smoothstepper: disconnect anytime
    And this issue never been solved, so I am looking for a replacement for both, bought kfop
    a year ago but afraid to use it because I don’t know anything about c language, after reading all posts from “fish4fun” I decided take it out of the drawer and hook it up, my first impression is how smooth my stepper sound, and while it run a gcode I try to open autocad, word, coreldraw and even watch video but never have disconnect issue and it return
    to 12 o’clock pos all the time with gecko 203v, have been leave my PC and kflop on for 2 months straight but no disconnect nightmare that I have with SS, so I am so exciting, have to make this wonderful stuff to work. so just bought kstep to simplify hookup, configuration, hope someone can help with kstep loosing steps.
    Kflop+kstep
    My set-up: kmotion cnc ver.428
    - Power supply: 24v-4.5a connect to J1
    - Voltage clamp : A installed – B install – C removed (25v)
    - Stepper PK266-02A bipolar 1.4a – 5v -current set: L installed, H,M removed
    - Isolate jumper both installed, using 5 v from usb
    - JR1, J6 no connections
    I am using kmotioncnc ver. 428, using c:\kmotion428\cprograms\kstep\InitKStep3Axis.c
    I don’t change anything except toolsetup\trajectoryplanner\count-inch from 10,000
    To 5,000 because stepper spin too fast and stall, there are no load on all steppers, I put a tape on stepper pole at 12 o’clock position and run a gcode, after finishing it not return 12 o’clock position anymore, I removed kstep and using Gecko 203v , all setup the same and no lost step at all, I can let it runs gcode all day without any loosing step, is there anything that I am missing, please help. I also tried to remove both isolate jumper and hook up 5v to
    J6 but get the same problem.


  2. #2
    Registered TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    453
    Downloads
    0
    Uploads
    0
    Hi Itran2000,

    Could you try increasing the step pulse to 4us with

    FPGA(STEP_PULSE_LENGTH_ADD) = 63 + 0x80;

    Regards
    TK
    http://dynomotion.com


  3. #3
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    46
    Downloads
    0
    Uploads
    0

    FPGA(STEP_PULSE_LENGTH_ADD) = 63 + 0x80;

    Hi, Tom
    where do I add this line to ? I open c:\kmotion428\DSP_KFLOP\KMotionDef.h
    and change this line: #define STEP_PULSE_LENGTH_ADD 0x06 to #define STEP_PULSE_LENGTH_ADD 63 + 0x80
    is this the correct way ? otherwise can you attach a file so I just copy and replace,
    by the way it lost certain amount each time i run a 3 minute gcode, from 12:00 to 12:03 and 12:06 each time,
    not randomize, I also tried new power supply 40v-15a, thank for your help.
    ltran2000


  4. #4
    Registered TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    453
    Downloads
    0
    Uploads
    0
    Hi Itran2000,

    No. You would add that exact line of C code into your InitKStep3Axis.c program to the beginning of the main function. Such as:

    #include "KMotionDef.h"

    // Defines axis 0, 1, 2 as simple step dir TTL outputs for KSTEP
    // enables them
    // sets them as an xyz coordinate system for GCode

    int main()
    {
    double T0, LastX=0, LastY=0, LastZ=0, Tau;

    KStepPresent=TRUE; // enable KSTEP input multiplexing

    FPGA(STEP_PULSE_LENGTH_ADD) = 63 + 0x80;

    .
    .
    .
    TK
    http://dynomotion.com


  • #5
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    46
    Downloads
    0
    Uploads
    0

    Problem solved

    Problem solved, thanks Tom for your help, if i can can make this work, everyone can, like i said i don't know anything about C language, this is a very affordable system:
    -- klop $250 + kstep $200(4 drives) +free kmotioncnc = $450 plus a super support,
    next i will figure out how to hook-up relay output for spindle and home/limit switch and all will be set, I will report back when i have time to hook-up to real router and see how it perform, Thanks Tom


  • #6
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    46
    Downloads
    0
    Uploads
    0
    I tested some more after adding that line code and no more miss steps,
    now how can i slave channel#3 to channel#0 (X axis),
    this is how i do it :
    --- open kmotion, click on "config&flash"
    --- channel=3
    --- axis modes, input=no input, output=step dir
    --- input channel, 0, gain=1, offset=0
    --- outputchannel, 11, gain=1, offset=0
    --- master/slave, slave gain=1, master axis=0
    --- click on "download channel"
    --- click on "c code clipboard"
    --- open c:\kmotion428\cprograms\kstep\InitKStep3Axis.c
    --- paste the clipboard into "InitKStep3Axis.c" right after
    the end of channel 2
    --- add "EnableAxisDest(3,0);" at the end of channel 3
    is this the correct way to do it ? seem it work for me but just make sure i did it right. Thanks


  • #7
    Registered TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    453
    Downloads
    0
    Uploads
    0
    Yes that sounds correct to me. Homing Slaved axes is usually a bit tricky. Usually the axes are de-slaved, then both homed independently but at the same time while each watching for separate home switches and stopping independently.

    Regards
    TK
    http://dynomotion.com


  • #8
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    46
    Downloads
    0
    Uploads
    0
    Thanks Tom, I just notice that after finishing a job a few seconds kstep
    turn-off all axises off completely, it should reduce current when idle but not turning off, because when I change tool bit i may move the gantry, how do i change this, thanks.


  • #9
    Registered TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    453
    Downloads
    0
    Uploads
    0
    The loop at the end of the Init.c program is what does this. Delete the entire loop and it will never disable. If necessary it might be possible to PWM the enable to maintain a reduced current.

    Regards
    TK
    http://dynomotion.com


  • #10
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    46
    Downloads
    0
    Uploads
    0
    I am sorry I don't know how to do this either, can you write a script for
    "PWM the enable to maintain a reduced current" and exactly where to add
    to, thanks


  • #11
    Registered TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    453
    Downloads
    0
    Uploads
    0
    Itran2000,

    Try replacing the forever loop with the attached code (I just hope it doesn't making an annoying noise turning off and on at 2.5KHz).

    Otherwise did you try deleting the entire loop?

    Regards
    Attached Files Attached Files
    TK
    http://dynomotion.com


  • #12
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    46
    Downloads
    0
    Uploads
    0
    Yes, I did deleted " for (; // loop forever...." to the end, except the very last line " return 0;" and it no longer turn-off any more, I also added the "PWM enable", my steppers are not making any noise at all. Thanks


  • Page 1 of 3 123 LastLast

    Similar Threads

    1. Need Help!- Axis loosing steps
      By Vogavt in forum Benchtop Machines
      Replies: 3
      Last Post: 01-07-2010, 12:01 PM
    2. Taig CNC loosing steps again
      By diamondback21 in forum Taig Mills & Lathes
      Replies: 6
      Last Post: 05-25-2009, 02:21 AM
    3. Need Help!- BP series 1 loosing steps
      By bartL in forum Bridgeport and Hardinge Mills
      Replies: 15
      Last Post: 07-16-2008, 01:55 PM
    4. Loosing steps
      By Normann in forum Automation Technology Products
      Replies: 6
      Last Post: 10-15-2007, 03:15 AM
    5. Loosing Steps How to Check
      By Cartierusm in forum Mach Software (ArtSoft software)
      Replies: 10
      Last Post: 09-11-2007, 07:26 AM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.