Help with dock in firmware

Discussion in 'Calibration, Help, and Troubleshooting' started by fpex, Jul 4, 2016.

  1. fpex

    fpex Well-Known Member

    Joined:
    Oct 18, 2015
    Messages:
    621
    Likes Received:
    58
    Hi guys

    I have added this to my firmware

    MENU_ITEM(gcode, "Dock Head", PSTR("G90\nG1 X75 Y200 F3000\nG1 Y240 F2000\nG1 E-4 F4500"));

    It works .. but I now realise that on my dual if I kill a print with the right extruder and dock ... I get a crash.
    How can I fix this?

    Would this work?

    MENU_ITEM(gcode, "Dock Head", PSTR("T0\G90\nG1 X75 Y200 F3000\nG1 Y240 F2000\nG1 E-4 F4500"));

    ??
     
  2. PsyVision

    PsyVision Moderator
    Staff Member

    Joined:
    Sep 4, 2015
    Messages:
    798
    Likes Received:
    248
    yes i think T0/1 switches the head and moves it by the set tooling offset
     
  3. PsyVision

    PsyVision Moderator
    Staff Member

    Joined:
    Sep 4, 2015
    Messages:
    798
    Likes Received:
    248
    http://reprap.org/wiki/G-code#T:_Select_Tool

    The sequence followed is:
    1. Set the current tool to its standby temperatures specified by G10 (see above),
    2. Set the new tool to its operating temperatures specified by G10 and wait for all temperatures to stabilise,
    3. Apply any X, Y, Z offset for the new tool specified by G10,
    4. Use the new tool.
     
  4. fpex

    fpex Well-Known Member

    Joined:
    Oct 18, 2015
    Messages:
    621
    Likes Received:
    58
    I think it might work. thanks.
     
  5. Alex9779

    Alex9779 Moderator
    Staff Member

    Joined:
    Sep 4, 2015
    Messages:
    2,405
    Likes Received:
    731
    Not yet in RC6. The head stays where it was but the coordinates shown in the LCD are updates... This will change post RC6. Then we have to use 'Tx S1' to NOT move the head when switching tools...

    Yeah just do a T0 before that is what I do in all of my scripts for the dock movements so this works even without a properly set offset or something...
     
  6. fpex

    fpex Well-Known Member

    Joined:
    Oct 18, 2015
    Messages:
    621
    Likes Received:
    58
    I will add it, I had enough crashes so far and need to ge this printer working a bit (not for work for fun :) )
     
  7. fpex

    fpex Well-Known Member

    Joined:
    Oct 18, 2015
    Messages:
    621
    Likes Received:
    58
    I now have issues with simplify docking. I am selecting both extruder always and if I set left as primary (in everything) it does not dock properly. Any idea??
     

Share This Page