{"issue":{"created_at":"2011-12-08T14:23:18Z","state":"open","updated_at":"2011-12-09T10:00:33Z","comments":8,"user":{"gravatar_id":"812a8b66a6ed48004ce62d7e88fdaf1f","id":203922,"url":"https://api.github.com/users/cakeller98","avatar_url":"https://secure.gravatar.com/avatar/812a8b66a6ed48004ce62d7e88fdaf1f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"cakeller98"},"body":"Problem: current position can be past the endstop, but when moving away from the endstop it moves relative to endstop, not the current position.\r\n\r\nto illustrate:\r\n\r\n>>>M114\r\nSENDING:M114\r\nX:0.00Y:0.00Z:0.00E:0.00 Count X:0.00Y:0.00Z:0.00\r\n>>>G1 X-1000\r\nSENDING:G1 X-1000\r\necho:endstops hit:  X:0.00\r\n>>>M114\r\nSENDING:M114\r\nX:-1000.00Y:0.00Z:0.00E:0.00 Count X:-0.02Y:0.00Z:0.00\r\n>>>G1 X10\r\nSENDING:G1 X10\r\n>>>M114\r\nSENDING:M114\r\nX:10.00Y:0.00Z:0.00E:0.00 Count X:846.70Y:0.00Z:0.00  (but the print head has since crashed into the far end of the X axis, and continued to try and move beyond the end for ~850mm because well... somehow it thought it was actually AT -1000, vs realizing that I'm at the endstop, I'm at ZERO, and won't move until the real position is greater than ZERO! :)\r\n\r\n---- however, the move moves 1010 mm from the endstop!!!\r\n\r\nthis is HORRIBLY bad behavior!\r\n\r\nanother example - if you have a code that say G1 Z-1... when you go to Z0.4, you end up at Z1.4...\r\n\r\nI know it's a known bug, but I don't see it listed in ISSUES.","assignee":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"id":2488021,"number":30,"labels":[],"title":"Endstop behavior is wrong","closed_at":null,"html_url":"https://github.com/ErikZalm/Marlin/issues/30","url":"https://api.github.com/repos/ErikZalm/Marlin/issues/30","milestone":null},"action":"created","comment":{"created_at":"2011-12-09T10:00:33Z","updated_at":"2011-12-09T10:00:33Z","user":{"gravatar_id":"e09205c4aabe0584d06ed49b00d21b9d","id":882374,"url":"https://api.github.com/users/ErikZalm","avatar_url":"https://secure.gravatar.com/avatar/e09205c4aabe0584d06ed49b00d21b9d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"ErikZalm"},"body":"The endstop behaviour is as it is. I can make an option that stops the printer when endstops are hit.\r\nI can not easy change the endstop behaviour.\r\n\r\nIf you can not live with the current implementation use sprinter, 5D or other FW.\r\nTeacup uses the endstops only for homing so that is not an option.\r\n\r\nAll firmware has its advantages and disadvantages. I know this (it think small) problem but not easy to fix. If you think you can fix it. Do it. And I will include the code.\r\n\r\n\r\n","id":3077188,"url":"https://api.github.com/repos/ErikZalm/Marlin/issues/comments/3077188"}}