Thanks for the replies guys. To be clear, I'm looking to write a
pronterface macro, which must be done in Python to interface with the
motors, send M114 signals to the motors to change it's position for
example, but most importantly, then read the current position. That's the
part I don't know how to do. How do you write a macro in python that can
read the current position data? This data is normally output via the serial
console, I just need programmatic access to it.
The purpose of this is to send the current position of the motors to
completely separate program via a network library (Open Sound Control).