Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X3GWriter's output causes CTC printer to behave incorrectly #11

Closed
DavidHaitch opened this issue Jun 20, 2018 · 2 comments
Closed

X3GWriter's output causes CTC printer to behave incorrectly #11

DavidHaitch opened this issue Jun 20, 2018 · 2 comments

Comments

@DavidHaitch
Copy link

If I use X3GWriter to export from Cura 3.3.1, the printer does the following, in order:

  • neglects to heat bed
  • heats nozzle normally
  • Moves bed upwards very slowly for a few CM, then quickly the rest of the way up
  • Moves bed downwards very slowly

I watched it move the bed downwards at a snail's pace for three minutes before giving up

However, if I export from Cura to GCODE, open that GCODE in MatterControl 1.7.5 (another slicer), and export it to X3G using that slicer's GPX integration, the file prints normally.

I've dug into the Cura logs, and into MatterControl's source code, to extract the exact way each is using GPX.
X3GWriter uses GPX 2.6.0, and executes the following:
gpx.exe -c configFile inputFile outputFile

MatterControl uses GPX 1.3, and executes the following:
gpx.exe -p -m r2 inputFile outputFile

I've attached the contents of the config file that X3GWriter is using, the GCODE generated by Cura, and both X3GWriter's and MatterControl's X3G outputs. The last three are zipped in X3GWriter_Comparison.zip.
config.txt
X3GWriter_Comparison.zip

@Ghostkeeper
Copy link
Owner

Ghostkeeper commented Jul 17, 2018

X3GWriter version [4.]1.1.1 may fix this for you, but only if your printer provides a metadata entry to indicate what flavour of X3G we should write. If you have a machine definition (.def.json file) for your printer, you can add this line to the metadata section:

"machine_x3g_variant": "r2",

If you don't have a machine definition, you can alternatively also put that metadata in your machine instance. To do this you would go to Help -> Show configuration folder. Find the machine_instances folder there and there should be a file with a name that you recognise as your printer. In that file, add these lines:

[metadata]
machine_x3g_variant = r2

If there is already a [metadata] section, just put the second line under there.

The intent of this is that the designer of the printer definition can set this metadata entry for you and you wouldn't need to worry about it. However with printer definitions being sparse and far between, some manual work is needed.

If the machine_x3g_variant metadata entry is set, I expect X3GWriter to call GPX with the following parameters:

gpx.exe -p -m r2 inputFile outputFile

Or if the g-code flavour in Cura is set to Makerbot:

gpx.exe -g -p -m r2 inputFile outputFile

So that would do what you need. Let me know if [4.]1.1.1 fixes this for you. You can download it from the releases here on Github or in the toolbox if you have Cura 3.4.

@Ghostkeeper
Copy link
Owner

I'll assume that this was fixed in version 1.1 for you, then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants