585,575 active members*
4,096 visitors online*
Register for free
Login
Results 1 to 11 of 11
  1. #1
    Join Date
    Jul 2004
    Posts
    242

    Question G28 Home function doesn't work TCNC 4.01

    The G28 home function won't work. I've got my N/O home switches wired to 10,12,13 & Gnd. Set the ports to active low, "Home is Limit", Home SW 1-3 enabled. When I enter the G28 command, it sounds like the controller trys to move the motors, they kinda grunt but nothing happens. Also, when I'm running a program, it randomly stops due to a "limit error" yet no limit switch is activated. Using the port monitor, I can see the switches change states when manually activated.

    In the jog mode, I can jog the axis by using the discrete mode but the continous mode doesn't work, it just kinda grunts. I think the two issues are related.

    Any ideas?

  2. #2
    Join Date
    Mar 2004
    Posts
    1804
    rustyolddo
    I am sitting on my house machine and "THINK" my test file on the computer is set up the same as my unit in the shop, and I have my home switchs set active LO, BUT my switches are set NC!
    What I would suggest is that you disable all but ONE axis and then play with the setting on that axis to get things to work. Then disable that one and do the next one etc. until all three are working. Then go back and enable all of them. It is hard to say which is going to be correct as each setup is different (breakout boards etc).
    Also, I found out the hard way, IF you use combination home/limit, you disable the limt switch funtion in the config file. It will automatically handle limits if you set the function Home=Limit.
    Hope this helps.
    Art
    AKA Country Bubba (Older Than Dirt)

  3. #3
    Join Date
    Jul 2004
    Posts
    242
    Quote Originally Posted by Bubba
    rustyolddo
    I am sitting on my house machine and "THINK" my test file on the computer is set up the same as my unit in the shop, and I have my home switchs set active LO, BUT my switches are set NC!.
    Since mine are N/O, I'll try setting to active HI

    Also, I found out the hard way, IF you use combination home/limit, you disable the limt switch funtion in the config file. It will automatically handle limits if you set the function Home=Limit.
    Hope this helps.
    Can't find any referece to a limit switch function in the .ini file, only homeislimit= Am I missing something or do I need to add something?
    .
    .
    .
    .

  4. #4
    Join Date
    Mar 2003
    Posts
    35538
    Try homeislimit = yes, if it's set to no.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  5. #5
    Join Date
    Jul 2004
    Posts
    242
    (MDI using G28)

    I set homeislimit=NO, that allowed the manual jog to function.

    I set homeSW1 up, tried active high & active low. Made sure no other ports were enabled & using line 10

    No luck. It just rocks a little and zeros the axis setting on the screen but the switch is not contacting anything. I tried enabling both the Limit & Home Sw on the same port, no homing action. But if I manually activate the switch, I'll get the "Limit sw activated " dialog on the screen. Tried playing with the home speed, reducing it, made no difference. Can't think of anything else to try. I'll post my .ini if that will help.

  6. #6
    Join Date
    Mar 2004
    Posts
    1804
    rustyolddo
    you have me at a loss now. you might want to post this information over on the yuhoo group for TCNC and let the pros have a go at it! They have been most helpful to me in times like this!
    Art
    AKA Country Bubba (Older Than Dirt)

  7. #7
    Join Date
    Jul 2004
    Posts
    242
    Would the printer post setting STD vs EPP make a differenece? Gonna try that next.

  8. #8
    Join Date
    Jul 2004
    Posts
    242

    The Solution!

    Problems: Intermittent program halt due to limit switch, no limit
    switch activated. Home command G28 did not function, axis would rock
    and reset to 0.00 but never jog into Home.

    Software Port Monitor showed switches changing state whenever
    manually activated indicating no problem.

    Changed "Home is Limit", changed Active High/Low, Compared as
    supplied .INI file with modified .INI file. Reloaded software. Set
    sofware debounce time higher. Changed Computer Port type, Std, EPP,
    ECP, deactivated all power management in CMOS setup, deactivated all
    non essential features in BIO setup.

    I'm using an old Pentium laptop to drive a HobbyCNC 4 axis board.
    Alot of folks told me the laptop was no good because the port voltage
    was too low. Indeed it was, the port voltage is around 3.3 volts or
    so. So I tried a desktop system and I still had all the same
    problems. Folks told me I needed a port breakout board to solve the
    problem.

    I'm using normally open switches for my home switches, folks told me
    only normally closed switches would work. The switches I purchased
    came from Digikey, they are watertight D2SW series and have a high
    positional accuracy. Haven't measured it to see, but spec is around
    0.4mm.

    Finally had the old dim bulb go on. H-CNC board is chopper drive, &
    stepper motors are obviously pulse drive. Noisy, trashy stuff. I
    included my limit switch wires in the same cable with the motors. I
    put my scope on the limit swith leads at the controller board and I
    found 3 Vpp of noise on the switch lines. <Big Smack to the Forehead>
    I put a .01 cap from the lines to ground and viola, noise was gone
    and the home switchs worked as designed. I suspect shieled cable for
    the home switches would be in order but I'd still use a cap across
    any & all of the I/O lines to reduce the chance of a spike tripping
    things. Hope this helps someone else.

    --C

  9. #9
    Join Date
    Apr 2003
    Posts
    470
    sounds like your rapid speed is set too high and your motors just simply poop out and can't keep up. slow your maximum speed down pretty low and then increase it gradually to find out what you maximum rapids are.
    Nathan

  10. #10
    Join Date
    Jul 2004
    Posts
    242
    Quote Originally Posted by anoel
    sounds like your rapid speed is set too high and your motors just simply poop out and can't keep up. slow your maximum speed down pretty low and then increase it gradually to find out what you maximum rapids are.
    I had solved that problem, but you are correct. Big issue was the Home switches.

  11. #11
    Join Date
    Apr 2003
    Posts
    361
    Quote Originally Posted by rustyolddo
    ...H-CNC board is chopper drive, &
    stepper motors are obviously pulse drive. Noisy, trashy stuff. I
    included my limit switch wires in the same cable with the motors. I
    put my scope on the limit swith leads at the controller board and I
    found 3 Vpp of noise on the switch lines...
    Great news that your CNC is working now. As for the cause, I guess everyone assumed that you've adhere to CNC101... never bundle limit switches wires with the motor wires... :bat:
    Stupid questions make me smarter...
    See how smart I've become at www.9w2bsr.com ;-P

Similar Threads

  1. photomicro sensor, ~$25. Will this work for home switch?
    By spoiledbrat in forum CNC Machine Related Electronics
    Replies: 17
    Last Post: 05-29-2005, 03:14 PM
  2. Can Tcnc....?
    By extreme in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 1
    Last Post: 04-07-2005, 11:54 PM
  3. Would this work as a limit/home switch?
    By DAB_Design in forum CNC Machine Related Electronics
    Replies: 4
    Last Post: 12-17-2004, 02:59 PM
  4. Gecko 201's with TCNC
    By jimini in forum Gecko Drives
    Replies: 3
    Last Post: 10-24-2004, 07:24 PM
  5. CAD-CAM work from home - any possibilities?
    By tex in forum Employment Opportunity
    Replies: 3
    Last Post: 09-06-2004, 06:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •