markwal / OctoPrint-GPX

An OctoPrint plug-in to use GPX as the protocol layer underneath rather than replacing g-code to talk to s3g/x3g machines, for example, a FlashForge.
GNU Affero General Public License v3.0
104 stars 25 forks source link

Makerbot G code Beep commands #82

Open InertiaImpact opened 4 years ago

InertiaImpact commented 4 years ago

OctoPi with a Makerbot Replicator 2X

I am trying to have it beep, however it doesn't appear to respond to the M300 command ( M300 S300 P1000 ) from the terminal or from within Gcode file.

I have also tried M42 which gets the unrecognized response.

I will be happy to try anything you need. Thanks!

markwal commented 4 years ago

The original GPX translator doesn't have any code for M42. It does however attempt to translate M300 into an x3g frame of (8-bits)147, (16-bits)frequency, (16-bits)milliseconds, (8-bits)0. I haven't ever tried it myself though.

markwal commented 4 years ago

M300 by itself is the same as M300 S300 P1000 since the default frequency and milliseconds are 300 and 1000 respectively. GPX does translate it and send it to the bot, the bot receives it and returns a positive response, but no sound emerges. Though my test bot is a FlashForge Dual (Rep 1D clone) running Sailfish, so I don't know if it implements it other than to succeed the protocol.