Home › Forums › TinyG › TinyG Support › TinyG skips lines of Gcode
- This topic has 2 replies, 2 voices, and was last updated 10 years ago by
geroswen.
-
AuthorPosts
-
July 15, 2016 at 5:34 pm #9843
geroswen
MemberHello,
I’m having an issue with TinyG skipping lines of gcode when i have multiple homing commands
G28.2 Z0in the same program.I’m using M8 and M9 commands to control the probe tool.
What would i expect it to do:
lift Z axis 20mm
extend probe tool
wait 2 seconds
home Z (until Z min switch is hit)
set this as new Z0 point
take back probe tool
wait 2 seconds
and repeat same steps one more timeWhat is actually does:
first ~9 lines are executed as expected. Than it skips all the lines until 2nd instance ofG28.2 Z0and runsG28.2 Z0again. No matter how many lines of code I add before 2nd instance ofG28.2 Z0, TinyG skips all of them.G21 G90 G92 x0 y0 z0 G0 Z20 M8 G4 P2 G28.2 Z0 G92 z0 M9 G4 P2 G0 Z20 M8 G4 P2 G28.2 Z0 G92 z0 M9Programs with one instance of
G28.2 Z0command work fine. But I’m having issues whenever I use more than one instance of this homing command. (it the example shown above the probe tool will not extend before 2nd homing sequence)… I need to home Z axis before every cut to properly set pierce height of plasma torch. Thank you for helping me.July 18, 2016 at 5:38 am #9851cmcgrath5035
ModeratorHave you reviewed the Wiki, particularly
Z axis homes to Zmax, not Zmin.
Available support for M8 and M9 behavior may not be what you need, see
July 23, 2016 at 6:19 pm #9856geroswen
Member
My Z axis homes to Zmin when i use settings as shown on the screenshot. I dont think that is the problem here, because first few lines of code are executed correcty (including Z homing cycle).
I could replace M8 and M9 commands with anything else and I’m pretty sure that program wouldn’t work correctly. I’m using M8 and M9 to control 3,3V arduino relay, which further controls 12V air valve to move probe tool down and up (enabled, disabled).
I’m currently trying to replace G28.2 with G38.2 for Z probe. It fixed the problem with skipped lines, but I’m having issues with X and Y axis going out of workplace. I will try to figure that out.
-
AuthorPosts
- You must be logged in to reply to this topic.