Import LinuxCNC source tree

This commit is contained in:
Wang Dequan
2026-08-20 06:17:39 +08:00
commit 2c814634c3
9429 changed files with 10556013 additions and 0 deletions

19
nc_files/filtertest.py Normal file
View File

@@ -0,0 +1,19 @@
import time
import sys
for i in range(0,100):
try:
# simulate calculation time
time.sleep(.1)
# output a line of gcode
print('G0 X1', file=sys.stdout)
# update progress
print('FILTER_PROGRESS={}'.format(i), file=sys.stderr)
except:
# This causes an error message
print('Error; But this was only a test', file=sys.stderr)
raise SystemExit(1)
print('M2', file=sys.stdout)