Touch-off plate for CNC router? - Page 3


Page 3 of 13 FirstFirst 123456 ... LastLast
Results 41 to 60 of 254

Thread: Touch-off plate for CNC router?

  1. #41
    Registered
    Join Date
    Oct 2006
    Location
    usa
    Posts
    104
    Downloads
    0
    Uploads
    0

    Default

    Thanks John, I've got classic ladder in the gui working now.

    http://chuckscnc.blogspot.com/


  2. #42
    Registered
    Join Date
    Oct 2006
    Location
    usa
    Posts
    104
    Downloads
    0
    Uploads
    0

    Default

    OK, I'm almosts finished but I'm getting an error that I can't figure out. My postgui.hal file looks like this:

    #set up the z-axis touchoff button
    net remote-z-axis-touchoff classicladder.0.in-00 <= pyvcp.z-axis-touchoff
    #set to mdi mode
    net halui.mode.is_mdi => classicladder.0.in-01
    #wait for motion to finish
    net motion.motion-inpos => classicladder.0.in-02
    #mdi command 1
    net z-touchoff classicladder.0.out-00 => halui.mdi-command-00
    #mdi command 2
    net z-zero classicladder.0.out-01 => halui.mdi-command-01
    #mdi command 3
    net rapid-away classicladder.0.out-02 => halui.mdi-command-02

    my ladder program is set up just like chester88's example. I get an error like "signal name 'motion.motion-inpos' must not be same as a pin." when trying to start emc. Any suggestions? I'm moderately sure the rest of my postgui code is right.

    http://chuckscnc.blogspot.com/


  3. #43
    Member
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    496
    Downloads
    0
    Uploads
    0

    Default

    ok try:
    net in_pos motion.motion-inpos => classicladder.0.in-02
    bet you got an error for:
    net halui.mode.is_mdi => classicladder.0.in-01
    try:
    net mode halui.mode.is_mdi => classicladder.0.in-01

    these two lines you did not specify signal names



  4. #44
    Registered
    Join Date
    Oct 2006
    Location
    usa
    Posts
    104
    Downloads
    0
    Uploads
    0

    Default

    Yep you were right but now I get a new error," 'halui.mode.is_mdi' does not exist". If I understand correctly it controls a bit that is true when I'm in the mdi window in axis? I was using the mdi command buttons in auto mode too, any reason why we can't do without it?

    http://chuckscnc.blogspot.com/


  5. #45
    Member
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    496
    Downloads
    0
    Uploads
    0

    Default

    You added HALUI=halui to the ini file? I would bet this is the first line that tries to connect to halui pins? yes?
    can you show the pins to if halui has been loaded? (add 'show pin' to your HAL file)
    I see another way to load halui is to add:
    loadusr halui -ini /path/to/inifile.ini
    to your custom HAL file (change the path to whats apropriate)



  6. #46
    Registered
    Join Date
    Oct 2006
    Location
    usa
    Posts
    104
    Downloads
    0
    Uploads
    0

    Default

    Yeah I added HALUI=halui in my .ini file, and it looks like the first to try to connect to halui pins. I tried your alternate way to load halui with the same results. I don't understand the show pin thing though. I put that alone in my hal file? I still get the error when I do that. Does "halui.mode.is_mdi" refer to a line the halui section of my ini file because all I have is HALUI=halui and my three mdi commands.

    http://chuckscnc.blogspot.com/


  7. #47
    Member
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    496
    Downloads
    0
    Uploads
    0

    Default

    sorry I should have been more specific:
    add the show pin line before the line that errors.
    run emc in a terminal window (open a terminal window and type emc)
    then when it gets to that line it should print out all the pin names.
    then check to see if the halui pins are present.
    If not then that is the problem.
    I am not home for a few more days so i don't have a linux box available to help you
    much. maybe John will see this thread and join in again....



  8. #48
    Registered
    Join Date
    Oct 2006
    Location
    usa
    Posts
    104
    Downloads
    0
    Uploads
    0

    Default

    Neat trick. It lists the pin as halui.mode.is-mdi instead of is_mdi so I changed it and emc will boot now but the button still does nothing in manual or mdi mode. The console does show an error though:

    ULAPI: WARNING: module 'HAL_classicladder' failed to delete shmem03

    http://chuckscnc.blogspot.com/


  9. #49
    Member
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    496
    Downloads
    0
    Uploads
    0

    Default

    The error is prob not a problem, pretty sure it about when the GUI closes that it didn't
    erase the shared memory and we don't want it to.
    can you open the classicladder gui and see that your program is loaded and that the pyvcp button registers on and off in classicladder?



  10. #50
    Member
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    496
    Downloads
    0
    Uploads
    0

    Default

    sorry about the pin name error - the wiki is wrong-I will fix it later the manual is right though.



  11. #51
    Registered
    Join Date
    Oct 2006
    Location
    usa
    Posts
    104
    Downloads
    0
    Uploads
    0

    Default

    Actually I just checked that using halmeter. The pyvcp button registers as well as the two classic ladder inputs. The mdi command pins don't when I press the button. I can't find a way to measure the %B0 and %B1. Do they always start false?

    http://chuckscnc.blogspot.com/


  12. #52
    Member
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    496
    Downloads
    0
    Uploads
    0

    Default

    you need to open the classicladder gui and click vars button then you can see the %B0 and %B1 variables plus watch the ladder logic work



  13. #53
    Registered
    Join Date
    Oct 2006
    Location
    usa
    Posts
    104
    Downloads
    0
    Uploads
    0

    Default

    All I get is a blank window. My machine is having trouble updating buttons on so many windows. I think its locking up when I load my ladder program. I'm gonna give it another couple tries though.

    http://chuckscnc.blogspot.com/


  14. #54
    Registered
    Join Date
    Oct 2006
    Location
    usa
    Posts
    104
    Downloads
    0
    Uploads
    0

    Default

    OK here's what I get. %I1 and %I2 are on when I start and %I0 is on when my button is pressed but I cant see any change in %B0 or %B1. There's no change in any of the outputs either.

    http://chuckscnc.blogspot.com/


  15. #55
    Member
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    496
    Downloads
    0
    Uploads
    0

    Default

    ok but you haven't told me if the ladder program is present-the last post said it was blank. I need clear info. If you dont see the program then it is not loaded and nothing will work If that is true you could try to load it from the classicladder window. I would bet the ladder program is not in the right directory or else the name is different from what you added to your HAL file. You remebered to add the .clp to the end of file name?



  16. #56
    Registered
    Join Date
    Oct 2006
    Location
    usa
    Posts
    104
    Downloads
    0
    Uploads
    0

    Default

    My ladder program is in the same directory as my .hal and .ini files and I double checked the spelling in my hal file. What I meant was when I load my ladder file into the Classicladder gui, the buttons and fields in the classicladder windows don't appear. I can still hit them and bring up whatever the button in that place would do but I cant see the checkmarks in the vars window. Is there another way to check if my classicladder program is running?

    http://chuckscnc.blogspot.com/


  17. #57
    Member
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    496
    Downloads
    0
    Uploads
    0

    Default

    ok i understand u are getting to the limit of computer power....can you put Hal meter on classicladder.0.out-00 and see if it changes to true. It will not change for long and that may be the problem...Sorry when I get home i can try a few more things.



  18. #58
    Registered
    Join Date
    Oct 2006
    Location
    usa
    Posts
    104
    Downloads
    0
    Uploads
    0

    Default

    I didn't see it change. I tried it with hal scope also with classicladder.0.in-00 and classicladder.0.out-00 as my signals so I could see better but no change in output when the button was pressed.

    http://chuckscnc.blogspot.com/


  19. #59
    Registered
    Join Date
    Feb 2007
    Location
    USA
    Posts
    514
    Downloads
    0
    Uploads
    0

    Default

    chazmtu, can you zip or tar up all of your config files and post it online somewhere like http://filebin.ca/ this way I can see exactly what you see... sometimes six eyes are better than two

    John



  20. #60
    Registered
    Join Date
    Oct 2006
    Location
    usa
    Posts
    104
    Downloads
    0
    Uploads
    0

    Default

    Here you go. my-mill.zip

    http://chuckscnc.blogspot.com/


Page 3 of 13 FirstFirst 123456 ... LastLast

Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Touch-off plate for CNC router?

Touch-off plate for CNC router?