Footer Code

Home Forums TinyG TinyG Support Footer Code

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11693
    mristau
    Member

    Since building my tinyG/shapeoko I have been shutting down after each run of a multiple run project, rehoming and re-zeroing, next run, etc..
    With the footer code below, the finish position is not as needed to simply run the next file. Like to know how I might edit the footer code below so that I can just run the next file.
    Possibly related to G54 or G10 L2 P2 X0 Y0 Z0, but unsure where to place.

    (My Gcode via Cut2d. CoolTerm to send files)

    current foot:
    —-
    G28 (return home)
    $gco (set default coordinate system)
    $gpl (set default plane)
    G90 (set MODE_ABSOLUTE)
    G94 (set UNITS_PER_MINUTE)
    M5 (spindle is stopped)
    G80 (motion mode is canceled)
    $gun (Default INCHES or MM units mode is restored)
    ()
    (home)
    G28.2 x0y0z0
    (reset G28)
    G28.1
    M30

    • This topic was modified 4 years, 11 months ago by mristau.
    #11697
    cmcgrath5035
    Moderator

    I am not sure I understand how you footer code is supposed to work.
    Is this string of Gcode commands appended to all jobs?
    For example, unclear to me what you expect $gco to do without a parameter. Is your desire to reset to the default coordinate system? I don’t think this will achieve that. I have never seen parameter settings blended with a Gcode file.
    Reset, what you are doing now (if I understand correctly) would re-read/reset all defaults.

    TinyG is tasked with running a job, not managing multiple jobs.
    You probably need to do that at the CAM layer, e.g. Chilipeppr or cnc.js

    #11698
    mristau
    Member

    This seem to accomplish what I need:

    begin FOOTER

    “G1Z1”
    “G1x0y0”
    “G1z0”

    With this I can run sequence of project files without re-homing and re-positioning for G92. (Hopefully avoiding any position differences resulting from re-homing for each project file.)

    • This reply was modified 4 years, 11 months ago by mristau.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.