Page 2 of 3 FirstFirst 123 LastLast
Results 13 to 24 of 29

Thread: Kfop+Kstep loosing steps

  1. #13
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    46
    Downloads
    0
    Uploads
    0
    Hi, Tom
    Can you help with relay on/off set up for spindle, I tried to hook-up
    but seem like it is not working, here is my set-up:
    ---power supply 24V+ to kstep JP33-pin1(relay 0+)
    ---power supply 24V- to relay 24V-
    ---relay 24V+ to kstep JP33-pin2(relay 0-)
    --- a diode across relay pins.
    Do I need a script or kflop comes with script by default ?
    by looking at "InitKStep3Axis" I don't see any relate info there.Thanks


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


    The wiring sounds correct. You didn't specify the direction of the diode. If placed the wrong way it will short circuit the Relay. It should "point" from the negative to the positive relay terminals so it doesn not normally conduct.

    See:

    Using KStep

    under Relay Driver Outputs

    You can just use the Digital IO Screen to test. All you need to do as set as an output and toggle the state.

    From C code it would be:

    SetBitDirection(0,1); // set bit 0 (Relay0) as an output
    SetBit(0); // set bit 0 (Relay0) on

    Regards
    TK
    http://dynomotion.com


  3. #15
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    46
    Downloads
    0
    Uploads
    0
    Hi Tom
    my wiring is correct (also the diode) after adding
    " SetBitDirection(0,1); // set bit 0 (Relay0) as an output
    SetBit(0); // set bit 0 (Relay0) on"
    to InitKStep3Axis.c ,
    from KmotionCNC when I click on INIT button the relay on right away, (I can turn relay on/off from Kmotion), It should be turn on at
    beginning of Gcode and off after finish the gcode, can I have a code for this, Thanks


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

    What is the purpose of the relay? Spindle? You can assign an MCode to turn on the relay and another to turn it off. Normally M3 and M5 are assigned to turn on and off the spindle. Then place M3 at the beginning of the GCode and an M5 at the end.

    Change the code in the Init program from SetBit to ClearBit so the relay will be off when the system is initialized.

    Regards
    TK
    http://dynomotion.com


  • #17
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    46
    Downloads
    0
    Uploads
    0
    Hi Tom
    Yes, relay for spindle on/off, Gcode contain M3 and M5
    how do I change from setbit to clearbit ?


  • #18
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    46
    Downloads
    0
    Uploads
    0
    and exactly where to add these line to InitKStep3Axis.c
    SetBitDirection(0,1); // set bit 0 (Relay0) as an output
    SetBit(0); // set bit 0 (Relay0) on

    Thanks


  • #19
    Registered TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    454
    Downloads
    0
    Uploads
    0
    Hi Iran2000,

    You may as well add those lines toward the beginning of the Init.c main program. For example just before this line:

    ch0->InputMode=NO_INPUT_MODE;

    But as I described change SetBit to a ClearBit so the Spindle is initially off.

    Within KMotionCNC under Tool Setup | M3-M9

    Configure M3 to turn on bit 0 and configure M5 to turn off bit 0.

    Regards
    TK
    http://dynomotion.com


  • #20
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    46
    Downloads
    0
    Uploads
    0
    Hi Tom
    From Kmotioncnc/toolsetup I adjust to:

    ----M3 I/Obit setbit 0 to 1
    ----M5 I/Obit setbit 0 to 0

    and add your code: SetBitDirection(0,1); // set bit 0 (Relay0) as an output
    SetBit(0); // set bit 0 (Relay0) on

    the relay on right away after I click INIT button, after i replace your code
    with this code from the manual:

    SetBitDirection(0,1); //set as output

    SetBit(0); // turn output on

    ClearBit(0); // turn output off

    everything working as it should be, I just post here in case someone want to use it. Thanks for all your help.


  • #21
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    46
    Downloads
    0
    Uploads
    0
    I am setting homing right now, seem work ok, I need hexagon bit # 168,169,170 to set limit switch since I can't enter these bits through Kmotion. Thanks


  • #22
    Registered TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    454
    Downloads
    0
    Uploads
    0
    Hi Iran2000,

    That bug has been fixed in test version

    http://dynomotion.com/Software/KMotion429z.exe

    or the values in hex for 168, 169, 170 are a8, a9, aa.

    Regards
    TK
    TK
    http://dynomotion.com


  • #23
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    46
    Downloads
    0
    Uploads
    0
    Hi Tom,
    All my spindle relay, homing/limit switches work perfectly for Kflop+Kstep,
    now I need wiring diagram for spindle relay for kflop to use with Gecko drives.Thanks


  • #24
    Registered TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    454
    Downloads
    0
    Uploads
    0
    Hi Itran2000,

    KFLOP itself only has LVTTL inputs. Some with series 47 ohms to make them +5V tolerant. JP4 and JP5 each have 8 with 150 ohm pull down resistors (all others are high impedance).

    So depending on your limit switches you will basically need to come up with an interface to 3.3V LVTTL IO.

    There are 3rd party modules that can convert 24V limit switches to 5V signals and provide opto isolation (such as opto22 modules).

    If you don't require opto isolation a series ~500 ohm resistor to one of the JP4/JP5 inputs with the internal 150 ohm pull down resistor switched to +12V can work. A 0.1uF ceramic capacitor from the input to ground can add filtering if required.

    For relay outputs, Winford sells a 4 output low cost relay board that the KFLOP ouputs can drive.

    Otherwise solid state relays that accept a 3V input can also be used.


    If you come up with a wiring diagram we can check it for you.

    Regards
    TK
    http://dynomotion.com


  • Page 2 of 3 FirstFirst 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.