Mesa 7i96 and LinuxCNC 2.8 PnCConf

More
05 Nov 2018 16:11 - 05 Nov 2018 16:13 #120002 by PCW
Actually they are in_not, but there's no need to guess, you can read the hostmot manual page:

man hostmot2

or run a command like:

halcmd show pin | grep gpio

when have LinuxCNC running

The easiest way to verify switch operation (unless you enjoy guessing games) is to read the actual live pin states with halshow and verify that all your switches are working and the polarity is correct
Last edit: 05 Nov 2018 16:13 by PCW.
The following user(s) said Thank You: tommylight, snugglylovemuffin

Please Log in or Create an account to join the conversation.

More
05 Nov 2018 16:15 #120004 by tommylight
Sorry i was not aware of the change and i know it works with - as i am using them on at least 3 installs right now.
Thanks for the heads up.

Please Log in or Create an account to join the conversation.

More
05 Nov 2018 16:27 #120006 by PCW
Mesa GPIO has always used _ for in_not

Please Log in or Create an account to join the conversation.

More
05 Nov 2018 18:02 #120016 by snugglylovemuffin
Why oh why is linuxcnc so picky?

Please Log in or Create an account to join the conversation.

More
05 Nov 2018 18:26 - 05 Nov 2018 18:27 #120019 by snugglylovemuffin
I'm getting an error that says "hm2_7i96.0.gpio.034.in-not" does not exist

@PCW, what's my move here?
Last edit: 05 Nov 2018 18:27 by snugglylovemuffin.

Please Log in or Create an account to join the conversation.

More
05 Nov 2018 18:29 #120020 by snugglylovemuffin

I'm getting an error that says "hm2_7i96.0.gpio.034.in-not" does not exist

@PCW I've changed it back to in_not and will try halshow again

Please Log in or Create an account to join the conversation.

More
05 Nov 2018 18:29 - 05 Nov 2018 18:31 #120021 by PCW

Why oh why is linuxcnc so picky?


Because if it was not picky/precise about pin names you could not trust its behavior.

Its easy to get pin/parameter/signal names right, just use the available tools to list the actual pin/parameter names.

For example to list all pins/parameters and functions, you can runs this command:

halcmd show all

to show just 7I96 pins/parameters you could type

halcmd show all | grep 7i96

You can also re-direct the output of these commands to a "donor" file to copypast from, so you never need to actually type pin/parameter names:

halcmd show pin | grep 7i96 > 7i96pins.txt
Last edit: 05 Nov 2018 18:31 by PCW.
The following user(s) said Thank You: snugglylovemuffin

Please Log in or Create an account to join the conversation.

More
05 Nov 2018 18:48 #120024 by andypugh
Or halcmd show all *7i86* (halcmd accepts wildcards)

Please Log in or Create an account to join the conversation.

More
05 Nov 2018 19:14 #120027 by PCW
Unfortunately that does not always work, not sure why

Please Log in or Create an account to join the conversation.

More
05 Nov 2018 23:49 #120057 by snugglylovemuffin
Pulled up halshow, put pins 34-39 on "watch" and actuated the limit; no indication of anything happening. I can run 24v into TB3 1-11 to switch low right? Just asking because there doesn't seem to be much of a reason for the limits to not work.

hm2_7i96.0.gpio.034.in_not is the proper way to wire the pin to switch low in mesa, yes?

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.319 seconds
Powered by Kunena Forum