Touch-off plate for CNC router? - Page 7


Page 7 of 13 FirstFirst ... 45678910 ... LastLast
Results 121 to 140 of 254

Thread: Touch-off plate for CNC router?

  1. #121
    Registered
    Join Date
    Dec 2007
    Location
    USA
    Posts
    52
    Downloads
    0
    Uploads
    0

    Default

    Ah, this was mentioned before by Chuck. I figured since he got it fixed his config files would be correct. I just copied his files. Now since I haven't figured out the ladder program the challenge will be figuring out how to connect the pins.
    Thanks for the help.



  2. #122
    Registered
    Join Date
    Dec 2007
    Location
    USA
    Posts
    52
    Downloads
    0
    Uploads
    0

    Default

    I managed to muddle my way through the editor and have successfully connected the pins C and E. The program runs perfectly on my test unit and I will modify the computer that does the actual CNC control this afternoon. Thanks so much for the help Chris. Thanks to Chuck too for all the work he put into getting it figured out in the first place. Once I get my laser cross hair I will take a video and link to it here. Also, I will create a step by step instruction sheet for others so they can do this even if they have no experience with programming (like me).



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

    Default

    Hey no problem glad you stuck with it.
    I should update the ladder example in the wiki.

    the latest thing about this is i am trying to make it possible not to have to use g92 offsets
    G92 offsets kinda suck as it changes ALL the coordinate system offsets.
    It can be confusing some times with all the different types of offsets.

    Anyways another command G10 L20 P1 would work better - it will change the offsets on one coordinate system only.
    The problem with it is you have to tell it what coordinate system you are currently using, (thats what the P is for 1= g54 coordinate system) which in our example would have to be 'hard coded" to one system. If in the gcode you changed the coordinate system from the one you hard coded in the INI file then touchoff won't offset the right system.

    If you only ever use one offset system (probably G54) I would switch to the G10 L20 P1 command.

    I think eventually in the development version will will have a P number that represents 'current coordinate system'

    Chris M

    Last edited by chester88; 12-17-2010 at 05:27 PM. Reason: typos


  4. #124
    Registered
    Join Date
    Dec 2007
    Location
    USA
    Posts
    52
    Downloads
    0
    Uploads
    0

    Default

    I'll go ahead and change the offsets as you suggest. I never use the other offsets at least at this time.
    I edited the CNC table machine today and the program ran perfectly. Sure makes it easier to hit 0 with the plasma torch. Makes your Gcode cut height much more accurate.
    Once I get the cross hairs I will get a video out on how it works.
    Thanks again Chris,
    Dan



  5. #125
    Registered
    Join Date
    Dec 2007
    Location
    USA
    Posts
    52
    Downloads
    0
    Uploads
    0

    Default

    I've created a document on the steps needed to get the buttons setup and working including options for the older versions (EMC 2.2.x and older) and the newer versions. The document is in the configfiles.zip file.
    Chris, if you have time could you check this over to insure I haven't missed anything?
    Hope this helps anyone else attempting to do this.
    Dan

    Attached Files Attached Files


  6. #126
    Member
    Join Date
    May 2010
    Location
    USA
    Posts
    93
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by spokes View Post
    I've created a document on the steps needed to get the buttons setup and working including options for the older versions (EMC 2.2.x and older) and the newer versions. The document is in the configfiles.zip file.
    Chris, if you have time could you check this over to insure I haven't missed anything?
    Hope this helps anyone else attempting to do this.
    Dan
    First, big thank you Chris and Chuck for their work on this.

    Second, thank you Dan for the how-to doc included in your zip file. This is exactly what I was looking for, being a newbie and all...

    Now it's my turn to get this auto touch probe thingy to work...



  7. #127
    Registered
    Join Date
    Dec 2007
    Location
    USA
    Posts
    52
    Downloads
    0
    Uploads
    0

    Default

    Good luck, it's been working well for me.
    Dan



  8. #128
    Member
    Join Date
    May 2010
    Location
    USA
    Posts
    93
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by spokes View Post
    Good luck, it's been working well for me.
    Dan
    Ok, finally got around to adding this to my setup, and was presented with an error that I'm not understanding. Here's the debug info from the EMC2 errors window that pops up. Is this enough info to figure out what I'm doing wrong?

    Debug file information:
    insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/emc2/classicladder_rt.ko': -1 File exists
    custom.hal:8: exit value: 1
    custom.hal:8: insmod failed, returned -1
    See the output of 'dmesg' for more information.
    28556
    PID TTY STAT TIME COMMAND
    Stopping realtime threads
    Unloading hal components



  9. #129
    Registered
    Join Date
    Dec 2007
    Location
    USA
    Posts
    52
    Downloads
    0
    Uploads
    0

    Default

    Please post the entire error text, I can't tell what's going on from the info listed.



  10. #130
    Member
    Join Date
    May 2010
    Location
    USA
    Posts
    93
    Downloads
    0
    Uploads
    0

    Default

    Print file information:
    RUN_IN_PLACE=no
    EMC2_DIR=
    EMC2_BIN_DIR=/usr/bin
    EMC2_TCL_DIR=/usr/share/emc/tcl
    EMC2_SCRIPT_DIR=
    EMC2_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/emc2
    EMC2_CONFIG_DIR=
    EMC2_LANG_DIR=/usr/share/emc/tcl/msgs
    INIVAR=inivar
    HALCMD=halcmd
    EMC2_EMCSH=/usr/bin/wish8.5
    EMC2 - 2.4.6
    Machine configuration directory is '/home/cnc/emc2/configs/my-mill'
    Machine configuration file is 'my-mill.ini'
    INIFILE=/home/cnc/emc2/configs/my-mill/my-mill.ini
    PARAMETER_FILE=emc.var
    EMCMOT=motmod
    EMCIO=io
    TASK=milltask
    HALUI=halui
    DISPLAY=axis
    NML_FILE=
    Starting EMC2...
    Starting EMC2 server program: emcsvr
    Loading Real Time OS, RTAPI, and HAL_LIB modules
    Starting EMC2 IO program: io
    Starting HAL User Interface program: halui
    INFO CLASSICLADDER- No ladder GUI requested-Realtime runs till HAL closes.
    Shutting down and cleaning up EMC2...
    Killing task emcsvr, PID=28556
    Removing HAL_LIB, RTAPI, and Real Time OS modules
    Removing NML shared memory segments
    Cleanup done

    Debug file information:
    insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/emc2/classicladder_rt.ko': -1 File exists
    custom.hal:8: exit value: 1
    custom.hal:8: insmod failed, returned -1
    See the output of 'dmesg' for more information.
    28556
    PID TTY STAT TIME COMMAND
    Stopping realtime threads
    Unloading hal components

    Kernel message information:
    [268875.123578] I-pipe: Domain RTAI registered.
    [268875.123592] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
    [268875.123597] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
    [268875.123609] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
    [268875.123613] PIPELINE layers:
    [268875.123618] fb904e20 9ac15d93 RTAI 200
    [268875.123623] c085cb20 0 Linux 100
    [268875.167574] RTAI[malloc]: global heap size = 2097152 bytes, .
    [268875.167815] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: , kstacks pool size = 524288 bytes.
    [268875.167825] RTAI[sched]: hard timer type/freq = APIC/6250069(Hz); default timing: periodic; linear timed lists.
    [268875.167831] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1999835000 hz.
    [268875.167835] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
    [268875.167997] RTAI[usi]: enabled.
    [268875.322714] RTAI[math]: loaded.
    [268875.465782] config string '0x378 out '
    [268875.487755] creating ladder-state
    [268876.378557] RTAI[math]: unloaded.
    [268876.490988] SCHED releases registered named ALIEN RTGLBH
    [268876.507416] RTAI[malloc]: unloaded.
    [268876.604032] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
    [268876.612286] I-pipe: Domain RTAI unregistered.
    [268876.612303] RTAI[hal]: unmounted.



  11. #131
    Registered
    Join Date
    Dec 2007
    Location
    USA
    Posts
    52
    Downloads
    0
    Uploads
    0

    Default

    Did you load the following lines in your custom.hal file?

    #load classic ladder
    loadrt classicladder_rt
    addf classicladder.0.refresh servo-thread
    loadusr -w classicladder --nogui Touch_OFF_Button.clp



  12. #132
    Member
    Join Date
    May 2010
    Location
    USA
    Posts
    93
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by spokes View Post
    Did you load the following lines in your custom.hal file?

    #load classic ladder
    loadrt classicladder_rt
    addf classicladder.0.refresh servo-thread
    loadusr -w classicladder --nogui Touch_OFF_Button.clp
    Yep. Went through your how-to doc step by step. My 1st thought was that ladder was not installed, but isn't that installed as part of the package?

    Btw, I installed emc2 on ubuntu 10.04 via the method:
    http://linuxcnc.org/lucid/emc2-install.sh

    as found here: EMC Documentation Wiki: Installing EMC2



  13. #133
    Registered
    Join Date
    Dec 2007
    Location
    USA
    Posts
    52
    Downloads
    0
    Uploads
    0

    Default

    I just used the 10.04 install that had EMC2 bundled with it.
    I'm probably going to have to let Chris (chester88) work with you on this. He has been my savior when I had problems. Chris usually responds in a timely manner.
    Try taking the lines out of your custom.hal and see if the error goes away. It sounds like it is trying to load classicladder twice. If you still get the error then you can look somewhere else. (put the lines back in in that case)



  14. #134
    Member
    Join Date
    May 2010
    Location
    USA
    Posts
    93
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by spokes View Post
    Try taking the lines out of your custom.hal and see if the error goes away. It sounds like it is trying to load classicladder twice. If you still get the error then you can look somewhere else. (put the lines back in in that case)
    Yep, commented them three lines out and emc2 came up with no problem. Even had the nice buttons on the right side of the screen. The zero x-y button worked flawlessly, but the z didn't work. I'll work on it a little tonight.

    I used that manual install method because the iso wasn't available yet. Maybe I'll download the new iso and re-install it that way.

    Thanks Dan.



  15. #135
    Registered
    Join Date
    Dec 2007
    Location
    USA
    Posts
    52
    Downloads
    0
    Uploads
    0

    Default

    Keep in mind you have to use the Z button in MDI mode.
    My guess is you have a different version of Classicladder due to the upgrade process. I think you're onto something with the idea of doing the complete 10.04 with EMC preconfigured. I seem to recall there is a different syntax for an older version of classic ladder. Look back in this thread to see if you can find it. That might do the trick without having to reload Ubuntu.



  16. #136
    Member
    Join Date
    May 2010
    Location
    USA
    Posts
    93
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by spokes View Post
    Keep in mind you have to use the Z button in MDI mode.
    A little egg on my face. I even read that a few times, and still forgot to switch to MDI mode.... DUH!!!!

    Well, it works great once you put it in the right mode....

    As for the classicladder thingy, I commented out the first 2 of the three lines added to custom.hal file and it loaded fine.

    Thanks for putting up with me.



  17. #137
    Registered
    Join Date
    Dec 2007
    Location
    USA
    Posts
    52
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by ecurb5 View Post
    A little egg on my face. I even read that a few times, and still forgot to switch to MDI mode.... DUH!!!!

    Well, it works great once you put it in the right mode....

    As for the classicladder thingy, I commented out the first 2 of the three lines added to custom.hal file and it loaded fine.

    Thanks for putting up with me.
    You're welcome, I got plenty of help getting my setup working and I'm just trying to pay it forward.



  18. #138
    Member
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    496
    Downloads
    0
    Uploads
    0

    Default

    looks like you guys figure it all out !
    Nice job.

    The old way of adding Classicladder was in the custom HAL file.
    now stepconf can add it for you.
    One must pick one of the two ways.

    Chris Morley



  19. #139
    Member
    Join Date
    May 2006
    Location
    Australia
    Posts
    2420
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by chester88 View Post
    looks like you guys figure it all out !
    Nice job.

    The old way of adding Classicladder was in the custom HAL file.
    now stepconf can add it for you.
    One must pick one of the two ways.

    Chris Morley
    Cool, I haven't used my router for a while as the PC blew up (stupid free PC's) , sounds like I need to upgrade and check out the latest Stepconf !

    Russell.



  20. #140
    Member Connor's Avatar
    Join Date
    Aug 2010
    Location
    US
    Posts
    630
    Downloads
    0
    Uploads
    0

    Default

    I got this working.. But, I have a question.. How do you adjust the travel amount for Z ? My machine homes Z at the top and has 4.5" of travel..

    Thanks, Connor

    Inner Vision Development Corp. - http://www.ivdc.com
    Website Design & Development. Shopping Carts, SEO and more!


Page 7 of 13 FirstFirst ... 45678910 ... 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?