{"action":"created","issue":{"url":"https://api.github.com/repos/vlachoudis/bCNC/issues/32","labels_url":"https://api.github.com/repos/vlachoudis/bCNC/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/vlachoudis/bCNC/issues/32/comments","events_url":"https://api.github.com/repos/vlachoudis/bCNC/issues/32/events","html_url":"https://github.com/vlachoudis/bCNC/issues/32","id":74937921,"number":32,"title":"G-code error handling","user":{"login":"chamnit","id":948029,"avatar_url":"https://avatars.githubusercontent.com/u/948029?v=3","gravatar_id":"","url":"https://api.github.com/users/chamnit","html_url":"https://github.com/chamnit","followers_url":"https://api.github.com/users/chamnit/followers","following_url":"https://api.github.com/users/chamnit/following{/other_user}","gists_url":"https://api.github.com/users/chamnit/gists{/gist_id}","starred_url":"https://api.github.com/users/chamnit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chamnit/subscriptions","organizations_url":"https://api.github.com/users/chamnit/orgs","repos_url":"https://api.github.com/users/chamnit/repos","events_url":"https://api.github.com/users/chamnit/events{/privacy}","received_events_url":"https://api.github.com/users/chamnit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-05-10T15:11:57Z","updated_at":"2015-06-08T10:07:49Z","closed_at":null,"body":"@vlachoudis : I have been thinking about the g-code error issue. I think the best way to handle an error is to prompt the user what to do when it encounters one. \r\n\r\nFor example, a pop-up window that reports the offending g-code line and queries the user to either continue and ignore  it or cancel the job.\r\n\r\nIn the case for tool changes, this window could be used as a way to also query and control for GUI tool changes. Say if there is an M6 command in that line, the pop-up window could add a new button that would execute a tool change macro, which could be as simple as just moving the z-axis up or as complex as moving to a touch off plate and parking area to do the tool change. \r\n\r\nI will make edits to the Grbl interfacing wiki to make this a standard protocol. "},"comment":{"url":"https://api.github.com/repos/vlachoudis/bCNC/issues/comments/109940656","html_url":"https://github.com/vlachoudis/bCNC/issues/32#issuecomment-109940656","issue_url":"https://api.github.com/repos/vlachoudis/bCNC/issues/32","id":109940656,"user":{"login":"daisyfox","id":11396690,"avatar_url":"https://avatars.githubusercontent.com/u/11396690?v=3","gravatar_id":"","url":"https://api.github.com/users/daisyfox","html_url":"https://github.com/daisyfox","followers_url":"https://api.github.com/users/daisyfox/followers","following_url":"https://api.github.com/users/daisyfox/following{/other_user}","gists_url":"https://api.github.com/users/daisyfox/gists{/gist_id}","starred_url":"https://api.github.com/users/daisyfox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daisyfox/subscriptions","organizations_url":"https://api.github.com/users/daisyfox/orgs","repos_url":"https://api.github.com/users/daisyfox/repos","events_url":"https://api.github.com/users/daisyfox/events{/privacy}","received_events_url":"https://api.github.com/users/daisyfox/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T10:07:49Z","updated_at":"2015-06-08T10:07:49Z","body":"one last question.  But I'll start by reiterating I know that I don't know much about coding so this is a question about feasibility not a 'when will something be done'.\r\n\r\nIf my understanding of the responses sent by 9g is vaguely correct (I tweaked them to give 4 distinct 'ok' messages so I'd know a 'gcode execution ok' from a 'realtime execution ok')  The grbl modules which provide the reporting feedback to report.c  are system.c, protocol.c, gcode.c and setting.c.\r\n\r\nQ: Is there any potential that these modules could be copied to provide/underpin a python library so the grbl code/modules are re-used (the library could then be refreshed whenever grbl is updated)\r\n\r\nThanks again for all you have done, its amazing and I'm learning lots by reading through the code (bCNC on RPi and grbl on Arduino)"}}