Touch-off plate for CNC router? - Page 11


Page 11 of 21 FirstFirst ... 891011121314 ... LastLast
Results 121 to 132 of 252

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
    Registered
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    495
    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 06: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
    Registered
    Join Date
    May 2010
    Location
    USA
    Posts
    89
    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
    Registered
    Join Date
    May 2010
    Location
    USA
    Posts
    89
    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
    Registered
    Join Date
    May 2010
    Location
    USA
    Posts
    89
    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
    Registered
    Join Date
    May 2010
    Location
    USA
    Posts
    89
    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



Page 11 of 21 FirstFirst ... 891011121314 ... 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?