G10 L20 P1 versus 'touch off' box on interface

More
27 May 2019 11:05 #135064 by AlbertHall
When I use the 'touch off' box on the interface the image of cuts moves to follow the selection.
When I use 'G10 L20 P1 X[35.2700 + #5420] Y[22.2600 + #5421] (Touch off X, Y)' this doesn't happen.

Is there a way of doing the same kind of touch off as the interface does from within a running program?

Please Log in or Create an account to join the conversation.

More
27 May 2019 18:22 #135078 by Todd Zuercher
Yes, I believe if you are using the touch off button for X in the G54 coordinates and putting 0 as the touch off input. Then the equivalent G10 command would be G10 L20 P1 X0.

Please Log in or Create an account to join the conversation.

More
28 May 2019 03:31 #135113 by cmorley
No AFAIK there is no way to reload a screen inside the Gcode.
This would be a good feature to add.

Chris M
The following user(s) said Thank You: AlbertHall

Please Log in or Create an account to join the conversation.

More
28 May 2019 09:40 #135143 by AlbertHall
OK, thanks.
Normally I jog the tool to the bottom left of the workpiece and touch off X and Y to 0.

What I would like to be able to do, to make best use of remaining parts of a workpiece, is to be able to mark any corner, say top right corner, and have the code cut the part accordingly.

My brilliant(?) plan was to jog the tool to the desired corner, touch off to zero, then jog into where the part will be (so moving south west from the top right corner). Now when the code is run, get the current position and the signs of the X and Y positions tells you which corner was selected.

Can anybody tell me an even more brilliant way of doing this?

Please Log in or Create an account to join the conversation.

More
28 May 2019 11:32 #135158 by Todd Zuercher
Maybe using G92 to temporarily shift position.

Please Log in or Create an account to join the conversation.

More
28 May 2019 13:58 #135165 by AlbertHall
I have found a way of doing this but it isn't as easy to use as my attempted automatic method.

I have added, to the header of the file, the X,Y coordinates of each corner of the board so jog to your selected corner then touch off to the appropriate values given for that corner.

(******************************************)
(Board size: 40.6842mm x 23.4042mm)
(Click 'Home All')
(Fit a 0.8000mm Drill)
(Connect the probe wire to the PCB)
(Jog to any corner of the board)
(Touch off X & Y as below, G54)
(Bottom Left (-4.7071,-0.4371))
(Top Left (-4.7071,22.9671))
(Top Right (35.9771,22.9671))
(Bottom Right (35.9771,-0.4371))
(TEST THE PROBE)
(******************************************)

Please Log in or Create an account to join the conversation.

More
28 May 2019 14:04 #135168 by pl7i92
you may use if no ATC is present a simple
way direct on part
like shown here

Please Log in or Create an account to join the conversation.

More
29 May 2019 09:25 #135257 by AlbertHall
Yes, I use this method the zero the Z axis but it doesn't help with the X and Y axes.

Please Log in or Create an account to join the conversation.

More
29 May 2019 11:18 #135261 by pl7i92
the xy is user related
we in school use TOP left Front
so Touch X+ Y+ Z-
this routine is on a Button to do so
Start is Tooldiameter top Inside part
o<autonullen> sub
 o155 if [#5400 GT 0] (is there a tool loaded)
   o156 if [#5410 GT 0] (tool diameter greater Zero)
	(DEBUG, ToolDiameter = #5410)
        #<_toolradius> = [#5410 / 2]
        G91   ( relative mode for probing)
        G38.2 z-20 F80     ( trip switch on the way X Plus)
	(msg, Set G54 Z null  )
	G10 L20 P1 Z0 
	G1 z5 F250
        G1 X-10 ( X Freifahren)
      G90
      G1 Z-5 F250 ( Absolut Z runter )
        G91   ( relative mode for probing)
        G38.2 x20 F80     ( trip switch on the way X Plus)
	G90                 ( absolute mode)
	(msg, Set G54 X null REAL acording to tool diameter )
	G10 L20 P1 x-#<_toolradius> 
	G1 X-#5410 F250
        g1 z5
        g1 x [1.5* #5410]
        g91
        g1 y-10 f250
        g90 
        g1 z-5 f250
        g91
        G38.2 y20 F80     ( trip switch on the way Y Plus)
	G90                 ( absolute mode)
	(msg, Set G54 y null REAL acording to tool diameter )
	G10 L20 P1 y-#<_toolradius> 
	G1 y-#5410 F250
        g1 z5 f800
        m100
	(msg, Fertig gesetzt wurde G54 XYZ mit Werkzeug #5400)
   o156 endif 
 o155 endif 
o<autonullen> endsub
M2

Please Log in or Create an account to join the conversation.

Time to create page: 0.101 seconds
Powered by Kunena Forum