Re: [Emc-users] HAL question

2022-12-11 Thread John Dammeyer
> From: Nicklas SB Karlsson [mailto:n...@nksb.eu]
> 
> Yes the manual say so. If you choose menu "Machine" item "Show hal
> configuration" it is also possible to find which pins are available.

Thanks.  I'd forgotten I could look at them that way.  Looking at the machine 
it turns out the compliment is available.  And reminds me why, as a software 
type,  I dislike the hal nomenclature so much. 

This is a minus sign '-' and yet it litters hal descriptions as a separator 
when the '_' will do just as well.  
Eg:  "net min-x <=  hm2_5i25.0.7i76.0.0.input-00-not"

Seems the above example steered me in the wrong direction and the inverse is 
available as "in_not".  I'll rewrite where I can to use '_'.
"net toolsense_in <= hm2_7i92.0.gpio.030.in_not"

Now to wire up the tool setter.  Hopefully no magic smoke.
John

> 
> s�n 2022-12-11 klockan 07:35 -0600 skrev John Figie:
> > "Do I just add -not to the end?
> > net toolsense-in <= hm2_7i92.0.gpio.030.in-not"
> >
> > I think that is the way to do it. That is how it works with my 7i80
> >
> > http://linuxcnc.org/docs/stable/html/man/man9/hostmot2.9.html
> >
> >
> >
> > On Sat, Dec 10, 2022, 10:34 PM John Dammeyer 
> > wrote:
> >
> > > One of the relies by Todd Zeurcher on the forum
> > > https://forum.linuxcnc.org/27-driver-boards/33646-mesa-7i76-invert-input-pin
> > > states to invert the input
> > > hm2_5i25.0.7i76.0.0.input-00-not
> > >
> > > I'm using the 7i92 and my inputs are referred to in this way.
> > > net toolsense-in <= hm2_7i92.0.gpio.030.in
> > >
> > > Do I just add -not to the end?
> > > net toolsense-in <= hm2_7i92.0.gpio.030.in-not
> > >
> > >
> > > Thanks
> > > John
> > >
> > > ___
> > > Emc-users mailing list
> > > Emc-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/emc-users
> > >
> > John Figie
> >
> > ___
> > 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


Re: [Emc-users] HAL question

2022-12-11 Thread Nicklas SB Karlsson
Yes the manual say so. If you choose menu "Machine" item "Show hal
configuration" it is also possible to find which pins are available.

sön 2022-12-11 klockan 07:35 -0600 skrev John Figie:
> "Do I just add -not to the end?
> net toolsense-in <= hm2_7i92.0.gpio.030.in-not"
> 
> I think that is the way to do it. That is how it works with my 7i80
> 
> http://linuxcnc.org/docs/stable/html/man/man9/hostmot2.9.html
> 
> 
> 
> On Sat, Dec 10, 2022, 10:34 PM John Dammeyer 
> wrote:
> 
> > One of the relies by Todd Zeurcher on the forum
> > https://forum.linuxcnc.org/27-driver-boards/33646-mesa-7i76-invert-input-pin
> > states to invert the input
> > hm2_5i25.0.7i76.0.0.input-00-not
> > 
> > I'm using the 7i92 and my inputs are referred to in this way.
> > net toolsense-in <= hm2_7i92.0.gpio.030.in
> > 
> > Do I just add -not to the end?
> > net toolsense-in <= hm2_7i92.0.gpio.030.in-not
> > 
> > 
> > Thanks
> > John
> > 
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> > 
> John Figie
> 
> ___
> 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


Re: [Emc-users] HAL question

2022-12-11 Thread Sam Sokolik
This is where halcmd comes in really handy..  When linuxcnc is launched -
bring up a terminal and type

halcmd -kf
than you can do a
show pin hm2[tab] enter.  This will show you all the pins.
or if there are parameters to set things
show param hm2[tab] enter

or you can bring up 'show hal configuration' usually from the machine menu.

I use halcmd all the time to test nets and stuff..
sam.

On Sun, Dec 11, 2022 at 7:39 AM John Figie  wrote:

> "Do I just add -not to the end?
> net toolsense-in <= hm2_7i92.0.gpio.030.in-not"
>
> I think that is the way to do it. That is how it works with my 7i80
>
> http://linuxcnc.org/docs/stable/html/man/man9/hostmot2.9.html
>
>
>
> On Sat, Dec 10, 2022, 10:34 PM John Dammeyer 
> wrote:
>
> > One of the relies by Todd Zeurcher on the forum
> >
> https://forum.linuxcnc.org/27-driver-boards/33646-mesa-7i76-invert-input-pin
> > states to invert the input
> > hm2_5i25.0.7i76.0.0.input-00-not
> >
> > I'm using the 7i92 and my inputs are referred to in this way.
> > net toolsense-in <= hm2_7i92.0.gpio.030.in
> >
> > Do I just add -not to the end?
> > net toolsense-in <= hm2_7i92.0.gpio.030.in-not
> >
> >
> > Thanks
> > John
> >
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> >
> John Figie
>
> ___
> 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


Re: [Emc-users] HAL question

2022-12-11 Thread John Figie
"Do I just add -not to the end?
net toolsense-in <= hm2_7i92.0.gpio.030.in-not"

I think that is the way to do it. That is how it works with my 7i80

http://linuxcnc.org/docs/stable/html/man/man9/hostmot2.9.html



On Sat, Dec 10, 2022, 10:34 PM John Dammeyer  wrote:

> One of the relies by Todd Zeurcher on the forum
> https://forum.linuxcnc.org/27-driver-boards/33646-mesa-7i76-invert-input-pin
> states to invert the input
> hm2_5i25.0.7i76.0.0.input-00-not
>
> I'm using the 7i92 and my inputs are referred to in this way.
> net toolsense-in <= hm2_7i92.0.gpio.030.in
>
> Do I just add -not to the end?
> net toolsense-in <= hm2_7i92.0.gpio.030.in-not
>
>
> Thanks
> John
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
John Figie

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


[Emc-users] HAL question

2022-12-10 Thread John Dammeyer
One of the relies by Todd Zeurcher on the forum 
https://forum.linuxcnc.org/27-driver-boards/33646-mesa-7i76-invert-input-pin 
states to invert the input
hm2_5i25.0.7i76.0.0.input-00-not
 
I'm using the 7i92 and my inputs are referred to in this way.
net toolsense-in <= hm2_7i92.0.gpio.030.in
 
Do I just add -not to the end?
net toolsense-in <= hm2_7i92.0.gpio.030.in-not
 
 
Thanks
John

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


Re: [Emc-users] Hal question

2011-12-12 Thread Spiderdab
Il giorno lun, 12/12/2011 alle 14.38 +0100, Spiderdab ha scritto:
> Il giorno lun, 12/12/2011 alle 13.09 +, andy pugh ha scritto:
> > On 12 December 2011 12:55, Spiderdab <77...@tiscali.it> wrote:
> > 
> > > Yes i know this config, but i don't think it will work for me, since in
> > > my config halui.jog-speed is linked to joystick-slider.
> > 
> > Link the output of the joystick slider to the mux input. (rather than
> > the constant "setp" lines).
> > In your case you can use a mux2 rather than mux4 .
> > 
..and, ofcourse, i tried what you suggest, using mux2 and it works
perfectly, adding only one function.

Thank you Andy.
Davide.


> Yes, it should be nicer than my solution.
> i did in this way, it's complicated, but it works. attach here just for
> who's curious.
> --
> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
> Microsoft is holding a special Learn Windows Azure training event for 
> developers. It will provide a great way to learn Windows Azure and what it 
> provides. You can attend the event by watching it streamed LIVE online.  
> Learn more at http://p.sf.net/sfu/ms-windowsazure
> ___ Emc-users mailing list 
> Emc-users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/emc-users



--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Hal question

2011-12-12 Thread Spiderdab
Il giorno lun, 12/12/2011 alle 13.09 +, andy pugh ha scritto:
> On 12 December 2011 12:55, Spiderdab <77...@tiscali.it> wrote:
> 
> > Yes i know this config, but i don't think it will work for me, since in
> > my config halui.jog-speed is linked to joystick-slider.
> 
> Link the output of the joystick slider to the mux input. (rather than
> the constant "setp" lines).
> In your case you can use a mux2 rather than mux4 .
> 
Yes, it should be nicer than my solution.
i did in this way, it's complicated, but it works. attach here just for
who's curious.
loadusr -W hidcomp -ini tetrapod.ini thrustmaster.hid

loadrt scale count=4
loadrt mult2 count=1
loadrt conv_bit_s32 count=1
loadrt conv_s32_float count=1

addf scale.0 servo-thread
addf scale.1 servo-thread
addf scale.2 servo-thread
addf scale.3 servo-thread
addf mult2.0 servo-thread
addf conv-bit-s32.0 servo-thread
addf conv-s32-float.0 servo-thread

setp scale.1.gain 1
setp scale.1.offset 0
setp scale.2.gain 1
setp scale.2.offset 0
setp scale.3.gain 1
setp scale.3.offset 0

net joy-scale-in scale.0.in <= hidcomp.0.Slider.fvalue
setp scale.0.gain 1
setp scale.0.offset 1

## prova patch mult2 con button1 tramite conversione in s32 e poi in float.
net convert-bit conv-bit-s32.0.in <= hidcomp.0.Button.1.in
net convert-float conv-bit-s32.0.out => conv-s32-float.0.in
net enable-button conv-s32-float.0.out => mult2.0.in0
net scaled-speed-slider mult2.0.in1 <= scale.0.out

net joy-speed halui.jog-speed <= mult2.0.out

setp halui.jog-deadband 0.002

## segue il patch degli assi
net joy-x-jog scale.1.in <= hidcomp.0.X.fvalue
net joy-y-jog scale.2.in <= hidcomp.0.Y.fvalue
net joy-z-jog scale.3.in <= hidcomp.0.Rz.fvalue

net joy-x-out-jog halui.jog.0.analog <= scale.1.out
net joy-y-out-jog halui.jog.1.analog <= scale.2.out
net joy-z-out-jog halui.jog.2.analog <= scale.3.out

net joy-machine-off halui.machine.off <= hidcomp.0.Button.2.in
net joy-teleop halui.mode.teleop <= hidcomp.0.Button.12.in
net joy-joint halui.mode.joint <= hidcomp.0.Button.11.in
net joy-home-all halui.home-all <= hidcomp.0.Button.4.in
--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Hal question

2011-12-12 Thread andy pugh
On 12 December 2011 12:55, Spiderdab <77...@tiscali.it> wrote:

> Yes i know this config, but i don't think it will work for me, since in
> my config halui.jog-speed is linked to joystick-slider.

Link the output of the joystick slider to the mux input. (rather than
the constant "setp" lines).
In your case you can use a mux2 rather than mux4 .

-- 
atp
The idea that there is no such thing as objective truth is, quite simply, wrong.

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Hal question

2011-12-12 Thread Spiderdab
Il giorno lun, 12/12/2011 alle 12.28 +, andy pugh ha scritto:
> On 12 December 2011 12:19, Spiderdab <77...@tiscali.it> wrote:
> 
> > What i need to do is to enable joystick jog only when button1 is
> > pressed,to avoid accidental movements.
> 
> Have a look at section 5 here:
> http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Simple_Remote_Pendant
> I have my joypad set up so that the top back button is fast, the
> bottom is slow, and both is very slow. It works well.
> 
Yes i know this config, but i don't think it will work for me, since in
my config halui.jog-speed is linked to joystick-slider.



--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Hal question

2011-12-12 Thread andy pugh
On 12 December 2011 12:19, Spiderdab <77...@tiscali.it> wrote:

> What i need to do is to enable joystick jog only when button1 is
> pressed,to avoid accidental movements.

Have a look at section 5 here:
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Simple_Remote_Pendant
I have my joypad set up so that the top back button is fast, the
bottom is slow, and both is very slow. It works well.

-- 
atp
The idea that there is no such thing as objective truth is, quite simply, wrong.

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Hal question

2011-12-12 Thread Spiderdab
Hi.
What i need to do is to enable joystick jog only when button1 is
pressed,to avoid accidental movements.
I think to do it with an if statement, but don't know how to implement
into hal commands.
I think i cannot use and2, because button is a bit, while value from the
stick is a float.
The only way that comes to my mind is to use mult2, using as inputs the
float value from the stick, multiplied by 0 or 1 if the button is
pressed or not.
Can you tell me what's the right way to do it?

Thanks, Davide.


--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] HAL question

2010-01-21 Thread Chris Reynolds
I've been running emc2 now for about four or five months. Other than get it 
installed, set up my basic 3 axis machine, and run my nc files, I really 
haven't done much experimenting with emc2.  As I venture more and more into the 
use of it I of course want to know more about it and it's capabilities. I've 
been reading up on the HAL manual online today and I can see where to really 
expand the capabilities of a machine understanding HAL is of great importance. 

At some point I'd like my new cnc machine to have an automatic tool changer, 
touch probe, and I'm sure at some point I'd like to venture into using it to 
run other machines such as my lathe. 

It seems that the capabilities of emc2 are pretty far reaching, and I would 
assume that it's capable of doing things such as releasing a tool from the 
spindle using a solenoid to move the collet drawbar.  I'm also curious just how 
many things can emc2 control? I'm sure there's a limit to the number of things 
that can be controlled with it. 

I'm in the process of retrofitting my mini mill with cnc which will be run by 
emc2. I'm really looking forward to getting it going. I'm also going to be 
using linisteppers this time, which is a first for me also. 

Am I correct in understanding that emc2 can work like a PLC?

 Chris 


http://www.blowyourbrassoff.com
http://www.builderofstuff.com
http://www.myspace.com/builderofstuff
http://www.myspace.com/builderofbluesharps


Just a man, his shop, and a long list of unfinished projects...
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users