On 2/8/23 13:34, Nicklas SB Karlsson wrote:
ons 2023-02-08 klockan 17:52 +0000 skrev andy pugh:
On Wed, 8 Feb 2023 at 17:20, Nicklas SB Karlsson <n...@nksb.eu> wrote:
Is there any method to show value of parameter accessible from g-
code
for examle the numbereded parameters in a glade virtual control
panel?
I thought that it might be a feature of GStat, but it seems not:
http://linuxcnc.org/docs/stable/html/gui/GStat.html
I think that they are available to Python code which can import
emccanon (ie, only remaps)
What you refer to execute code then hal pins are changed. Pretty it is
useful sometimes. Hal pins are easy to connect to gui hal label. What I
asked for was however show values of parameters named and/or numbered
accessible from G-code.
I just added a signal and a custom M1xx possible to execute from G-code
for each parameter and it work. It do however pollute the configuration
a little bit, are a litte bit of a hack and maybe is a little bit
wasteful since signal are run at servo period.
If signal could be connected to parameter directly to gui it would be
preferred method but otherwise it is a small issue.
I thought of that when I added jog dials and such to the rpi3 then
running an 80 yo Sheldon lathe, But it occurred to me that I can only
turn a 100 ppi dial so fast, so I started a slower 200 hz thread, and
put all that stuff in it. I can hit a speed limit but its pretty fast at
max per click speed. I got fawncy and made the size of the jog switch
from .0001" per click to 20 thou per click by way of a pushbutton that
changes the size of the click on a .1,.2,.5,1.0,2.0,5.0,10.0,20 scale by
using the dial to set the scale. And I've a dial per axis on the new
apron. So basically I have restored the hand cranks which were removed
to put the motors on except the jog is moving the motors. Best of both
mechanical and cnc as I can dial up a size on the dro for a final trim.
Now there is an rpi4 in that lathe, which has enough free time to do
most anything out on the net other than run firefox at the same time, FF
is an irq hog and makes the machine stutter.
I'm using the spi interface to a 7i90 card, its taking orders from the
pi at 42 megabaud, and returning results at 25 megabaud over an spi bus
about 1.5" long. That is an excellent iface card, but is direct to the
fpga so a triplet of 7i42TA's are required to protect it from the noise
of a 5 volt world. And with 72 i/o pins, after all that I've still got
way more than I'd need for a tool changer left, 30 some pins are still free.
The thought of building an emco lookalike 5 or 6 position tool changer
has crossed my mind several times. If I ever get conned into making 1000
of something, I'm sure that might happen. But since I'm not looking for
work, those chances are about point triple ought zip.
Take care and stay well everybody.
Nicklas Karlsson
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
.
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, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users