RoboDK Forum
How to calculate the 3D printing filament speed- Printable Version

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: How to calculate the 3D printing filament speed (/Thread-How-to-calculate-the-3D-printing-filament-speed)



How to calculate the 3D printing filament speed-robo1973-07-18-2022

How can filament speed be assigned to sys.argv? In the event program, I can only assign the amount of filament Extruder (% 1), I cannot assign the filamnet feeding speed


RE: filament speed be assigned to sys.argv?-Albert-07-18-2022

The following example shows how you can calculate the filament speed based on the displacement of the TCP and the TCP speed:
//www.sinclairbody.com/doc/en/Robot-Machining.html#Print3Dpost

The filament speed is also referred to as flow in the post processor or the documentation. Contact us by email if you would like to get access to the source code of the post processor to better customize it.


RE: filament speed be assigned to sys.argv?-robo1973-07-18-2022

ok thank you for the answer I already have a postprocessor received for you
I modify the postroceror according to the example and not
writes me down in the general program
self.addline ('ExtruderSpeed (%. 3f)'% extruder_signal)
...
ExtruderSpeed (0.667) not ???


I have uploaded my modification info@www.sinclairbody.com


RE: filament speed be assigned to sys.argv?-robo1973-07-19-2022

Hello !! I still haven't found out how in RoboDK I can pass information about the speed of filamnet feeding to the sys.argv variable so that I can pass it to the script.

Code:
if len(sys.argv) > 1:
E_Value = float(sys.argv[1])

How to define the speed of a filamnet in RoboDK

if len(sys.argv) > 2:
f_value = float(sys.argv[2])



RE: filament speed be assigned to sys.argv?-robo1973-07-31-2022

How in RoboDK using python to read information about the current speed of the robot (speed)


RE: filament speed be assigned to sys.argv?-Albert-07-31-2022

It is not possible to extract the current speed directly but you can calculate it in your post processor as I mentioned in my previous post:
//www.sinclairbody.com/doc/en/Robot-Machining.html#Print3Dpost

However, if you have a robot that can control external axes you can configure your extruder like an external axis.


RE: How to calculate the 3D printing filament speed-robo1973-07-31-2022

OK thank you for your answer
在后处理程序我添加和没有没说完ens
It should add and highlight

Code:
self.addline('ExtruderSpeed(%.3f)' % extruder_signal)
However, nothing is happening


I want to download speed information in the RoboDK simulator itself to apply this python script
Code:
import sys
if len(sys.argv) > 1:
e_value = float(sys.argv[1])

if f_value is None :
f_value = 0

f_transform = f_value * 60 * 1.5676 # mm/s in mm/min und adaptation for line crossection Q to fed filament Q/pi*(2.85/2)²
code = 'G1 xxx F' + str(f_transform)
But as I understand it there is no such possibility?


RE: How to calculate the 3D printing filament speed-robo1973-08-02-2022

I modified the original postprocessor as in the description
//www.sinclairbody.com/doc/en/Robot-Machining.html#Print3Dpost

I put the modification in the attachment Please see what I did wrong?
It does not print out
Code:
self.setDO(self.PRINT_E_AO, "%.3f"% extruder_signal)

and
Code:
self.addline('ExtruderSpeed(%.3f)' % extruder_signal)