cut and paste from HAL configuration

More
10 years 2 months ago #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 to join the conversation.

More
10 years 2 months ago #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

Please Log in to join the conversation.

More
10 years 2 months ago #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 to join the conversation.

More
10 years 2 months ago #78553 by Todd Zuercher
A little more refinement.

With Linuxcnc running open a command prompt and type
Code:
halcmd -kf | tee pin.txt
press Enter
then type
Code:
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 to join the conversation.

More
10 years 2 months ago #78928 by andypugh
Actually, I think you can just use the single line
Code:
halcmd show pin > pins.txt

Please Log in to join the conversation.

More
10 years 2 months ago #79151 by BigJohnT

andypugh wrote: Actually, I think you can just use the single line

Code:
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 to join the conversation.

Time to create page: 0.102 seconds
Powered by Kunena Forum