Welcome! Log In Create A New Profile

Advanced

Customizing Printrun & Pronterface GUI: 2 serial ports

Posted by Tomsepe 
Customizing Printrun & Pronterface GUI: 2 serial ports
October 20, 2017 11:52PM
Hi!

I'm hacking together two delta printers running Marlin
Into a unique art robot, and I'd like to be able to
Customize the Printrun interface so that there are two
Serial ports open in the same instance of the application.

I know it is possible to edit the GUI to create custom buttons,
Or to add an extruder, but it is unclear if what I want to do is possible

Ideally I'd press one button and it would send a G-code macro to both printers at once

I've written a custom python script that can open up two serial ports
And send each a command, but I'd like to take advantage of the Printrun
Interface, If possible, rather than having two windows open, which is how I'm doing it now.

Thanks in advance!

Edited 2 time(s). Last edit at 10/20/2017 11:54PM by Tomsepe.
Re: Customizing Printrun & Pronterface GUI: 2 serial ports
November 11, 2017 05:58PM
Your Welcome!
Re: Customizing Printrun & Pronterface GUI: 2 serial ports
November 12, 2017 02:17AM
If both Deltas always get the same macro, you could send the data to one serial port on the "Master"-controller and the master echoes the code thru another serial port to the slave-controller. IIRC there are 4 COM ports on a Atmega 2560...
If each Delta needs individual data, you have to find a way to rename the axis' of the slave Delta, so they can sort out their relevant data themselves.

; Master = X Y Z E1 E2
; Slave = A B C U V
G1 F.... X*  Y* Z* E1* E2* A* B* C* U* V*

You would still need a handshake signal between both controller to be sure they work synchronuosly on the same line of code.
Sorry, only registered users may post in this forum.

Click here to login