Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

A marlin firmware emulator. Created as a tool for supporting Machine Collaboration Utility (https://github.com/Autodesk/machine-collaboration-utility)

License

Notifications You must be signed in to change notification settings

Autodesk/motion-controller-emulator

Repository files navigation

Motion Controller Emulator motion controller emulator build status

The purpose of this module is to allow for proper testing of code that utilizes gcode-based motion control hardware. We're specifically focused on emulating Marlin firmware, however this software's purpose can be expanded more generally as well.

Contributing

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributions.

const MCE = require('motion-controller-emulator');

async function example() {
  // Create a new MCE instance
  const bot = new MCE();

  // Open the connection
  await bot.open()
  
  const positionReply = await bot.sendGcode('M114');
  // Position Reply is
  // ok X:0.00 Y:0.00 Z:0.00 E:0.00 Count X:0.00 Y:0.00 Z:0.00 E:0.00 
}

example();

About

A marlin firmware emulator. Created as a tool for supporting Machine Collaboration Utility (https://github.com/Autodesk/machine-collaboration-utility)

Resources

License

Stars

Watchers

Forks

Packages

No packages published