LinuxCNC: Aktuelle Position mit Python ermitteln
Dies zeigt die Position in Maschinenkoordinaten an, wie z.B.
get_position.py
#!/usr/bin/env python2.7
import linuxcnc
stat = linuxcnc.stat()
stat.poll()
print(stat.actual_position)Beispielausgabe:
position_output.txt
(7.4023762662053105, 26.443582149595567, 297.289833343029, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow