Axis went no where after the end of cycle
- Dinuka_Shehan
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 333
- Thank you received: 26
15 Apr 2020 03:08 #164009
by Dinuka_Shehan
; 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
Replied by Dinuka_Shehan on topic Axis went no where after the end of cycle
(info: Facing)without the gcode program it's hard to say.
; 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.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
15 Apr 2020 03:16 #164010
by cmorley
Replied by cmorley on topic Axis went no where after the end of cycle
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
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.
- Dinuka_Shehan
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 333
- Thank you received: 26
15 Apr 2020 03:18 - 15 Apr 2020 03:19 #164011
by Dinuka_Shehan
Replied by Dinuka_Shehan on topic Axis went no where after the end of cycle
Last edit: 15 Apr 2020 03:19 by Dinuka_Shehan.
Please Log in or Create an account to join the conversation.
- Dinuka_Shehan
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 333
- Thank you received: 26
15 Apr 2020 03:22 #164012
by Dinuka_Shehan
Replied by Dinuka_Shehan on topic Axis went no where after the end of cycle
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.
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.
- cmorley
- Offline
- Moderator
Less
More
- Posts: 7780
- Thank you received: 2075
15 Apr 2020 03:31 #164013
by cmorley
Replied by cmorley on topic Axis went no where after the end of cycle
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.
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.
- bbsr_5a
- Offline
- Platinum Member
Less
More
- Posts: 544
- Thank you received: 105
15 Apr 2020 07:16 #164025
by bbsr_5a
Replied by bbsr_5a on topic Axis went no where after the end of cycle
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
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.
- Dinuka_Shehan
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 333
- Thank you received: 26
16 Apr 2020 17:13 #164166
by Dinuka_Shehan
Replied by Dinuka_Shehan on topic Axis went no where after the end of cycle
Are you pl7i92;german plasma guy???
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
Less
More
- Posts: 19516
- Thank you received: 6545
16 Apr 2020 17:44 #164174
by tommylight
Replied by tommylight on topic Axis went no where after the end of cycle
I think he is, but he has a new account.Are you pl7i92;german plasma guy???
Please Log in or Create an account to join the conversation.
Time to create page: 0.064 seconds