{"action":"created","issue":{"url":"https://api.github.com/repos/synthetos/TinyG/issues/114","labels_url":"https://api.github.com/repos/synthetos/TinyG/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/synthetos/TinyG/issues/114/comments","events_url":"https://api.github.com/repos/synthetos/TinyG/issues/114/events","html_url":"https://github.com/synthetos/TinyG/issues/114","id":52729023,"number":114,"title":"CNC CO2 Laser - Delay after \"M\" and \"S\" Commands","user":{"login":"jtronics","id":638858,"avatar_url":"https://avatars.githubusercontent.com/u/638858?v=3","gravatar_id":"","url":"https://api.github.com/users/jtronics","html_url":"https://github.com/jtronics","followers_url":"https://api.github.com/users/jtronics/followers","following_url":"https://api.github.com/users/jtronics/following{/other_user}","gists_url":"https://api.github.com/users/jtronics/gists{/gist_id}","starred_url":"https://api.github.com/users/jtronics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtronics/subscriptions","organizations_url":"https://api.github.com/users/jtronics/orgs","repos_url":"https://api.github.com/users/jtronics/repos","events_url":"https://api.github.com/users/jtronics/events{/privacy}","received_events_url":"https://api.github.com/users/jtronics/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-23T10:19:36Z","updated_at":"2015-02-01T13:01:05Z","closed_at":null,"body":"Hello,\r\nI'm using the TinyG hardware with my 40W co2 laser cutter (made in china :-) ).\r\nFor toggling the Laser I tried to use the \"M3\" and \"M5\" and for PWM the \"S\" commands.\r\n\r\nIt looks like:\r\nM5 \r\nG0 Xxxxx Yyyyy\r\nM3\r\nG1 Xxxxxx Yyyyyy\r\n....\r\n\r\nor \r\n\r\nM3 \r\nS0\r\nG0 Xxxxx Yyyyy\r\nS100\r\nG1 Xxxxxx Yyyyyy\r\nS0\r\nG0 Xxxxx Yyyyy\r\n...\r\nM5\r\n\r\nThe problem is, TinyG stops at every of these commands. That means, the laser decelerate to zero, than executes the M or S command and than accelerate again.\r\n\r\nIs it possible, to modify TinyG, so that the controller executs the M or S commands without changing the speed?\r\n\r\nThere is also a video on youtube.\r\nhttp://youtu.be/-CjDW2fq-C0\r\n\r\nbest regards \r\nMartin\r\n"},"comment":{"url":"https://api.github.com/repos/synthetos/TinyG/issues/comments/72363864","html_url":"https://github.com/synthetos/TinyG/issues/114#issuecomment-72363864","issue_url":"https://api.github.com/repos/synthetos/TinyG/issues/114","id":72363864,"user":{"login":"jtronics","id":638858,"avatar_url":"https://avatars.githubusercontent.com/u/638858?v=3","gravatar_id":"","url":"https://api.github.com/users/jtronics","html_url":"https://github.com/jtronics","followers_url":"https://api.github.com/users/jtronics/followers","following_url":"https://api.github.com/users/jtronics/following{/other_user}","gists_url":"https://api.github.com/users/jtronics/gists{/gist_id}","starred_url":"https://api.github.com/users/jtronics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtronics/subscriptions","organizations_url":"https://api.github.com/users/jtronics/orgs","repos_url":"https://api.github.com/users/jtronics/repos","events_url":"https://api.github.com/users/jtronics/events{/privacy}","received_events_url":"https://api.github.com/users/jtronics/received_events","type":"User","site_admin":false},"created_at":"2015-02-01T13:01:05Z","updated_at":"2015-02-01T13:01:05Z","body":"Hi,\r\nmy laser runs with the maximum speed (like your tests with the makerbot).\r\nIt seems, that the \"M\" and \"S\" commands are specialized handled.\r\nBefore such a command the controller turns the speed to zero, executes the command and then accelerates again. If you use the controller in a milling machine, it doesn't matter, but if you use it for a laser cutter, the resulting delay (in cause of decelerating and accelerating) is very bad.\r\n\r\nIs it possible to change the stepping algorithm, to execute the commands, without changing the speed.\r\n\r\nPS.: If I remove the laser command (\"M\" and \"S\") the controller runs without problems and in the expected speed."}}