Couple questions related macros
-
Just get my printer working and here couple question, many thanks everyone who answer and can help.
- Can i get some information macro "state" to webcontrol page?
Example if i put (inside macro) hotend temp to 200c and after that M109 to wait that temp is reached, can i get some window to web control " waiting hotend " or something like that? Or if there is some "clock delay" can i get some clock going on web control?
-
Little bit related last question. Is there some gcode to get machine waiting certain time (example 10s or 60s) and after that continue that macro. I now some gcode wait commands, but that put whole machine to "halt" state and whole machine not show any temps or not click buttons etc when that timer is going. Is there any timers that wait example 60seconds but you click buttons and give commands inside that 60s "wait" period?
-
Just try to macro fast "retract" (get my filament out bowlen system). Here my macro now:
M80
M104 S234
M109 S234
G1 E-600 F1020
M104 S0
Works ok. But want recract speed faster. I have Nema17 and Titan extruder (what have 3:1 gear ratio). What is command to get that recract fast as possible? Maybe that nema motor not can going any faster, but want to know if there is some limitation value, what i need to adjust before i get more speed.
-
For "1" you can print a message using M291 if that helps https://duet3d.dozuki.com/Wiki/GCode#Section_M291_Display_message_and_optionally_wait_for_response
For "2" Yes- use G4 https://duet3d.dozuki.com/Wiki/GCode#Section_G4_Dwell
For "3" Maximum speeds for all axes and extruders are set in your config.g file using M203 https://duet3d.dozuki.com/Wiki/GCode#Section_M203_Set_maximum_feedrate
e.g. M203 E3600 will set the maximum extruder speed to 3600 mm/min (60mm/sec).As far as the Duet is concerned, the ultimate speed limitation of the extruder is the step pule frequency of 200KHz. In practice, that means for a Titan with around 400 steps per mm the maximum extruder speed is around 500 mm/sec (30,000 mm/min) at 16X micro-stepping (but I wouldn't advise that you use that).
-
Big thanks for answers.
-
that M291 is easily better than nothing and think that is ok to my project now
-
Ok use G4 i think that some way halt my old Smoothieware board, but maybe situation is different with Duet
-
Ok i thinking that M203 gives that maximum speed to Extruder, but not sure is that working when you use macros too. What you think is good maximum speed on Extruder is that E3600 max speed or can i try 5000-8000 etc.
-
-
@lassivv said in Couple questions related macros:
Big thanks for answers.
- Ok i thinking that M203 gives that maximum speed to Extruder, but not sure is that working when you use macros too. What you think is good maximum speed on Extruder is that E3600 max speed or can i try 5000-8000 etc.
M203 is just the limit you set. The actual speed will be whatever you use for the feed rate when you do a G1 Enn Fnn move (or a G10 firmware retract) up to that limit. There is no harm in setting M203 really high providing you know that your slicer won't insert silly commands in the gcode file.
You can try higher speeds but two things.....
Firstly, because retraction moves tend to be small, it's unlikely that you'd reach that speed because the extruder needs to accelerate up to speed, then decelerate back down. It depends on what acceleration you use and what the retraction distance is set to.
Secondly, if the speed is too high, retraction may not be effective in prevent blobs or oozing for non-print moves. You'll just have to experiment and find the speed that works best with your machine.
-
Yeah just thinking that if some silly code is going gcode, but i think that newer happens.
I think to use that fast recract just rectact (change filament) macro. To drive 500mm filament out bowlen system, because that fast as possible not need to wait long to filament go out and same to extract new filament in. That goes fast 400mm and end of 100mm slower if that hits to hotend melting place that not going too fast there.
But thanks for hints i try to speed that up. Some place i think maxinumm rpm to stepper motor is limitating factor specially with that 3:1 gear ratio, but not know exatcly , is that so high rpm what stepper can turning that not limitating factor on this case.
-
@lassivv said in Couple questions related macros:
Some place i think maxinumm rpm to stepper motor is limitating factor specially with that 3:1 gear ratio, but not know exatcly , is that so high rpm what stepper can turning that not limitating factor on this case.
I told you that earlier. The limiting factor is the step pulse frequency of 200,000 Hz which for something like an E3D Titan which uses 3:1 gearing, with a 1.8 degree motor and 16X micro-stepping works out at about 500mm/sec or 30,000 mm/min. It's half that if you use a 0.9 degree motor.
-
Ok, just think your mean that 200,000 hz not recommanded, thats why i ask what you think is good maximum rate of that. But i try something 10000-15000mm/s i think that is enought for me. Thanks you every tips.