Tormach installs their stuff into a directory named for the current version
of Pathpilot and then creates a link to it from ~/tmc  With help from a very
knowledgeable Tormach user I learned that if you enter:

        cd ~/tmc
        source ./scripts/rip-environment.sh

you can then run halcmd in a terminal window

Thanks for the hint!

-----Original Message-----
From: Frank Tkalcevic <fr...@franksworkshop.com.au> 
Sent: December 15, 2020 8:46 PM
To: 'Enhanced Machine Controller (EMC)' <emc-users@lists.sourceforge.net>
Subject: Re: [Emc-users] Python question

I run in-place, so I run...

. $EMC_HOME/scripts/rip-environment

Before each run.

If you are running PathPilot, I'm guessing your distribution is from
Tormach, so the environment variables may already be set up.  

Just try it.  If it doesn't work, you should get error messages.



-----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 Message-----
From: Frank Tkalcevic <fr...@franksworkshop.com.au>
Sent: December 15, 2020 6:51 PM
To: 'Enhanced Machine Controller (EMC)' <emc-users@lists.sourceforge.net>
Subject: Re: [Emc-users] Python question

As long as the environment variables are set up correctly, you should just
be able to run the python app from the command line without "halcmd
loadusr".


-----Original Message-----
From: ken.stra...@gmail.com [mailto:ken.stra...@gmail.com]
Sent: Wednesday, 16 December 2020 7:54 AM
To: '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? If
yes, what is the magic incantation? I ask because PathPilot does not appear
to include halcmd.



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to