603,365 active members*
3,786 visitors online*
Register for free
Login
Page 1 of 3 123
Results 1 to 20 of 46
  1. #1
    Join Date
    May 2010
    Posts
    126

    Resume Job After Computer/CNC Reboot

    Hi, newbie here with only a couple weeks under my belt on my DIY CNC router. I've figured out quite a bit about EMC2, and have it running my rig pretty well, but still have a lot of learning/refinement to go yet.

    I'm trying to determine if it is possible to resume a job after interrupting it and powering down/rebooting everything. For instance, to support a long photo carving session may need to span multiple evenings and I don't want to leave everything powered on while I'm not around it.

    I don't yet have home/limit switches, so I manually home X&Y to a convenient spot and Z to the bed. Then I touch off the X,Y,Z axes to the material. Is this the best way to prep for a job?

    I know there is a setting to save the home settings between sessions, does it also save the touch-off settings? If so, my thoughts are to pause or stop the job, note the line #, power off the router/not moving it, close EMC2, power down, leaving material in place, power up, start EMC2, load the .ngc file, scroll to the noted line, power up the router, and restart at or a line or so before that line. I also would like to do this for multi-file jobs, starting the next file on another day.

    Thanks,
    Roy

  2. #2
    Join Date
    Dec 2006
    Posts
    406
    There is no way I know of to save a touch off point and accurately get back to it without a home switch to reference to. For a machine with encoders you can save where your at in some cases but with steppers you must have a home. You can buy microswitches at radio shack the will work for limit/home. There only about five dollars each. Good luck.
    Judleroy

  3. #3
    Join Date
    Jan 2007
    Posts
    148
    your doing the resume , about the only way you can , it's not possible to resume to a line and continue , as gcode is a modal system , i.e it reads one line at a time and reacts , and some commands are in force until told to change which could be even at the begining of the program for example .

    short of leaving it all switched on , it's difficult to resume especialy with stepper systems as their is no positional feedback to emc , so you power down , someone unknown to you has a play by moving an axis or just knocks the handwheel a few clicks , emc and you would never know , for example .

    always make sure you have a repeatable x,y,z point to return to , or perhaps split the job up into smaller gcode programs , and cut one at a time , so at least you only need to wait for a shorter time

  4. #4
    Join Date
    Apr 2011
    Posts
    121
    I am barely starting out in CNC myself and carved my first practice image mostly last night and finished during my lunch break today.

    For that job, I paused EMC and then powered off the stepper controller but not the computer nor did I shut down EMC. I was able to re-power up the cnc controller and continue without difficulty. However, if someone were to bump the machine or anything it would not have been sucessful. If your controller jumps a step or two when it powers up, that could also be a problem.

    In my mind, I have the following scenario for resuming a job, but have not experimented with it.

    Once homed, jog over to where you wish to touch off. Record by hand the X,Y,Z coordinates prior to touch off. Then touch off.

    Start your job and run until you wish. When you stop for the session, write down the line number you are executing.

    In my carving CNC file, I notice that after the first initial lines, everything is very much identical so there are no settings througout the rest of the file except x y and z until the very end.

    One should be able to capture the first few lines of the G-code and store them as a separate initialization file.

    Upon reboot/resumption, one could re-home, then issue a command line of G-code to traverse over to the previous touch off location and then re-touch off.

    Then execute your initialization file which will set up feeds, speeds, and whatnot.

    Then, reload your original g-code. Scroll down to the last line previously executed and right click, and "start from here" (or whateverthe menu pick is).

    Of course, this presumes you have limit switchs and that the limit switches are pretty accurate and don't vary much, if any.

    A bit of risk, but it should work in thoery.

    Please feel free to comment and clobber me if I'm wrong. I'm new at this after all.

  5. #5
    Join Date
    May 2010
    Posts
    126
    @ judleroy and cncbasher,

    Thanks for those insights. I do have limit switches, simple mechanical ones, just not installed yet as I need to get some material to mount the switches to and then mount to my rails. I haven't figured out how to do a Z home switch due to bit length changing; I guess this is why many people use a metal plate and probe down to the plate???

    My CNC is in my home workshop, and I'm the only one in there, so don't have to worry about getting bumped.

    @ Michael In Cali,

    Interesting thoughts, sounds like you've thought this out a bit further than I have. Could even edit the file and figure out what is safe to delete and maybe edit in a couple XYZ moves to just above where you want to resume; vim would be great for this as you could go to the line you want to start deleting (knowing in advance how many lines you want to delete) and type, for instance, '100000 dd' to delete 100K lines starting with the current line.

    Sounds like I absolutely have to get homing switches added before I can even think of doing anything, though.

    Thanks for your thoughts and suggestions,
    Roy

  6. #6
    Join Date
    Apr 2011
    Posts
    121
    Roy,

    I home Z to top of travel, not the bottom. Top of Z isn't hard to do. I would presume in my scenario one would not want to change the bit either preserving the Z touch off.

  7. #7
    Join Date
    May 2010
    Posts
    126
    Quote Originally Posted by Michael In Cali View Post
    Roy,

    I home Z to top of travel, not the bottom. Top of Z isn't hard to do. I would presume in my scenario one would not want to change the bit either preserving the Z touch off.
    Okay, that makes sense. That was what I thought I would do prior to actually getting it running, but the settings didn't seem to jive for me. Just have to figure out how to set so a bad Z plunge doesn't run through my bed and into my frame with an extra long bit.

    Sigh, so much yet to learn.

    Thanks,
    Roy

  8. #8
    Join Date
    Dec 2006
    Posts
    406
    Home has nothing to do with tool setup or part setup. It is a absolute zero reference for each axis of your machine. Usually it is defined in g-code as G53 or absolute machine coordinates. You set you parts up with g54-g59. These are your machine offsets to define your part zero. These settings are saved and can be reused for the same part over and over as long as you make no changes to them. The z value must be reset any time you change a tool. If your part is setup in g54 for example and you do not change the tool between stopping and restarting your job no changes need to be made. The flow is like this. Home machine. Set coordinate system to g54. Jog to where you want to setup your part.(edge of part or center of part...everyone does it a little differently). Set your z.(top of part or bottom of part depending on how you write your code). After that g54 will always go back to this spot after you home and then pick the g54 offset. If you run a long job and want to stop in the middle you would run the part in g54 then stop the program when your ready to stop for the day. Record where you left of in your code. Open your code in a text editor and erase everything up to a few lines before you
    stopped. You will need to write a few lines of code to make restarting work properly. First add g54 to the top of your code. Then add lines to rapid over to where you left of in x
    and y at a safe z height above your part. Add lines to feed down to where you left off at your plunge rate. That should lead right into your code where you left off at. There is a bit of a learning curve to breaking up code like this successfully but you'll catch on. I hope this is clear enough and understandable. You can also break the code up in manageable pieces in your cam program from the get go if you know what your looking for. Remember if you change your tool z must be reset if not you can go right back where you left off. Good luck.
    Judleroy

  9. #9
    Join Date
    Dec 2006
    Posts
    406
    I didn't say so above but to be clear when in g54 when you jog over to your x and y reference point you need to zero x and y at that point and then jog down z to your reference and zero it also.
    Judleroy

  10. #10
    Join Date
    Apr 2011
    Posts
    121
    Home does have something to do with his issue. Between sessions after the machine is shutdown and the carriage may have moved, if you don't have a way to home, you cannot set where you want G54 to start from again. You need to have a good home reference and then some way to get back to the exact same coordinates to set G54. Or am I full of crap?

  11. #11
    Join Date
    May 2010
    Posts
    126
    @Judleroy,

    Thanks, this is what I was hoping to hear, and kind of along the lines of what I was thinking. I need to look at the .var file and see what is in it, sounds like it records the G54-G59 settings (touch off points). I obviously need to get homing working well to make this possible.

    I haven't seen a way to split up jobs for photo carving (PhotoVCarve), which is what led me to this question to begin with. If I wanted to do, say an 8x10 cut, it looks like it could easily take 12 or more hours on my router.

    Thanks,
    Roy

  12. #12
    Join Date
    Jul 2009
    Posts
    419
    Just a quick thought but has anyone tried putting emc on pause and then hibernating the machine?
    Sven
    http://www.puresven.com/?q=building-cnc-router

  13. #13
    Join Date
    May 2007
    Posts
    781
    I have a Taig controlled with EMC.
    I have not yet installed home or limit switches.

    What I do is this.
    X axis
    I made a pointer and bolted it in the slot on the front edge of the table.
    Scribed a line on the saddle.
    Homeing is done by jogging until the pointer lines up with the scribed line.
    Then jog in the X plus direction while watching the scribed coller on the screw. When the zero on the coller comes around and lines up with a line next to the coller I stop and punch the home X axis here button.

    Repeat for Y and Z.


    Then if you go into MDI before shutting down and do a
    G90G0G53X0Y0Z0
    It will be very close the next time you power things up.
    Stepper motors can jump a little on power down and up, I think up to 3 or 4 full steps.

  14. #14
    Join Date
    Dec 2006
    Posts
    406
    Michael you are correct he does need to home to a limit switch in order to use g54-g59. I was just explaining that he does not need to touch off again upon restart. He just needs to home the machine then use g54-59 offsets that are saved in order to go back to where he left off.
    Judleroy

  15. #15
    Join Date
    May 2010
    Posts
    126
    Quote Originally Posted by CaptainVee View Post
    Just a quick thought but has anyone tried putting emc on pause and then hibernating the machine?
    CaptainVee,

    Good idea, I'll try it this weekend.

    Thanks,
    Roy

  16. #16
    Join Date
    May 2010
    Posts
    126
    Quote Originally Posted by judleroy View Post
    Michael you are correct he does need to home to a limit switch in order to use g54-g59. I was just explaining that he does not need to touch off again upon restart. He just needs to home the machine then use g54-59 offsets that are saved in order to go back to where he left off.
    Judleroy
    I might get the home switches on this weekend. Going to attach the switches to some thin UHMW then to my 8020. Just have to figure out how and where to mount them nicely and then configure EMC2 to recognize them and do a homing procedure. I know the information is available, just haven't studied in depth yet.

    Thanks,
    Roy

  17. #17
    Join Date
    Jul 2009
    Posts
    419
    Mmm, I just seem to recal that my computer does not offer the hibernate option but that could be an individual machine thing...
    Sven
    http://www.puresven.com/?q=building-cnc-router

  18. #18
    Join Date
    May 2010
    Posts
    126
    I would think hibernate would be available on all, but suspend would be system dependent (my desktop system does not have suspend). I haven't been able to get out to check my other system, hopefully this afternoon.

    Roy

  19. #19
    Join Date
    Jul 2009
    Posts
    419
    Neither Hibernate not suspend have been available on any of the 3 computers I tried 10.04 on.
    Sven
    http://www.puresven.com/?q=building-cnc-router

  20. #20
    Join Date
    May 2010
    Posts
    126
    Quote Originally Posted by CaptainVee View Post
    Neither Hibernate not suspend have been available on any of the 3 computers I tried 10.04 on.
    CaptainVee,

    There's a 'hibernate' package available in the Ubuntu repositories, but not installed. However, the kernel isn't configured to allow hibernation, probably to keep people like me from powering off and resuming later.

    Roy

Page 1 of 3 123

Similar Threads

  1. Trumpf TC-500R reboot from eeprom
    By nks_3500 in forum DNC Problems and Solutions
    Replies: 0
    Last Post: 06-27-2011, 03:05 AM
  2. Start/Resume button
    By ccemc2 in forum LinuxCNC (formerly EMC2)
    Replies: 3
    Last Post: 11-22-2010, 05:22 AM
  3. Bridgeport lookalike power cut- how to reboot?
    By ImanCarrot in forum Bridgeport / Hardinge Mills
    Replies: 0
    Last Post: 04-23-2010, 11:26 AM
  4. Reboot
    By hobby81 in forum Bridgeport / Hardinge Mills
    Replies: 5
    Last Post: 04-20-2007, 04:27 PM
  5. TurboCNC reboot problem
    By damae in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 15
    Last Post: 08-06-2005, 02:57 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
  •