I'm very new to the 3D printing world but I wanted to ask if anyone has any experience writing a python MACRO that lets you read the position data of the extruder head. The examples are very minimal online and I can't really find anything to receive the serial data. I want to be able to send and receive position data through the MACRO and then send the read position data via OSC.
On Wednesday, August 15, 2012 11:36:12 AM UTC-4, mrtm3050 wrote: > Hey All,
> I'm very new to the 3D printing world but I wanted to ask if anyone has > any experience writing a python MACRO that lets you read the position data > of the extruder head. The examples are very minimal online and I can't > really find anything to receive the serial data. I want to be able to send > and receive position data through the MACRO and then send the read position > data via OSC.
It's pretty doable, you just have to send the command and read on the serial port. But the problem is during the print, the host software will be using the serial port. What is the application of this script?
Wait, nevermind... totally misinterpreted this. OP wants to make a plugin/macro for pronterface. I can't really offer any meaningful tips, other than using M114. Maybe somebody else with pronterface experience can help you out.
On Thursday, August 16, 2012 1:14:03 PM UTC-7, Nolan Poe wrote:
> It's pretty doable, you just have to send the command and read on the > serial port. But the problem is during the print, the host software will be > using the serial port. What is the application of this script?
> On Wednesday, August 15, 2012 3:47:57 PM UTC-7, NCBob wrote:
>> I think he's looking for python script to send the m114 and read the >> results from the serial port.
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).
On Thursday, August 16, 2012 4:30:13 PM UTC-4, Nolan Poe wrote:
> Wait, nevermind... totally misinterpreted this. OP wants to make a > plugin/macro for pronterface. I can't really offer any meaningful tips, > other than using M114. Maybe somebody else with pronterface experience can > help you out.
> On Thursday, August 16, 2012 1:14:03 PM UTC-7, Nolan Poe wrote:
>> It's pretty doable, you just have to send the command and read on the >> serial port. But the problem is during the print, the host software will be >> using the serial port. What is the application of this script?
>> On Wednesday, August 15, 2012 3:47:57 PM UTC-7, NCBob wrote:
>>> I think he's looking for python script to send the m114 and read the >>> results from the serial port.