Mesa 7i76 invert input pin

More
30 Nov 2017 14:59 #102534 by kibo
kibo created the topic: Mesa 7i76 invert input pin
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:
setp hm2_5i25.0.7i76.0.0.input-00.invert_output true
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.
More
30 Nov 2017 15:05 #102535 by Todd Zuercher
Todd Zuercher replied the topic: Mesa 7i76 invert input pin
For the inputs on your 7i76 use the pin
hm2_5i25.0.7i76.0.0.input-00-not
for the inverted state. (that is inplace of the regular input pin.)
The following user(s) said Thank You: kibo
More
01 Dec 2017 07:48 #102553 by kibo
kibo replied the topic: Mesa 7i76 invert input pin
Thanks a lot.

because I got an error on:
setp hm2_5i25.0.7i76.0.0.input-00-not true
pin 'hm2_5i25.0.7i76.0.0.input-00-not' is not writable

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
More
01 Dec 2017 12:12 #102558 by bevins
bevins replied the 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.
More
06 Dec 2017 17:02 #102724 by andypugh
andypugh replied the topic: Mesa 7i76 invert input pin

kibo wrote: 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
More
07 Dec 2017 12:10 #102737 by BigJohnT
BigJohnT replied the 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
The following user(s) said Thank You: kibo
Moderators: PCWjmelson
Time to create page: 0.101 seconds
Powered by Kunena Forum