python /home/pi/printer/calculate_speed.py [[LayerNumber]] [[TotalSolidArea]]
G1 Z1 F[[ExecReturn python /home/pi/printer/calculate_speed.py [[LayerNumber]] [[TotalSolidArea]]]]
Please be aware that nanoDLP could not control the external processes. Excessive use of this feature could crash nanoDLP due to high memory usage or stalled processes. As a matter of fact the main reason for nanoDLP crashes is the external program executions, So to increase the reliability, use this feature wisely.