Mesa 7i76 invert input pin
30 Nov 2017 14:59 #102534
by kibo
Mesa 7i76 invert input pin was created by kibo
Hi
I use Mesa 7i76 and limit switches in Normally closed wiring = when I start machine all switches are closed.
I would like to invert pin in HAL config file.
In file configs/custom.hal a wrote:but it does not work.
hm2_5i25.0.7i76.0.0.input-00 is the pin connected to min-x switch
Could you please help me? I am sorry I am beginer with LinuxCNC.
Thanks a lot.
I use Mesa 7i76 and limit switches in Normally closed wiring = when I start machine all switches are closed.
I would like to invert pin in HAL config file.
In file configs/custom.hal a wrote:
setp hm2_5i25.0.7i76.0.0.input-00.invert_output true
hm2_5i25.0.7i76.0.0.input-00 is the pin connected to min-x switch
Could you please help me? I am sorry I am beginer with LinuxCNC.
Thanks a lot.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1440
30 Nov 2017 15:05 #102535
by Todd Zuercher
Replied by Todd Zuercher on topic Mesa 7i76 invert input pin
For the inputs on your 7i76 use the pinfor the inverted state. (that is inplace of the regular input pin.)
hm2_5i25.0.7i76.0.0.input-00-not
The following user(s) said Thank You: kibo
Please Log in or Create an account to join the conversation.
01 Dec 2017 07:48 #102553
by kibo
Replied by kibo on topic Mesa 7i76 invert input pin
Thanks a lot.
because I got an error on:pin 'hm2_5i25.0.7i76.0.0.input-00-not' is not writable
I wrote to custom.hal:
because I got an error on:
setp hm2_5i25.0.7i76.0.0.input-00-not true
I wrote to custom.hal:
# --- MIN-X ---
unlinkp hm2_5i25.0.7i76.0.0.input-00
net min-x <= hm2_5i25.0.7i76.0.0.input-00-not
Please Log in or Create an account to join the conversation.
01 Dec 2017 12:12 #102558
by bevins
Replied by bevins on topic Mesa 7i76 invert input pin
Just curious, why would you want to logiscally have a critical input change state in software if you can even do that?
Why not create an output and tie it across the input and control the output with software. I do that to get by a limit switch during tool change. But I have another down the line for security also.
Why not create an output and tie it across the input and control the output with software. I do that to get by a limit switch during tool change. But I have another down the line for security also.
Please Log in or Create an account to join the conversation.
06 Dec 2017 17:02 #102724
by andypugh
It is probably better to simply connect the correct pin in the normal HAL and accept that you won't be using Stepconf/PnCConf again, or run the wizard and invert it there.
Replied by andypugh on topic Mesa 7i76 invert input pin
I wrote to custom.hal:
# --- MIN-X --- unlinkp hm2_5i25.0.7i76.0.0.input-00 net min-x <= hm2_5i25.0.7i76.0.0.input-00-not
It is probably better to simply connect the correct pin in the normal HAL and accept that you won't be using Stepconf/PnCConf again, or run the wizard and invert it there.
The following user(s) said Thank You: kibo
Please Log in or Create an account to join the conversation.
07 Dec 2017 12:10 #102737
by BigJohnT
Replied by BigJohnT on topic Mesa 7i76 invert input pin
Instead of guessing at pin names get a list of all pins like this
To get a list of all the Mesa pins make sure field power is on then open
a terminal and do the following. ~$ and halcmd: are not to be typed they
are the terminal prompts. If you add a config to the hm2_pci line it will
change the pins that show up.
~$ halrun
halcmd: loadrt hostmot2
halcmd: loadrt hm2_pci
halcmd: show pin > pins.txt
JT
To get a list of all the Mesa pins make sure field power is on then open
a terminal and do the following. ~$ and halcmd: are not to be typed they
are the terminal prompts. If you add a config to the hm2_pci line it will
change the pins that show up.
~$ halrun
halcmd: loadrt hostmot2
halcmd: loadrt hm2_pci
halcmd: show pin > pins.txt
JT
The following user(s) said Thank You: kibo
Please Log in or Create an account to join the conversation.
Time to create page: 0.174 seconds