> 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 samp
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
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
http://lin
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
Sent: December-16-20 2:58 AM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] Python question
>
> 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 soc
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 s
want is in shcom.cc
-Original Message-
From: John Dammeyer [mailto:jo...@autoartisans.com]
Sent: Wednesday, 16 December 2020 5:27 PM
To: 'Enhanced Machine Controller (EMC)'
Subject: Re: [Emc-users] Python question
Ah.
https://github.com/LinuxCNC/linuxcnc/blob/master/src/
ot; to find out if it's a MACRO
or a function that formats the message to go to the socket?
Thanks
John
> -Original Message-
> From: Frank Tkalcevic [mailto:fr...@franksworkshop.com.au]
> Sent: December-15-20 9:48 PM
> To: 'Enhanced Machine Controller (EMC)'
oller (EMC)'
Subject: Re: [Emc-users] Python question
Let's say you wanted to access the hal pins and essentially run the machine
using a different programming language like C instead of python.
How's the linkage done from say the Axis GUI to the rest of the system? Like
Spindl
ginal Message-
> From: andy pugh [mailto:bodge...@gmail.com]
> Sent: December-15-20 5:15 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] Python question
>
> On Wed, 16 Dec 2020 at 01:10, wrote:
> >
> > Are the necessary environment variables docume
a terminal window
Thanks for the hint!
-Original Message-
From: Frank Tkalcevic
Sent: December 15, 2020 8:46 PM
To: 'Enhanced Machine Controller (EMC)'
Subject: Re: [Emc-users] Python question
I run in-place, so I run...
. $EMC_HOME/scripts/rip-environment
Before each ru
--Original Message-
From: ken.stra...@gmail.com [mailto:ken.stra...@gmail.com]
Sent: Wednesday, 16 December 2020 12:08 PM
To: 'Enhanced Machine Controller (EMC)'
Subject: Re: [Emc-users] Python question
Are the necessary environment variables document somewhere?
-Original Mess
On Wed, 16 Dec 2020 at 01:10, wrote:
>
> Are the necessary environment variables document somewhere?
I think you just need to "import linuxcnc" to get access to linuxcnc
command and state.
But you would probably still need to create and net hal pins to get
values from hal.
--
atp
"A motorcycle
Are the necessary environment variables document somewhere?
-Original Message-
From: Frank Tkalcevic
Sent: December 15, 2020 6:51 PM
To: 'Enhanced Machine Controller (EMC)'
Subject: Re: [Emc-users] Python question
As long as the environment variables are set up correctly,
'Enhanced Machine Controller (EMC)'
Subject: [Emc-users] Python question
I somewhat understand writing a Python program that reads/writes HAL pins
and starting it with halcmd loadusr. Is it possible to start a Python
program from a terminal window and access HAL pins without using halcmd?
I somewhat understand writing a Python program that reads/writes HAL pins and
starting it with halcmd loadusr. Is it possible to start a Python program from
a terminal window and access HAL pins without using halcmd? If yes, what is the
magic incantation? I ask because PathPilot does not appear
16 matches
Mail list logo