7i84 inverting output Pins
29 Jun 2019 13:30 #138175
by 3D-Master
7i84 inverting output Pins was created by 3D-Master
Hello,
is it normal that "watch" in halshow doesnt show you an inverted pin? (normally low but inverted so it should be high, but it shows the pin as low).
i have Linuxcnc 2.7.14
thanks
is it normal that "watch" in halshow doesnt show you an inverted pin? (normally low but inverted so it should be high, but it shows the pin as low).
i have Linuxcnc 2.7.14
thanks
Please Log in or Create an account to join the conversation.
29 Jun 2019 18:17 #138187
by PCW
Replied by PCW on topic 7i84 inverting output Pins
The 7I84 (and all sserial devices) have inverted input pins available
but no inverted output pins. Output pins are usually active high ( high=1=true=ON )
but no inverted output pins. Output pins are usually active high ( high=1=true=ON )
Please Log in or Create an account to join the conversation.
30 Jun 2019 19:49 #138248
by 3D-Master
Replied by 3D-Master on topic 7i84 inverting output Pins
im sorry, i ment when you set the invert-parameter for an output pin to "true" then the output will be inverted (i measured it with a multimeter) but Halshow will still show the output pin as "low".
Please Log in or Create an account to join the conversation.
30 Jun 2019 19:57 #138250
by rodw
Replied by rodw on topic 7i84 inverting output Pins
There is always the invert component which will do what you want.
linuxcnc.org/docs/devel/html/man/man9/invert.9.html
linuxcnc.org/docs/devel/html/man/man9/invert.9.html
Please Log in or Create an account to join the conversation.
30 Jun 2019 20:08 - 30 Jun 2019 20:10 #138252
by PCW
That's correct, invert_output=true means:
hardware_output_pin <= not (hal_pin)
The hal_pin is not changed
Replied by PCW on topic 7i84 inverting output Pins
im sorry, i ment when you set the invert-parameter for an output pin to "true" then the output will be inverted (i measured it with a multimeter) but Halshow will still show the output pin as "low".
That's correct, invert_output=true means:
hardware_output_pin <= not (hal_pin)
The hal_pin is not changed
Last edit: 30 Jun 2019 20:10 by PCW. Reason: clarify
The following user(s) said Thank You: 3D-Master
Please Log in or Create an account to join the conversation.
Time to create page: 0.178 seconds