axis vs touch offs.

More
24 Nov 2021 04:05 - 24 Nov 2021 04:12 #227474 by cakeslob
Replied by cakeslob on topic axis vs touch offs.
yeah it will *work* as an axisrc  , or just do usercommand.py, thats how i was using it.  its a lot more contained and you dont have to modify axis, that. and it is far to crude to go into axis,

there is only 1 problem with it , I dont know how to make the python commands update automatically, so the pins never switch unless you invoke the command.
yeah you have to connect them in post gui hal. I strugle with hal, so i spend most of the time trying to just hook it up to another pin to test it. you can set the pin and the and it flips the bit but it needs fixing on the command I dont know what to do


here gene check it out this is my favorite part of axis linuxcnc.org/docs/html/gui/axis.html#_user_command_file
, download the usercommand_gene.py from my post and pop it into your config folder and add this to your config file under [DISPLAY] , USER_COMMAND_FILE= usercommand_gene.py
Last edit: 24 Nov 2021 04:12 by cakeslob.

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

More
24 Nov 2021 04:16 #227475 by Gene1934
Replied by Gene1934 on topic axis vs touch offs.
I'll take a shot at that tomorrow when I have both eyes open at the same time.
Thank you cakeslob

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <geneslinuxbox.net:6309/gene>

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

More
25 Nov 2021 23:33 - 25 Nov 2021 23:34 #227597 by cmorley
Replied by cmorley on topic axis vs touch offs.
Gene

Here is working sample of radio button selection pins added to axis using the USER_COMMAND_FILE option to add runtime modifications.

Add this file to your config folder.
Add this command to your INI under the DISPLAY heading.

USER_COMMAND_FILE=jogSelectPins.py

There will be two input pins added:
axisui.selectRadioX
axisui.selectRadioZ

This just gets the basics done - there may be details to work out such as joint jogging if you allow that in your config.

Chris
Attachments:
Last edit: 25 Nov 2021 23:34 by cmorley.
The following user(s) said Thank You: cakeslob

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

More
26 Nov 2021 00:40 #227599 by cakeslob
Replied by cakeslob on topic axis vs touch offs.
ohhh it needs to go in user live update, that makes sense,

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

More
26 Nov 2021 01:53 #227612 by Gene1934
Replied by Gene1934 on topic axis vs touch offs.

Gene

Here is working sample of radio button selection pins added to axis using the USER_COMMAND_FILE option to add runtime modifications.

Add this file to your config folder.
Add this command to your INI under the DISPLAY heading.

USER_COMMAND_FILE=jogSelectPins.py

There will be two input pins added:
axisui.selectRadioX
axisui.selectRadioZ

This just gets the basics done - there may be details to work out such as joint jogging if you allow that in your config.

I do it in my .hal.
This did not add the buttons
I put the attachd file in the $config dir. and put the USER_COMMAND_FILE=jogSelectPins.py as the last item under the [DISPLAY|
and ran it, no effect. does it need an addf to one of the threads?
Thanks Chris.
Gene1934

 


Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <geneslinuxbox.net:6309/gene>

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

More
26 Nov 2021 03:12 #227614 by cmorley
Replied by cmorley on topic axis vs touch offs.
It doesnt add buttons. It adds HAL pins that will select the a is selection radio buttons.
Strobe the pin high and the radio button will be selected.

The jogSelectPin.py file needs to be in the same place as the INI file.

Watch the capitals are the same in the file name as the entry in the INI

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

More
26 Nov 2021 08:25 #227632 by Gene1934
Replied by Gene1934 on topic axis vs touch offs.
It doesn't add buttons. It adds HAL pins that will select the a is selection radio buttons
Strobe the pin high and the radio button will be selected.
I knew that, but there has to be a pin to strobe.
The jogSelectPin.py file needs to be in the same place as the INI file.
It is, but no added pins can be seen. I even did a chmod +x on the file,
Watch the capitals are the same in the file name as the entry in the INI
First thing I checked, used copy/paste to create the file content and its names. htop can't see it running.
Perhaps there should be a python shebang at the top?
 

File Attachment:

File Name: 7i90-axis.ini
File Size:5 KB

 

File Attachment:

File Name: JogSelectPins.py
File Size:0 KB

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <geneslinuxbox.net:6309/gene>
Attachments:

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

More
26 Nov 2021 11:44 #227638 by MaHa
Replied by MaHa on topic axis vs touch offs.
If you have a PYVCP panel, (found this in your .ini;  PYVCP    =    pyvcp-panel-tach-status.xml)
the pins show up as:
pyvcp.selectRadioX
pyvcp.selectRadioZ
 

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

More
26 Nov 2021 13:24 #227645 by Gene1934
Replied by Gene1934 on topic axis vs touch offs.
If you have a PYVCP panel, (found this in your .ini; PYVCP = pyvcp-panel-tach-status.xml)
the pins show up as:
pyvcp.selectRadioX
pyvcp.selectRadioZ

And so they do! Thank you

Now to get them hooked up, I assume in postgui.hal, but that requires my presence in front of the machine to turn the dials and test it, but that will take a bit of coffee that's brewing, some clothes and breakfast first. I just woke up. To be greeted by snow on the decks.

Thanks again.

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <geneslinuxbox.net:6309/gene>

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

More
26 Nov 2021 17:45 #227665 by Gene1934
Replied by Gene1934 on topic axis vs touch offs.
Now to get them hooked up, I assume in postgui.hal, but that requires my presence in front of the machine to turn the dials and test it, but that will take a bit of coffee that's brewing, some clothes and breakfast first. I just woke up. To be greeted by snow on the decks.

added these two lines to postgui.hal
net xtoggleout => pyvcp.selectRadioX
net ztoggleout => pyvcp.selectRadioZ
I can see x(or)ztoggleout on halscope but no pulse gets to pyvcp.selectRadioX(or)Z

Do I need an addf somename somethread? IDK how to put that in postgui.hal.
somethread would likely be jogthread as its slower than servothread, but that is
how the huge majority of where 95% of the dial stuff runs. So its plenty fast enough.

Thanks all!

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <geneslinuxbox.net:6309/gene>

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

Time to create page: 0.255 seconds
Powered by Kunena Forum