![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| CamSoft Products Discuss Camsoft PC based CNC controller products here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
The issue I have is the machine runs fine till they they stop the drilling in progress. I need to be sure all macros are terminated. I am not seeing this with the SUSPEND MACROS command. It seems to me the RESUME restarts macros that I dont want running any longer. The reply I got said to use ESTOP command. I'm just not sure how to use it and the Company that the drill was delivered to has told me they can't find the manuals now. If anyone can elaberate on how a macro should be handled say when a drill brakes and you want to stop motion and terminate the macro. This is the current code. [[ABORT]] 'abort part program 'SAVE NUM HOLES LEFT AND ANGLE \600=\300:\602=\318 ' STOP [SPINDLEOFF] [RESETMAIN] SUSPEND MACROS After this you must press a button that runs the RESUME command. Should I just replace the SUSPEND MACROS with ESTOP. And is there a command that has to be run to clear the estop state. Thanks Drew |
|
#2
| ||||
| ||||
| Not sure I have a complete understanding of exactly what you need to do. Placing the command ESTOP will certainly terminate all the macros. Kinda like swatting a fly with a sledge hammer. If you're running a Gcode program, a CYCLESTART will halt the program, an ESCKEY would give the operator options. There are many other possiblities. CYCLESTART Invokes the cycle start icon without the need to click on the cycle start icon. This command is used to start a continuous cycle or pause a cycle. EXAMPLE: CYCLESTART ESCKEY This command emulates the Escape key during coordinated motion. You will have the same three choices as pressing the physical Escape key: to continue on the path, backup on the path or cancel the move. If you choose to backup on the path, you must press Cycle Start or Single Step to resume your program. EXAMPLE: ESCKEY ESTOP Halt axis and spindle motion immediately without decelerating to a stop. See the STOP command for programming a decelerated stop. EXAMPLE: ESTOP |
|
#3
| ||||
| ||||
| I don't like to use ESTOP unless there is a true emergency. Just a personal preference, as many machines take quite a bit of work to recover from the EStop, in the sense that there can be a lot of things to do to put things back into the previous state. I use a dedicated button for a program reset, via an mcode. It emulates using the Escape key by the command ESCKEY 3 which would be the third option of the Escape key. Also I call an end of program instruction: EOP as this seems to really kill off anything that was running in the form of a macro. Actually, my "abort program" mcode is 38 lines long, so I do a bunch of other stuff to reset variables, reset the various machine components to their 'rest' condition ready for a fresh run at the program.
__________________ First you get good, then you get fast. Then grouchiness sets in. (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Macros.How to work with it? | Navigator | G-Code Programing | 33 | 02-25-2007 03:46 PM |
| G code macros | gazza06 | G-Code Programing | 5 | 07-24-2006 04:45 PM |
| Macros | cncfreak | General CAM Discussion | 24 | 05-06-2005 05:04 PM |
| macros | toyoda | General CAM Discussion | 0 | 05-30-2004 04:56 AM |
| Macros | MachineSMM | General CAM Discussion | 2 | 06-20-2003 12:41 PM |