cut and paste from HAL configuration

More
09 Aug 2016 22:09 #78543 by jwsigler
I am setting up linuxcnc on my mill and going through the HAL configuration. I want to compare the hal pin information in hal configuration against what I am putting in my hal file. I am more of a pen and paper guy so I would like to cut and paste the pin info from HAL configuration into a text file and then print it out. Anyone know if it is possible to cut and paste the information displayed in the HAL configuration window? I was able to highlight the text, but a right click does not bring up any cut/paste options.

Thanks

Please Log in or Create an account to join the conversation.

More
09 Aug 2016 22:17 #78545 by tommylight
No it does not work, just gave it a try, but you can do this all day long, see below:


Just press and hold ALT and press PrtScr ( print screen, on all keyboards above the insert/home/page up ).
Regards,
Tom
Attachments:

Please Log in or Create an account to join the conversation.

More
10 Aug 2016 01:13 #78552 by Todd Zuercher
You can open a command prompt while Linuxcnc is running and type
halcmd -kf
then
show pin
to print a list of all the pins.

Please Log in or Create an account to join the conversation.

More
10 Aug 2016 01:46 #78553 by Todd Zuercher
A little more refinement.

With Linuxcnc running open a command prompt and type
halcmd -kf | tee pin.txt
press Enter
then type
show pin
press Enter
Exit halcmd
Now there will be a file in your home dir (or where ever you opened your command prompt) named pin.txt
This text file will contain all the pin info that you can look at in the show hal window.

Please Log in or Create an account to join the conversation.

More
17 Aug 2016 12:51 #78928 by andypugh
Actually, I think you can just use the single line
halcmd show pin > pins.txt

Please Log in or Create an account to join the conversation.

More
20 Aug 2016 17:22 #79151 by BigJohnT

Actually, I think you can just use the single line
halcmd show pin > pins.txt


That is correct, to expand a bit, open a terminal after starting LinuxCNC and type the above to get a text file with a list of all pins.
More "show" commands are located in the documents.
linuxcnc.org/docs/2.7/html/hal/tutorial.html#_examining_the_hal

JT

Please Log in or Create an account to join the conversation.

Time to create page: 0.110 seconds
Powered by Kunena Forum