Mesa 7i76 invert input pin

More
8 years 11 months ago #102534 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:
Code:
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.

Please Log in to join the conversation.

More
8 years 11 months ago #102535 by Todd Zuercher
For the inputs on your 7i76 use the pin
Code:
hm2_5i25.0.7i76.0.0.input-00-not
for the inverted state. (that is inplace of the regular input pin.)

Please Log in to join the conversation.

More
8 years 10 months ago #102553 by kibo
Replied by kibo on topic Mesa 7i76 invert input pin
Thanks a lot.

because I got an error on:
Code:
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:
Code:
# --- 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 to join the conversation.

More
8 years 10 months ago #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.

Please Log in to join the conversation.

More
8 years 10 months ago #102724 by andypugh
Replied by andypugh on topic Mesa 7i76 invert input pin

kibo wrote: I wrote to custom.hal:

Code:
# --- 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.

Please Log in to join the conversation.

More
8 years 10 months ago #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

Please Log in to join the conversation.

Time to create page: 0.087 seconds
Powered by Kunena Forum