Issues with GCODE Preview
Hello
I have a Cerberus delta printer. Ive been using Repetier Host on my CAD system (which is great btw). Ive really been wanting to offload the actual printing to another system, somehow. I heard about the new Raspberry Pi 2, so I ordered one, along with the Pi camera.
I also heard about Octoprint, so I installed that on the Pi. Wow. Woefully inadequate!
So I went in search of another package for the Pi, and came across Repetier Server (I didnt know about it, only the Host). So I installed that. MUCH more promising/robust!
I even found/followed the instructions (on this site) for how to set up the camera, and that works great, although it took some Googling/Youtubing in order to find those instructions.
I do have some issues with the Server software though, now that I have it installed and working:
Gcode Preview Errors
- I defined the Z-Max and Z-Home Position in printer settings to be 320mm.
- I uploaded a simple, small gcode file of an 80mm diameter washer (sliced in Kiss, its only 460kB).
- I clicked the icon to preview it.
- In the Preview Window, it says the Z Position of layer 1 is 320mm (incorrect). In the actual model preview window, it only shows me a black dot in the lower left corner, and one green line going up and to the right at a 45 degree angle (which appears to be a move), and nothing else.
- If I click "+" next to Layer, it shows me Z position of 0.2mm for layer 2 (which is about right). Also, I now see the first layer gcode, EXCEPT I only see the upper right corner of the model/print (like your software cut a 1/4 pie slice out of the gcode)?! The other 3/4s of it is simply not there. Also, if I move the percentage dial, it thinks the model starts at the black dot (which is incorrect).
Is there something in the software which is somehow limiting the amount of the gcode being displayed?
If so, Ive
looked at every setting in the interface, and I dont see anything which will change this.
- I uploaded another simple model, a rectangular calibration box. When I preview it, it does show me the entire box, although the surrounding skirt has been truncated to be the same/similar 1/4 (upper right). So its not the model of my washer that is causing an issue.
- In addition, the extrusion paths on the square box are not being shown correctly. Where parallel lines exist in the gcode (to fill the bottom layer of the box), in the preview, over 50% of the lines converge, as if they are starting at a single point in the layer. Thats certainly not how this model prints in reality.
- If I print this model, and click over to the Control window, it shows me the extrusion paths the same way, ie as if they are all converging to a single point. This does not match what is going on, on the printer.
Wierdness in the GUI
- If I dont select a file to print, and then click on the Control tab, it just shows me an empty bed. Why not combine the preview screen and the control screen into one?
- If I click over to the Print tab, and then back to the Control tab, the view is completely "zoomed out" (ie its fitting the image of the entire bed to the preview window). I have to zoom all the way in again to see the model. Why doesnt it stay at the zoom level I had before?
Lack of Controls/Placement of Controls
- On the Control Tab, there arent any buttons to STOP, or PAUSE the print?! It requires me clicking back to the Print Tab in order to stop the print.
- The Hot End and Bed Temp controls are way down at the bottom of the screen.
Im my opinion, ALL the controls need to be in one place (close to the Speed, Flow, and Fan Controls. I cant imagine controlling this printer from a tablet or my smart phone (without a scroll wheel).
- The little line graphs are kind of cool, although if you have a
simple way to show the target/actual temps of everything, up near the controls, that will be far more
effective. Also less scrolling. Note: there's no scrolling in Repetier host on the Manual Controls screen.
Come to think of it, why re-invent the wheel? I suggest you model this user interface to look as much like Repetier Host as possible. MUCH less transition time for users. Its taken me the better part of the day to "learn" this user interface.
ie After I choose a model, Im immediately taken to the Manual Controls Screen, where I can see the display of the gcode (the graphical display, in real time), and have all the controls right there at my fingertips, including buttons to START/STOP/CANCEL the print.
Easy peasy.
- There needs to be a way to define the commands sent to the printer if I hit STOP/CANCEL.
Thanks for all your work thus far, its a good beginning.
I have a Cerberus delta printer. Ive been using Repetier Host on my CAD system (which is great btw). Ive really been wanting to offload the actual printing to another system, somehow. I heard about the new Raspberry Pi 2, so I ordered one, along with the Pi camera.
I also heard about Octoprint, so I installed that on the Pi. Wow. Woefully inadequate!
So I went in search of another package for the Pi, and came across Repetier Server (I didnt know about it, only the Host). So I installed that. MUCH more promising/robust!
I even found/followed the instructions (on this site) for how to set up the camera, and that works great, although it took some Googling/Youtubing in order to find those instructions.
I do have some issues with the Server software though, now that I have it installed and working:
Gcode Preview Errors
- I defined the Z-Max and Z-Home Position in printer settings to be 320mm.
- I uploaded a simple, small gcode file of an 80mm diameter washer (sliced in Kiss, its only 460kB).
- I clicked the icon to preview it.
- In the Preview Window, it says the Z Position of layer 1 is 320mm (incorrect). In the actual model preview window, it only shows me a black dot in the lower left corner, and one green line going up and to the right at a 45 degree angle (which appears to be a move), and nothing else.
- If I click "+" next to Layer, it shows me Z position of 0.2mm for layer 2 (which is about right). Also, I now see the first layer gcode, EXCEPT I only see the upper right corner of the model/print (like your software cut a 1/4 pie slice out of the gcode)?! The other 3/4s of it is simply not there. Also, if I move the percentage dial, it thinks the model starts at the black dot (which is incorrect).
Is there something in the software which is somehow limiting the amount of the gcode being displayed?
If so, Ive
looked at every setting in the interface, and I dont see anything which will change this.
- I uploaded another simple model, a rectangular calibration box. When I preview it, it does show me the entire box, although the surrounding skirt has been truncated to be the same/similar 1/4 (upper right). So its not the model of my washer that is causing an issue.
- In addition, the extrusion paths on the square box are not being shown correctly. Where parallel lines exist in the gcode (to fill the bottom layer of the box), in the preview, over 50% of the lines converge, as if they are starting at a single point in the layer. Thats certainly not how this model prints in reality.
- If I print this model, and click over to the Control window, it shows me the extrusion paths the same way, ie as if they are all converging to a single point. This does not match what is going on, on the printer.
Wierdness in the GUI
- If I dont select a file to print, and then click on the Control tab, it just shows me an empty bed. Why not combine the preview screen and the control screen into one?
- If I click over to the Print tab, and then back to the Control tab, the view is completely "zoomed out" (ie its fitting the image of the entire bed to the preview window). I have to zoom all the way in again to see the model. Why doesnt it stay at the zoom level I had before?
Lack of Controls/Placement of Controls
- On the Control Tab, there arent any buttons to STOP, or PAUSE the print?! It requires me clicking back to the Print Tab in order to stop the print.
- The Hot End and Bed Temp controls are way down at the bottom of the screen.
Im my opinion, ALL the controls need to be in one place (close to the Speed, Flow, and Fan Controls. I cant imagine controlling this printer from a tablet or my smart phone (without a scroll wheel).
- The little line graphs are kind of cool, although if you have a
simple way to show the target/actual temps of everything, up near the controls, that will be far more
effective. Also less scrolling. Note: there's no scrolling in Repetier host on the Manual Controls screen.
Come to think of it, why re-invent the wheel? I suggest you model this user interface to look as much like Repetier Host as possible. MUCH less transition time for users. Its taken me the better part of the day to "learn" this user interface.
ie After I choose a model, Im immediately taken to the Manual Controls Screen, where I can see the display of the gcode (the graphical display, in real time), and have all the controls right there at my fingertips, including buttons to START/STOP/CANCEL the print.
Easy peasy.
- There needs to be a way to define the commands sent to the printer if I hit STOP/CANCEL.
Thanks for all your work thus far, its a good beginning.
Comments
re: 1/4 view issue. Ok you lost me. You said "In printer configuration you have the shape but on the first tab you have the possible move volume where you limited x,y to 0."
My printer is 400mm Diameter (so 200mm Radius), and its build volume is 320mm high.
On Printer Settings I have:
X-Min 0
Y-Min 0
X-Max 200
Y-Max 200
Z-max 320
X-Home 0
Y-Home 0
Z-Home 320
Are these not the correct settings?
----------------------------------
RE: Server Connector. If I understand you correctly, Repetier Host, running on my windows 7 CAD System, will be able to communicate with the Server? Thats a very interesting concept.
Here's what Ive been pondering as far as workflow...
I have an HP Laser printer. Im running an app, say MS Word, on my desktop system. I have a document prepared, on the screen. I hit print preview. In a pop up window, Im able to see what the print is going to look like on the actual printed page.
If I like it, I hit Print. It sends the file over to my printer (via a network connection/port on the printer, not USB, so VERY fast). The printer "wakes up", calibrates, warms up, and then a few minutes later my document spits out the top of the printer.
Im envisioning something identical with my 3D printer. Im in a CAD program. I hit Print Preview. In a popup window, it shows me my 3D model. Alongside it are adjustable parameters, which I can adjust.
When I like what I see, I hit a Print button. It sends a file (NOT gcode, say something like an .obj file), along with the parameters Ive defined in the print preview, over to the Pi, via my LAN (in my case my Pi is hardwired to a switch, so a very fast connection).
On the Pi the model is sliced, and sends the gcode to the printer. (Note: I dont see why the file cant be sliced in real time, not ahead of time, just like ray tracing an image, one raster line at a time, but thats a whole 'nother topic of discussion. If we can somehow have slicing on the Pi, it will definitely be a step in the right direction, even if its all done pre-processed, ie before the actual printing begins).
After the file is sent to the Pi, Im able to do one of two things.
I) log into the Pi from my desktop, such as through the browser, like you have the beginnings of now.
Im able see
- the camera video stream,
- the gcode "stream" (just like the host program does now) and
- control the print including (but not necessarily limited to) the
a) Speed
b) Flow
c) bed temp
d) hotend temp
e) chamber temp (my printer has a heated build chamber)
f) Stop/Abort the print.
Preferably all the above on compact screen. I understand you are wanting to allow for small screens, such as a smart phone, tablet etc. Its like the mobile versions of web sites versus a desktop version. Once again thats an entirely different discussion.
II) Alternatively I want to add a touch screen to the Pi (eliminate the LCD screen it has now, which is crude and useless as far as Im concerned), and be able to go stand in front of the printer, and have the same real time controls available to me.
BTW Ive been a computer programmer for over 30 years, and a web developer for over 15 years. If there's any way I can help speed up the development of the above, such as being a Beta tester, or even writing some of the code, Im interested to talk to you about it.
Here's a question for you. Is a user able to customize the layout of the HTML screens in the Server package right now??
My mail server gives me that flexibility. The pages of the web interface are entirely customizable. They must be separated somehow from the actual core code. Maybe a model like that applies here? I dont know. Im just kicking out ideas here.
Best regards,
Johan
re: 1/4 view issue. It suddenly occurred to me (while sleeping, lol) what the issue was. I came back here to the forum to tell you I had figured it out, then I saw your reply. Yes, changing the XMin and YMin settings took care of that mystery.
This is yet another issue which can cause a lot of confusion with 3DP newbies, like me. ie The Z axis min is totally different from the X/Y Axis min(s). I suppose there's no way around that with a Delta Printer.
re: My 'Vision' for the workflow.
I think many others will likely concur with me on the overall workflow with 3D printers. It needs to be simple, and more importantly, similar to the existing workflow with laser printers, which has been established and used for decades.
re: user modification of the front end
I understand what you are saying, in that updates from the author (your team) can 'clobber' user mods, and yet, if the system is setup correctly, those types of issues can be overcome. Evidently you've already started working on something along those lines.
So I can get back to work, on my parts, which is why I bought this 3D printer in the 1st place, and for the near future, here's what Im requesting:
- Nix the separate preview screen (I still dont see the login in having that as a separate screen)
- The left side of the screen has a LOT of wasted space/real estate right now (where I choose the printer). Move that to the top, or somewhere else, to choose the printer. Dont most people, like me, have only one printer?
- Make the control/printing screen VERY similar (as identical as possible) to the Manual Control Screen in the Host Program.
- Have a row of buttons across the top, to allow loading of the model, and starting the actual print.
- The next row, below them (from left to right):
Col #1: The vertical column of icons, to allow fast/easy control of the viewing of the model ie zoom etc (right now you have those on the preview window, and yet, NOT on the control window?)
Col #2: The model/gcode preview window
Col #3:
- The controls of the printer on the right side, ie the 5 that you have now in the host program, concisely showing the target/current temps and speeds.
Note: I HIGHLY recommend nixing the line graphs. Not only do they take up a lot of space; it requires scrolling down to the see 2 of the most important parameters, the hotend and bed temps!
Plus, Im only interested in the current temps, ie target and actual. I dont really see the usefulness of the temps 5 minutes ago?
- One additional control, which allows monitoring/control of the chamber temp, for those (like me) that have an HBC.
My printer uses an M440 command to set the chamber temp (I dont know if that is a standard gcode command for chamber temp or not).
The feedback lines from my printer look like this:
16:45:00: ok T:26.9 /20.0 @0 B:30.5 /20.0 @0 C:29.0 /80.0 @255
BTW this is something Im also requesting for the host program :-)
- IMPORTANT - The webcam video stream (this is of course an
additional little window, which is obviously not needed in the Host
program)
PS Why doesnt your forum email me when subsequent posts are added to this thread, which I started? That seems strange to me, that it requires me to re-visit this page, in order to see your responses?
Best regards
Johan
Did you use the instructions for making mjpg-streamer as written here.. Mine gives me an error during the make!
Can't remember the error message at present. I will try it again and see if it works. I am using a raspberry Pi 2, 32Gb, Pi camera.
I like some of your changes too. I only got mine working yesterday and a 9 hour print job was no problem. My slicing is done on a Mac with registered Kisslicer.
Bob