{"action":"created","issue":{"url":"https://api.github.com/repos/vlachoudis/bCNC/issues/84","labels_url":"https://api.github.com/repos/vlachoudis/bCNC/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/vlachoudis/bCNC/issues/84/comments","events_url":"https://api.github.com/repos/vlachoudis/bCNC/issues/84/events","html_url":"https://github.com/vlachoudis/bCNC/issues/84","id":95941359,"number":84,"title":"CNC takes off after clicking stop button","user":{"login":"Scott216","id":819693,"avatar_url":"https://avatars.githubusercontent.com/u/819693?v=3","gravatar_id":"","url":"https://api.github.com/users/Scott216","html_url":"https://github.com/Scott216","followers_url":"https://api.github.com/users/Scott216/followers","following_url":"https://api.github.com/users/Scott216/following{/other_user}","gists_url":"https://api.github.com/users/Scott216/gists{/gist_id}","starred_url":"https://api.github.com/users/Scott216/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scott216/subscriptions","organizations_url":"https://api.github.com/users/Scott216/orgs","repos_url":"https://api.github.com/users/Scott216/repos","events_url":"https://api.github.com/users/Scott216/events{/privacy}","received_events_url":"https://api.github.com/users/Scott216/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-07-19T19:17:25Z","updated_at":"2015-08-10T19:46:44Z","closed_at":null,"body":"From time to time when I click the stop button in bCNC, my Shapeoko just takes off at high speed.  This is very bad.  It happened again today and I thought I'd try to reproduce the problem and document it.  Below is a YouTube link to the video showing this problem.  I also linked the gcode (on pastebin).  I'm running bCNC 0.4.9 June 18 and GRBL v0.9i.  Gcode was generated by Fusion360.\r\n\r\nVideo: https://www.youtube.com/watch?v=FgqczKtHxAo\r\nG-code (generated by Fusion 360): http://pastebin.com/tr650GBC"},"comment":{"url":"https://api.github.com/repos/vlachoudis/bCNC/issues/comments/129581738","html_url":"https://github.com/vlachoudis/bCNC/issues/84#issuecomment-129581738","issue_url":"https://api.github.com/repos/vlachoudis/bCNC/issues/84","id":129581738,"user":{"login":"Effer","id":1007007,"avatar_url":"https://avatars.githubusercontent.com/u/1007007?v=3","gravatar_id":"","url":"https://api.github.com/users/Effer","html_url":"https://github.com/Effer","followers_url":"https://api.github.com/users/Effer/followers","following_url":"https://api.github.com/users/Effer/following{/other_user}","gists_url":"https://api.github.com/users/Effer/gists{/gist_id}","starred_url":"https://api.github.com/users/Effer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Effer/subscriptions","organizations_url":"https://api.github.com/users/Effer/orgs","repos_url":"https://api.github.com/users/Effer/repos","events_url":"https://api.github.com/users/Effer/events{/privacy}","received_events_url":"https://api.github.com/users/Effer/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T19:46:44Z","updated_at":"2015-08-10T19:46:44Z","body":"@vlachoudis in the serilaIO I've added some output to console in this way:\r\n\r\nif tosend is not None and sum(cline) <= RX_BUFFER_SIZE-2:\r\n\tprint tosend\r\n\r\nand this:\r\ndef stopRun(self):\r\n\t\tprint \"FEED HOLD\"\r\n\t\tself.feedHold()\r\n\t\t\r\n\t\tprint \"SLEEP 1\"\r\n\t\ttime.sleep(1)\r\n\t\t\r\n\t\tprint \"EMPTY QUEUE\"\r\n\t\tself.emptyQueue()\r\n\t\t\r\n\t\tprint \"SOFT RESET\"\r\n\t\tself.softReset()\r\n\t\t\r\n\t\tprint \"RUN END\"\r\n\t\tself.runEnded()\r\n\r\nin this way I've see that after the one second stop (after the feedHold command I presume) there is something send to grbl, and that is the line after.\r\n\r\nHere another debug:\r\n\r\nG1Y-1.25\r\n\r\nG0Z6\r\n\r\nG1Z-4.5F200\r\n\r\nFEED HOLD\r\nSLEEP 1\r\nEMPTY QUEUE\r\nSOFT RESET\r\nRUN END\r\nG3X0.5I0.5J0.375F360\r\n\r\nAlso the settings in my grbl if you need:\r\n\r\n$0=10 (step pulse, usec)\r\n$1=25 (step idle delay, msec)\r\n$2=0 (step port invert mask:00000000)\r\n$3=4 (dir port invert mask:00000100)\r\n$4=0 (step enable invert, bool)\r\n$5=0 (limit pins invert, bool)\r\n$6=0 (probe pin invert, bool)\r\n$10=3 (status report mask:00000011)\r\n$11=0.020 (junction deviation, mm)\r\n$12=0.002 (arc tolerance, mm)\r\n$13=0 (report inches, bool)\r\n$20=0 (soft limits, bool)\r\n$21=0 (hard limits, bool)\r\n$22=0 (homing cycle, bool)\r\n$23=0 (homing dir invert mask:00000000)\r\n$24=25.000 (homing feed, mm/min)\r\n$25=500.000 (homing seek, mm/min)\r\n$26=250 (homing debounce, msec)\r\n$27=1.000 (homing pull-off, mm)\r\n$100=44.444 (x, step/mm)\r\n$101=44.444 (y, step/mm)\r\n$102=200.000 (z, step/mm)\r\n$110=8000.000 (x max rate, mm/min)\r\n$111=8000.000 (y max rate, mm/min)\r\n$112=5000.000 (z max rate, mm/min)\r\n$120=250.000 (x accel, mm/sec^2)\r\n$121=250.000 (y accel, mm/sec^2)\r\n$122=120.000 (z accel, mm/sec^2)\r\n$130=200.000 (x max travel, mm)\r\n$131=200.000 (y max travel, mm)\r\n$132=200.000 (z max travel, mm)\r\n\r\nSorry if really verbose, I hope this help."}}