Re: [Emc-users] Python question

2020-12-16 Thread John Dammeyer
> From: Chris Albertson [mailto:albertson.ch...@gmail.com] > > For me this was a good example. I wanted to write a userspace > pendent interface. Assuming you have created a pin object as "h", the > pin's input is read as h.in and you can set h.out to set the output. The > link below is a

Re: [Emc-users] Python question

2020-12-16 Thread Chris Albertson
For me this was a good example. I wanted to write a userspace pendent interface. Assuming you have created a pin object as "h", the pin's input is read as h.in and you can set h.out to set the output. The link below is a sample program that copies a pin's input to its output. So it shows both

Re: [Emc-users] 7i96 multi wire input

2020-12-16 Thread Gene Heskett
On Wednesday 16 December 2020 17:42:58 Sven Wesley wrote: > Den tors 10 dec. 2020 kl 15:31 skrev Gene Heskett : > > But, I'll also state that my way is not the only way, There are > > (N-1)! ways to do it where N is the number of inputs you need to > > smunch into one wire to stop LCNC, and ! is

Re: [Emc-users] Python question

2020-12-16 Thread John Dammeyer
Quick question. On the MDI screen in Axis does the HALUI connection set the Active G-Codes: field with a reply? So if an M7 is sent M7 shows up. If an M8 is sent the M8 shows up. And if both coolants are switched off with the M9 we see the M7 M8 vanish and replaced with M9. The

Re: [Emc-users] Python question

2020-12-16 Thread ken.strauss
With the great help on list and off I'm having some progress. When debugging it is very convenient to be able to run a program in a terminal window. Doing so immediately shows syntax errors. The program can talk to an Arduino listening on a USB simulated serial port and can create pins that can

Re: [Emc-users] 7i96 multi wire input

2020-12-16 Thread Sven Wesley
Den tors 10 dec. 2020 kl 15:31 skrev Gene Heskett : > But, I'll also state that my way is not the only way, There are (N-1)! > ways to do it where N is the number of inputs you need to smunch into > one wire to stop LCNC, and ! is the factorial symbol. And could be > expanded to handle more fault

Re: [Emc-users] Python question

2020-12-16 Thread John Dammeyer
Thanks Andy, I'll check into that. I've attached two screen shots of an app I put together in just over a half hour. Mostly trying to remember how to do certain things. Press the buttons on the user screen and the Active GCodes are updated. A total of 98 lines of code including blank lines

Re: [Emc-users] Sample code

2020-12-16 Thread ken.strauss
Apologies for my late response but I've had to attend to other matters. In your sample Python code where is "data" defined? -Original Message- From: Ernesto Lo Valvo Sent: December 11, 2020 11:06 AM To: emc-users@lists.sourceforge.net Subject: Re: [Emc-users] Sample code I

Re: [Emc-users] Python question

2020-12-16 Thread andy pugh
On Wed, 16 Dec 2020 at 06:29, John Dammeyer wrote: > https://github.com/LinuxCNC/linuxcnc/blob/master/src/emc/usr_intf/emcrsh.cc > It uses sockets in that file which implies this is how communications is done. Not normally. emcrsh is an "add on" interface for communicating with remote LinuxCNC

Re: [Emc-users] Python question

2020-12-16 Thread Frank Tkalcevic
The sockets part is for the "rsh" remote shell interface - the UI is a command line interface. The big comment at the beginning of the file shows the text command list - eg for spindle commands - spindle (none) | forward | reverse | increase | decrease | constant | off As for searching, I