Axis went no where after the end of cycle

More
15 Apr 2020 03:08 #164009 by Dinuka_Shehan

without the gcode program it's hard to say.

(info: Facing)
; TOUCH OFF Z zero FIRST
; variable 5410 is the current tool tip diameter so make sure
; your tool table is set correctly...

o<face>sub
#<stock-diameter> = #1 (=1.000 Stock Diameter)
#<cut-depth> = #2 (=0.010 Cut Depth)
#<start-z> = #3 (=0.000 Start Z)
#<end-z> = #4 (=-0.020 End Z)
#<sfm> = #5 (=80 SFM)
#<tool> = #6 (=1 Tool)
#<max-rpm> = #7 (=2000 Max RPM)
#<feed-rate> = #8 (=2 Feed IPM)
#<coolant>= #9 (=8 Coolant 8 On 9 Off)
#<setZzero>= #10 (=0 Set Z0 0=No 1=Yes)

; SETUP TOOL
G18
T#<tool> M6
G43
G7 G96 D#<max-rpm> S#<sfm>
F#<feed-rate>

M3 M#<coolant>

#<inital-z> = [#<start-z>+0.050]
G0 X[#<stock-diameter>+0.050] Z[#<inital-z>]

#<current-z> = #<start-z>

o100 while[#<current-z> gt #<end-z>]
o101 if[#<current-z>-#<cut-depth> gt #<end-z>]
#<current-z> = [#<current-z>-#<cut-depth>]
o101 else
#<current-z> = #<end-z>
o101 endif
Z[#<current-z>]
G1 X-[#5410*3]
Z[#<current-z>+#5410+#5410]
G0 X[#<stock-diameter>+0.05]
o100 endwhile

M5 M9

; set Z zero to end of stock
o110 if [#<setZzero> EQ 1]
G0 Z[#<current-z>]
G10 L20 P1 Z0.000
G4P1.0
(MSG,Z Zero Set To Face)
o110 endif
G53 G0 X0 Z0
G97
o<face>endsub

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

More
15 Apr 2020 03:16 #164010 by cmorley
well the program resets Z on G54 system at the end. which is probably fine and then
moves to G53 X0 Z0

Where is X0 Z0 in machine coordinates?
Machine coordinates are defined by entries in the INI and can really be anything.
It's strange to me that Big John chose to use G53 as It's not dependable from machine to machine where it is.

So my educated guess is that g53 x0 y0 is not where you hoped it is.

Chris
The following user(s) said Thank You: Dinuka_Shehan

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

More
15 Apr 2020 03:18 - 15 Apr 2020 03:19 #164011 by Dinuka_Shehan
Last edit: 15 Apr 2020 03:19 by Dinuka_Shehan.

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

More
15 Apr 2020 03:22 #164012 by Dinuka_Shehan
G53 zero and machine zero should be same?
What is the machine zero in ini file.i want change it.
Second one is how cancel current G54 position.

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

More
15 Apr 2020 03:31 #164013 by cmorley
G53 zero is the same as machine zero yes.
G53 is the Gcode that tells linuxcnc to use machine coordinates.

Machine zero is defined by homing and soft limits.
This isn't a one line change.

Personally I would change the subroutine to move somewhere relative to G54.

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

More
15 Apr 2020 07:16 #164025 by bbsr_5a
the subroutine i sent equip t with safe height moves
first move shout always be to safe height on a Tool measure start it may be below part

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

More
16 Apr 2020 17:13 #164166 by Dinuka_Shehan
Are you pl7i92;german plasma guy???

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

More
16 Apr 2020 17:44 #164174 by tommylight

Are you pl7i92;german plasma guy???

I think he is, but he has a new account.

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

Time to create page: 0.402 seconds
Powered by Kunena Forum