Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

homexy.g #6

Open
bilsch opened this issue Mar 21, 2022 · 5 comments
Open

homexy.g #6

bilsch opened this issue Mar 21, 2022 · 5 comments

Comments

@bilsch
Copy link

bilsch commented Mar 21, 2022

Hey mind sharing your homexy too?

@nionio6915
Copy link
Owner

nionio6915 commented Mar 22, 2022

sure what part?

; ***********************************************************
; homexy.g
; ***********************************************************
; 
if boards[0].vIn.current < 23
    M291 S2 R"Turn on power?" P"Power is OFF?" 
    M292 P0
    M80
    G4 P1000                           ; wait 1 second for power to stabilize
elif boards[0].vIn.current > 23
   M561                                 ; clear any bed transform
   M290 S0 R0                           ; clear baby steps 
   M564 S0 H0                           ; allow movement outside limits
                                        ; Home X and Y at the high end of the axis
   G91                                  ; relative positioning
   G1 H2 Z5 F6000                       ; lift Z relative to current position
   G1 H1 X292 Y325 F9000                ; move quickly to X and Y axis endstops and stop there (first pass)
   G1 H2 X-5 Y-5   F9000                ; go back a few mm
   G1 H1 X292 Y325 F360                 ; move slowly to X and Y axis endstops once more (second pass)
   G1 H2 Z-5 F600                       ; lift Z relative to current position
   G90                                  ; absolute positioning
   M564 S1

@nionio6915
Copy link
Owner

i tihnk you want this one too -

; ***********************************************************
; homeall.g
; ***********************************************************
; called to home all axes
M98 P"0:/sys/homexy.g"                         ; home x y
M98 P"0:/sys/homez.g"                           ; home z by calling submacros

@bilsch
Copy link
Author

bilsch commented Mar 22, 2022

you rock thanks!

@bilsch
Copy link
Author

bilsch commented Mar 22, 2022

oh, so boards[0] is the duet board right? Then we can index into other boards if we want? say I have a/b on the 3hc and its board 1 - boards[1]... would get that detail for the other board right?

@nionio6915
Copy link
Owner

I do not know the Duet3x hardware at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants