Page 2 of 2 FirstFirst 12
Results 13 to 15 of 15

Thread: Homing each side of ganty indepentently

  1. #13
    Registered
    Join Date
    Oct 2010
    Location
    USA
    Posts
    61
    Downloads
    0
    Uploads
    0
    Finally!

    That was it. Disabled all Limits and Home switches in Mach3 and presto!

    Lesson learned: Enable first in KMotion and see if it works. If not, then try Mach3.

    Thank You!

    Now, I'm just fighting some I/O issues with one of the X-axis home switches. While looking at the I/O in KMotion I was seeing inputs changing state randomly. I found that the ground on the KFlop board itself was loose. After tightening, all but one of my limit switches are working fine. The one that's still flaky I've replace the cable as well as the switch, but no matter which output I have it connected to I still see intermittent changes in state when I run this test code:

    #include "KMotionDef.h"

    main()
    {
    int i=0;
    printf("--------- NEW TEST----------\n");
    do{
    if (ReadBit(24))
    {
    printf("ON\n");
    }

    i++;

    }while (i != 4000000);
    }

    If I disconnect the wire from the input the test runs perfect. As soon as I connect a wire and run the test, I get anywhere from 5 to 100 ON's displayed in the console.

    The cable I have connected to the input right now is industrial high flex network cable (2 pair, only using one) with a shield. Do you think I should hook the shield up? What are your thoughts? FYI, no axis are moving while this is happening.

    Dennis


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

    IO bit 24 is the 9th of 10 IOs on JP4. The first 8 of the 10 IOs on both JP4 and JP6 have 150 ohm pull down resistors. So IO 24 is very high impedance input (megohms). So maybe you need a termination resistor.

    But yes you would normally connect the shield on to DC Ground at the KFLOP end of the cable and leave the other end open.

    Regards
    TK
    TK
    http://dynomotion.com


  3. #15
    Registered
    Join Date
    Oct 2010
    Location
    USA
    Posts
    61
    Downloads
    0
    Uploads
    0
    Everything is working now, limit switches and homing. Thank You very much for your help.

    I've attached my final (for now) homing program. I condensed it to one routine because of issues I was having passing the speed argument from the main function to the SquareX function. Hopefully someone will find it useful.

    Another change I made was removing the commands to save, disable and then enable the limit switches. I'm not sharing any limit switches so I wanted all of the functionality to stay active.

    Thank you again for your help,

    Dennis
    Attached Files Attached Files


Page 2 of 2 FirstFirst 12

Similar Threads

  1. Newbie- Adjusting CRT Monitor side to side
    By tsrnewlin in forum Haas Mills
    Replies: 3
    Last Post: 09-13-2010, 08:11 PM
  2. Need Help!- Drifting X-axis, making step ladders one side whereas other side is smooth- SOS
    By Khalid in forum DIY CNC Router Table Machines
    Replies: 13
    Last Post: 07-13-2010, 12:23 PM
  3. New 80/20 Build. Need help w/ ganty
    By nikbrewer in forum DIY CNC Router Table Machines
    Replies: 5
    Last Post: 11-05-2008, 08:53 AM
  4. Z-axis - mounting rails on spindle side, rather than tower side
    By guru_florida in forum Linear and Rotary Motion
    Replies: 7
    Last Post: 01-31-2008, 07:54 PM
  5. mounting linear rails side by side
    By 50062040 in forum Linear and Rotary Motion
    Replies: 1
    Last Post: 10-24-2005, 08:49 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.