Hello Guest it is October 21, 2019, 04:58:13 PM

Author Topic: Restart issue + jogging question  (Read 3761 times)

0 Members and 1 Guest are viewing this topic.

Offline lew

*
  •  74 74
    • View Profile
Restart issue + jogging question
« on: March 01, 2007, 07:54:11 PM »
Hi All:
I've got a problem with restarting a program.
I've included a similar program with the same type of subroutines below.
The problem is that I've had to stop the program in the middle of a drilling operation.
When I try to restart, the software starts at a place higher in the program and trys to do that operation.
Any clues?
Also, is there a way to make the jog keys be less touchy? When I want to jog to a particular location, I find myself going back and forth and tapping the arrow keys just the right amount. It's like the machine moves a lot quite quickly with just a small tap on the key. I don't really want to increment just one step for each key stroke but I would like it not to jump like it does.
Thanks
LEW

Here's the code example.

G90
G0 X0.0 Y1.279
M98 P1
G0 X-4.625 Y1.279
M98 P1
G0 X-9.125 Y1.594
M98 P1
G0 X-9.220 Y-1.818
M98 P1
G0 X-4.625 Y-2.096
M98 P1
G0 X0.0 Y-2.096
M98 P1
G0 X4.625 Y-2.096
M98 P1
G0 X9.220 Y-1.818
M98 P1
G0 X9.125 Y1.594
G65 P%DRIL1
G0 X4.625 Y1.279
M98 P1
M5
G0 Z0.0
G0 X0.0 Y4.0


;"CHANGE TO THE 1/4INCH DRILL      "
;"SET 1/4 OFF DECK                 "
M01


G0 X-1.062 Y1.969
M98 P2
G0 X-7.500 Y2.282
M98 P2 
G0 X-9.25 Y0.782
M98 P2
G0 X-8.625 Y-2.406
M98 P2
G0 X8.625 Y-2.406
M98 P2
G0 X9.25 Y0.782
M98 P2
G0 X7.50 Y2.282
M98 P2
G0 X1.062 Y1.969
M98 P2
M5
G0 Z0.0
G0 X0.0 Y4.0

;"INSTALL THE C'DRILL              "
;"1/2 ABOVE DECK                   "
M01

G0 X-6.937 Y2.907
M98 P3
G0 X-2.312
M98 P3
G0 X6.937
M98 P3

;"INSTALL THE 19/64 DRILL          "
;"1/2 INCH ABOVE DECK              "
M01



G0 X6.937
M98 P4
G0 X-2.312
M98 P4
G0 X-6.937 Y2.907
M98 P4



;"INSTALL THE 5/16 REAMER          "
;"1/2 INCH ABOVE DECK              "
M01

G0 X-6.937 Y2.907
M98 P5
G0 X-2.312
M98 P5
G0 X6.937
M98 P5
G0 X0.0 Y4.0


;"CHANGE TO THE 33/64 INCH DRILL     "
;"SET 1/2 ABOVE DECK               "
M01

G0 X0.0 Y1.279
M98 P6
G0 X-4.625 Y1.279
M98 P6
G0 X-9.125 Y1.594
M98 P6
G0 X-9.22 Y-1.818
M98 P7
G0 X-4.625 Y-2.096
M98 P6
G0 X0.0 Y-2.096
M98 P6
G0 X4.625 Y-2.096
M98 P6
G0 X9.22 Y-1.818
M98 P7
G0 X9.125 Y1.594
M98 P6
G0 X4.625 Y1.279
M98 P6
M5
G0 Z0.0
G0 X0.0 Y4.0
M2


O1    ;CENTERDRILL
G90
M4
M07
G0 Z-0.45
G01 Z-#11 F#1
M09
G0 Z-0.4
M99

O2 ;     1/4DRILL
G90
M4
M07
G0 Z-0.2
G01 Z-1.0 F8.0
M09
G0 Z-0.2
M99

O3  ;CENTERDRIL THE DOWELS
M04
M07
G0 Z-0.45
G01 Z-0.850 F8.0
M5
M09
G0 Z0.0
M99

O4  ;DRILL THE DOWELS
M04
M07
G0 Z-0.45
G01 Z-1.1 F8.0
M5
M09
G0 Z0.0
M99

O5    ;REAM THE DOWELS
M04
M07
G0 Z-0.45
G01 Z-1.0 F8.0
M5
M09
G0 Z0.0
M99

O6
G90
M4
M7
G83G99Z-4.2R-.45P0Q.3F4.0G90G90
M9
G0 Z-0.40
M99


O7
G90
M4
M7
G83G98Z-3.0R-.4P0Q.3F4.0G90
M9
G0 Z-0.40
M99

Offline Chaoticone

*
  • *
  •  5,607 5,607
  • Precision Chaos
    • View Profile
Re: Restart issue + jogging question
« Reply #1 on: March 01, 2007, 08:32:51 PM »
Lew,
    To make the jog keys less touchy, lower the number where the cursor is at in this screen shot. Put your mouse over the box and click, enter number and press enter. This sets your slow jog rate. To rapid jog, hold down the shift key and then jog. You pull this screen up by hitting the tab key. What version of Mach are you running? Can you post the code that it is messing up on and notes on the lines where you stop and where it jumps to. Also, how do you pause the program? Feed hold or stop?

Brett


;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!
Re: Restart issue + jogging question
« Reply #2 on: March 01, 2007, 10:36:21 PM »
To pause the program you need to FeedHold not stop.
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com

Offline lew

*
  •  74 74
    • View Profile
Re: Restart issue + jogging question
« Reply #3 on: March 01, 2007, 11:12:27 PM »
Hey Brett:
Thanks for the reply.
I am familiar with the jog settings and I've got the slow jog set to 10%. However, it still seems "touchy". I've really got to tap the key quickly to get a small movement and even then it jumps about .003-.004. Takes a number of tries to get the machine where I want it. Makes it a bit tough to find an edge with a disc type edge finder.
Just thinking about this, I have the debounce count set at 100. Wonder if that may make a difference? I'm not at the machine right now but I'll have to give it a try reducing the value to something less than what I have now.
Lew

Offline lew

*
  •  74 74
    • View Profile
Re: Restart issue + jogging question
« Reply #4 on: March 01, 2007, 11:15:07 PM »
Thanks to you, too Brian.
I try to stop the machine with the space bar and let the machine stop normally as in a pause. Occasionally, like when I try to restart and the thing starts somewhere other than expected I hit the "esc" key to slam it to a stop. When that happens I usually need to go back and reset my machine zero's cause it really stops fast and loses position.
LEW

Hood

*
Re: Restart issue + jogging question
« Reply #5 on: March 02, 2007, 02:02:29 AM »
In the above pic you will see Jog mode button, press this until step is showing, you can then select the step size from the cycle Jog step button. When you have that set it will go the distance you have set in the DRO for each press of the keyboard jog.
Hood

Offline lew

*
  •  74 74
    • View Profile
Re: Restart issue + jogging question
« Reply #6 on: March 02, 2007, 08:28:28 AM »
Well, that explains a lot. Now I see what the table is for in the config. setup menu. I was wondering what that was used for but never asked. Truth be told, I've been using a screen that I designed for myself. I've tried to make the screen so that I didn't have to use the mouse (at least keep it to a minimum), just keystrokes where possible. Now, I've added the Jog mode and Step increment buttons. That'll work just fine. Thanks very much Hood.

Offline lew

*
  •  74 74
    • View Profile
Re: Restart issue + jogging question
« Reply #7 on: March 02, 2007, 08:58:00 AM »
Here I come again.
Hi All:
I've pasted the program into this post with a couple notes on where I'm trying to restart and where it actually goes to for the restart.
I've tried it a number of times then I ran out of time and posted the question. Each time it restarts at the center drill subroutine "O1" and not where I'd like it to restart (sub O6).
As usual, any help would be appreciated. Thank goodness for this forum.

G90
G0 X0.0 Y1.279
M98 P1
G0 X-4.625 Y1.279
M98 P1
G0 X-9.125 Y1.594
M98 P1
G0 X-9.220 Y-1.818
M98 P1
G0 X-4.625 Y-2.096
M98 P1
G0 X0.0 Y-2.096
M98 P1
G0 X4.625 Y-2.096
M98 P1
G0 X9.220 Y-1.818
M98 P1
G0 X9.125 Y1.594
G65 P%DRIL1
G0 X4.625 Y1.279
M98 P1
M5
G0 Z0.0
G0 X0.0 Y4.0


;"CHANGE TO THE 1/4INCH DRILL "
;"SET 1/4 OFF DECK "
M01


G0 X-1.062 Y1.969
M98 P2
G0 X-7.500 Y2.282
M98 P2
G0 X-9.25 Y0.782
M98 P2
G0 X-8.625 Y-2.406
M98 P2
G0 X8.625 Y-2.406
M98 P2
G0 X9.25 Y0.782
M98 P2
G0 X7.50 Y2.282
M98 P2
G0 X1.062 Y1.969
M98 P2
M5
G0 Z0.0
G0 X0.0 Y4.0

;"INSTALL THE C'DRILL "
;"1/2 ABOVE DECK "
M01

G0 X-6.937 Y2.907
M98 P3
G0 X-2.312
M98 P3
G0 X6.937
M98 P3

;"INSTALL THE 19/64 DRILL "
;"1/2 INCH ABOVE DECK "
M01



G0 X6.937
M98 P4
G0 X-2.312
M98 P4
G0 X-6.937 Y2.907
M98 P4



;"INSTALL THE 5/16 REAMER "
;"1/2 INCH ABOVE DECK "
M01

G0 X-6.937 Y2.907
M98 P5
G0 X-2.312
M98 P5
G0 X6.937
M98 P5
G0 X0.0 Y4.0


;"CHANGE TO THE 33/64 INCH DRILL "
;"SET 1/2 ABOVE DECK "
M01

G0 X0.0 Y1.279
M98 P6
G0 X-4.625 Y1.279
M98 P6
G0 X-9.125 Y1.594
M98 P6
G0 X-9.22 Y-1.818
M98 P7
G0 X-4.625 Y-2.096                        ;Tried to restart on this line
M98 P6                                         ;Expected it jump to subroutine O6
G0 X0.0 Y-2.096                            ;But instead it jumps to subroutine O1
M98 P6
G0 X4.625 Y-2.096
M98 P6
G0 X9.22 Y-1.818
M98 P7
G0 X9.125 Y1.594
M98 P6
G0 X4.625 Y1.279
M98 P6
M5
G0 Z0.0
G0 X0.0 Y4.0
M2


O1 ;CENTERDRILL  ;When restarted, program jumps here and tries to run from here.
G90
M4
M07
G0 Z-0.45
G01 Z-#11 F#1
M09
G0 Z-0.4
M99

O2 ; 1/4DRILL
G90
M4
M07
G0 Z-0.2
G01 Z-1.0 F8.0
M09
G0 Z-0.2
M99

O3 ;CENTERDRIL THE DOWELS
M04
M07
G0 Z-0.45
G01 Z-0.850 F8.0
M5
M09
G0 Z0.0
M99

O4 ;DRILL THE DOWELS
M04
M07
G0 Z-0.45
G01 Z-1.1 F8.0
M5
M09
G0 Z0.0
M99

O5 ;REAM THE DOWELS
M04
M07
G0 Z-0.45
G01 Z-1.0 F8.0
M5
M09
G0 Z0.0
M99

O6                                  ;Should goto the coords' at restart and jump here.
G90
M4
M7
G83G99Z-4.2R-.45P0Q.3F4.0G90G90
M9
G0 Z-0.40
M99


O7
G90
M4
M7
G83G98Z-3.0R-.4P0Q.3F4.0G90
M9
G0 Z-0.40
M99