Speeding up servo pen up/pen down on pen plotter June 15, 2019 07:31AM |
Admin Registered: 11 years ago Posts: 3,096 |
Re: Speeding up servo pen up/pen down on pen plotter June 15, 2019 08:40AM |
Admin Registered: 13 years ago Posts: 7,004 |
Re: Speeding up servo pen up/pen down on pen plotter June 15, 2019 03:46PM |
Registered: 10 years ago Posts: 14,672 |
Quote
Ohmarinus
Hi, I just realized there isn't a specific 'Gcode' subforum. Maybe that might be an interesting idea as I notice a lot of solutions to a problem come down to an issue related to the lack of knowledge about Gcode options.
Anyway, I have run into an issue where I have to find a solution for creating a 'delay' in my gcode for a pen up/pen down with a servo. Right now I use a M400 before and after the (for example) M280 P0 S40 gcode.
This causes long delays during the print and I think it can all go a bit faster/more dynamically.
Removing the M400 will totally mess up the system so I'm thinking maybe there are ways to do this, maybe by using a delay somehow? Now, I'm not familiar with delays and couldn't find much about this subject using gcode. I know there is 'G4 P[value]', would this be a place to start, or is there another solution?
I'm using Ramps 1.4 with Marlin 2.x bugfix and it's running really well. The reason why I'm using Ramps 1.4 now is because I am using TMC2208 stepper drivers and I am not sure how to use those with stealthchop on the CNC Shield v3.0 with GRBL. So M3 and M5 are out of the question anyway.
Did anyone tackle this servo delay issue before with success? I've seen a lot of videos on youtube of pen plotters running much more dynamically and I think it should be doable for me as well, I just don't know how (yet). In the future I'm also planning on adding a separate module for laser cuts with a separate stepper-driven Z-axis to adjust for material thickness but for now it's a dedicated pen plotter.
Here is a video showing the delay that the M400 command causes:
[www.youtube.com]
Re: Speeding up servo pen up/pen down on pen plotter June 16, 2019 06:36AM |
Admin Registered: 11 years ago Posts: 3,096 |
Quote
dc42
Quote
Ohmarinus
Hi, I just realized there isn't a specific 'Gcode' subforum. Maybe that might be an interesting idea as I notice a lot of solutions to a problem come down to an issue related to the lack of knowledge about Gcode options.
Anyway, I have run into an issue where I have to find a solution for creating a 'delay' in my gcode for a pen up/pen down with a servo. Right now I use a M400 before and after the (for example) M280 P0 S40 gcode.
This causes long delays during the print and I think it can all go a bit faster/more dynamically.
Removing the M400 will totally mess up the system so I'm thinking maybe there are ways to do this, maybe by using a delay somehow? Now, I'm not familiar with delays and couldn't find much about this subject using gcode. I know there is 'G4 P[value]', would this be a place to start, or is there another solution?
I'm using Ramps 1.4 with Marlin 2.x bugfix and it's running really well. The reason why I'm using Ramps 1.4 now is because I am using TMC2208 stepper drivers and I am not sure how to use those with stealthchop on the CNC Shield v3.0 with GRBL. So M3 and M5 are out of the question anyway.
Did anyone tackle this servo delay issue before with success? I've seen a lot of videos on youtube of pen plotters running much more dynamically and I think it should be doable for me as well, I just don't know how (yet). In the future I'm also planning on adding a separate module for laser cuts with a separate stepper-driven Z-axis to adjust for material thickness but for now it's a dedicated pen plotter.
Here is a video showing the delay that the M400 command causes:
[www.youtube.com]
I guess that's something to do with how Marlin implements M400 and/or M280, because the specification of M400 is that is delays processing of the following command until all moves have been completed. That's how we implement it in RepRapFirmware. Actually, with RepRapFirmware you wouldn't need the M400 commands, because the M280 commands would be synchronised to the movement queue.
So some of your options are to change firmware, for fix this behaviour in Marlin (or persuade the Marlin devs to), or do as Dust suggests, or use a stepper motor to raise/lower the nozzle.
Re: Speeding up servo pen up/pen down on pen plotter June 16, 2019 12:08PM |
Registered: 9 years ago Posts: 752 |
Re: Speeding up servo pen up/pen down on pen plotter June 16, 2019 04:47PM |
Registered: 10 years ago Posts: 14,672 |
Quote
Ohmarinus
Oh, I now see that I need to have an LCD on my printer to work with RRF, as stated in this guide:
[duet3d.dozuki.com]
Re: Speeding up servo pen up/pen down on pen plotter June 16, 2019 06:28PM |
Registered: 4 years ago Posts: 2 |
Re: Speeding up servo pen up/pen down on pen plotter June 17, 2019 02:39AM |
Registered: 10 years ago Posts: 14,672 |
Quote
6RAR
Hi
I belong to a small number of veterans and we have just discovered 3D printing . We have a mingda 6C printer but it went crazy and the hot end burnt up. We are looking to retrofit with a smoothie board. We do not have the expertise when it comes to programming. Can anyone help to steer us in the right direction as we would like to just pull the old Andciv 3 generation board out and replace it and be on our way . Is this possible as we are in the older age bracket but are keen to started. We have tried new thermistors and elements but when we turn the printer on we cannot control the heater and it over heats. Can anyone please advise .
Thank you
Re: Speeding up servo pen up/pen down on pen plotter June 17, 2019 02:39AM |
Admin Registered: 16 years ago Posts: 13,890 |
Re: Speeding up servo pen up/pen down on pen plotter June 19, 2019 06:31PM |
Admin Registered: 11 years ago Posts: 3,096 |
Quote
imqqmi
Nice plotter!
I think there should be a servo delay setting, there was one for a deploy and retract of a servo bed probe. It could be set in milliseconds. Yep, found it, SERVO_DELAY in configuration.h. default value is 300ms. So for deploy and retract together is 600ms.
You can try something like 50ms and see if that leaves a mark on the paper, a dot means too long and a line too short.
Re: Speeding up servo pen up/pen down on pen plotter June 20, 2019 08:56AM |
Registered: 9 years ago Posts: 752 |
Re: Speeding up servo pen up/pen down on pen plotter June 20, 2019 09:36AM |
Admin Registered: 11 years ago Posts: 3,096 |
Quote
imqqmi
Ecellent! Looks great!
One thing though the toolpaths don't seem to be very efficient to me, a lot of pen up/down movement that doesn't seem necessary to me. Maybe you can join paths so it can draw faster?
Re: Speeding up servo pen up/pen down on pen plotter July 12, 2019 05:44AM |
Admin Registered: 11 years ago Posts: 3,096 |