06-26-2022, 10:51 AM
Code:
import sys
if len(sys.argv) > 1:
E_Value = float(sys.argv[1])
code_E = 'G1 E ' + str(E_Value)
f_value = None
#检查如果我们运行this program inside another program and passing arguments
import sys
if len(sys.argv) > 1:
f_value = float(sys.argv[2])
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_f = ' G2 F' + str(f_value)
The script reports an error
How to output information about the variable extruder speed and the amount of filament