-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
CNC process visualization functionality #244
Comments
Thank your for submiting, please be sure you followed template or your issue may be dismissed. |
This a reccurent request and I have answered several time but again: Gcode sender and webUI are differents: 1 - GCODE sender control everything, have all GCODE file data from begining of the job to the end of the job. So WebUI can only display info it get when it is opened, not before, it has defintly limited access to GCODE data Display graphical visualization of what it is currently plotting is likely possible, but
The best that can be done is : Do you have any comment or suggestion about my feedback as I may miss some possible solution ? Additionnaly may I know what is the benefit/purpose of live visualization vs % of progression vs a camera monitoring? I would really be interrested to know, as per my point of view, it is more a fancy feature than a real benefit but I may be wrong. |
Hi Luc.
Thank You for Quick reply on my issue.
I fully agree that web ui visualisstion must have some limitations against what ugs offers, but i like what You mentioned as possible:
1. Preview taken from SD card.
2. Resonable progres visualization when web ui is open before job started and kept on-line till the end of job.
With features web ui already offers it could be enough to Say that web ui is complete solutions.
So if development start I offer my involvement in testing On my Corexy plotter with grbl Esp32 controller.
Best regards.
Marcin.
Pobierz aplikację Outlook dla systemu Android<https://aka.ms/AAb9ysg>
…________________________________
From: Luc ***@***.***>
Sent: Sunday, May 15, 2022 5:15:42 AM
To: luc-github/ESP3D-WEBUI ***@***.***>
Cc: sp5iou ***@***.***>; Assign ***@***.***>
Subject: Re: [luc-github/ESP3D-WEBUI] CNC process visualization functionality (Issue #244)
Assigned #244<#244> to @sp5iou<https://github.com/sp5iou>.
—
Reply to this email directly, view it on GitHub<#244 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AYPAFTTSMWWVYOCAGFAXPVTVKBT55ANCNFSM5V6CBS7Q>.
You are receiving this because you were assigned.Message ID: ***@***.***>
|
For reference : this lib is for 3D printing https://github.com/remcoder/gcode-preview but seems having small footprint (18.5KB zipped) so may be a stripped version could be smaller For CNC 2D and 3D it should fit too I think Note: the code use : https://glmatrix.net/ which has 13.5KB ziped footprint |
@luc-github If you implement this it can also be used to show Preview of 3D Printer GCode :-) |
As mentioned above this need that the printer/cnc FW echo each command it is processing - I did not cheched what FW is doing it currently - I saw some Debug feature for echo - but too much debug/echo output may also affect the printer/cnc performance - no mention that the debug output for echo may also bring additional useless data that need to be sorted according printer /cnc fw - So it is not in my short time frame plan But PR is always welcome |
I have give a try to https://marlinfw.org/docs/gcode/M111.html today and it echo only serial commands, not sd ones, so will need also a printer FW modification for this feature |
I will start to study webgl for path visualisation and probe plan representation,
|
Reading more the code of the above it actually use three library https://threejs.org/ which is great but overkill for what we need and too heavy even min version gzipped it is 144KB, and still need additional library code, which gzipped is 19KB, so not including the integration code, it add already 165KB, which is too much for a fancy feature on small flash capability. So for 2D graphics even about 3D objects I am hopping having a lighter solution I have started to study WebGL which seem still need the https://glmatrix.net/ (14KB) for code simplification but further investigation is necessary - at least for 2D only (2D path for laser or simple carving) it is enough. I will continue investigation Any suggestion of another solution is of course welcome 😸 |
FYI, in my fork of WebUI 2 that we use with FluidNC, there is 2D visualization in the Tablet-optimized tab. IA port to WebUI 3 is in progress. I will submit a PR at some point. The code has these attributes:
At present, the visualization is only available through the Tablet UI tab, but there is no inherent reason why it could not be in a pane of its own, available through the main UI. |
A quick chat with chatGPT suggest to use gcode-parser originaly from https://github.com/jherrm/gcode-parser and now in cncjs and regl which has a smaller footprint (25KB GZIP) vs Three (145KB GZIP) |
The 3D Printer GCode viewer extension is done and is 12.6KB so Using it as code base for CNC 2D / 3D should not be a problem |
The visualizer code at https://github.com/MitchBradley/WebUI-tablet-extension supports G2 and G3, GCode parsing with or with spaces, arbitrary Z limits, NIST parameters and expressions, different view directions, machine boundary display, and dynamic tool position display. It works with WebUI versions 2 and 3. The visualizer / gcode parser code is independent of the tablet UI functionality. |
Is your feature request related to a problem? Please describe.
Current release doesn't have milling / printing progress visualization as is available in some CNC controlling applications i.e. Universal gcode sender or LaserGRBL. It would be great to have it in this web UI
Describe the solution you'd like
Develop graphical visualization of CNC process progress to see in quasi-real time drill / nozzle position XYZ and in different color
what has been already milled / printed / plotted.
Describe alternatives you've considered
I am using other software Universal gcode sender or LaserGRBL, for my grbl-ESP32 based plotter, but they do not have web based UI and do not show shapes plotted from SD card connected to my plotter.
Additional context
See on the picture below what I mean.
The text was updated successfully, but these errors were encountered: