Why in home XY different G1 is not execute in my code?
-
-
@Clement-B said in Why in home XY different G1 is not execute in my code?:
; homex.g
G91 ; Relative
G21 ; Units to mm
G1 Z20 H1 F500 ; Zup (protect break bit)
G1 X-300 H1 F1800 ; Move to LSW X & stop
G1 X5 F300 ; Go back for ajuste more precisely X at LSW
G1 X-10 H1 F300 ; Move to LSW X & stop
G1 Z-20 H1 F500 ; Zdn
G90 ; Absolute
G92 X0 ; Set Home Position
; homey.g
G91 ; Relative
G21 ; Units to mm
G1 Z20 H1 F500 ; Zup (protect break bit)
G1 Y-360 H1 F1800 ; Move to LSW Y & stop
G1 Y5 F300 ; Go back for ajuste more precisely Y at LSW
G1 Y-10 H1 F300 ; Move to LSW Y & stop
G1 Z-20 H1 F500 ; Zdn
G90 ; Absolute
G92 Y0 ; Set Home PositionIt was mentioned earlier, but I don't think you changed it. The Z moves to raise the bit by 20mm have the H1 switch, which should be H2 instead. H1 is used to seek the endstop, H2 is to allow movement before the axis is homed.
Since the Z move is so short, it may not hit the endstop and that may be why your other moves are not executing?
Your photos are very helpful in understanding your setup. I'm not totally sure what else to do. CNC isn't really my wheelhouse. But please try changing H1 to H2 for the Z moves to see if that helps.
-
Thank for your interet for helping me.
I just changed H1 to H2.
By your explanation, I understand what H2 is doing.
But that doesn't solve one of my problems.; The X and Y axes cannot move: example G1 X-30 Y-30. Nothing is moving here?
; I suspect M208. I reversed the values, but it doesn't work better?; M208 X-280: 0 Y-347: 0 Z0: 137 ; G1 X-30 Y-30. Nothing is moving here?
; or
; M208 X0: 280 Y0: 347 Z0: 137 ; G1 X-30 Y-30. Nothing is moving here?
; M208 X0: 280 Y0: 347 Z0: 137 ; I think this is the good way, but nothing work?
;=============================================================
;homex.g
G91 ; Relative
G21 ; Units to mm
G1 Z20 H2 F500 ; Zup (protect break bit) H2 is to allow movement before the axis is homed.
G1 X-300 H1 F1800 ; Move to LSW X & stop
G1 X5 F300 ; Go back for ajuste more precisely X at LSW
G1 X-10 H1 F300 ; Move to LSW X & stop
G1 Z-20 H2 F500 ; Zdn
;G92 X0 ; Don't need, because min M208 set the axis position when the endstop is triggered (click)
G90 ; Absolute
;=============================================================
; homey.g
G91 ; Relative
G21 ; Units to mm
G1 Z20 H2 F500 ; Zup (protect break bit) H2 is to allow movement before the axis is homed.
G1 Y-360 H1 F1800 ; Move to LSW Y & stop
G1 Y5 F300 ; Go back for ajuste more precisely Y at LSW (Y5 & Y-10)
G1 Y-10 H1 F300 ; Move to LSW Y & stop
G1 Z-20 H2 F500 ; Zdn
;G92 Y0 ; Don't need, because min M208 set the axis position when the endstop is triggered (click)
G90 ; Absolute -
I resolve my problem, Thank you ALL.
Together we go faster. -
Glad to hear. What did you change?
-
I start to write a summary to help others. Probably today.
-
I solved my problem,
See: config, home -> CNC, Post-Processor (Fusion360, Vectric)