7i96s: additional I/O's

More
31 Jan 2023 19:13 #263386 by PCW
Replied by PCW on topic 7i96s: additional I/O's
2.8.4 works with the 7I96S

The inm module is described in the hostmot2 manual page

The inm module includes simple debouncing and each pin can be set to slow
or fast (setting the "slow" pin true selects the slow mode, false selects fast mode)

Default debounce settings are 250 usec for fast and 25 ms for slow
(these are changeable)

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

  • xenon-alien
  • xenon-alien's Avatar
  • Away
  • Premium Member
  • Premium Member
More
06 Aug 2025 10:47 #332954 by xenon-alien
Replied by xenon-alien on topic 7i96s: additional I/O's
Hello.
I bought a 5v relay module.
The current draw on it's input is ~5mA. (negative HIGH - turns on the relay)
I 'd like to operate them with the P1 port.
How can I do it correctly?
Because now i have no positive result.
The firmware with axes indexes on P1 (1-5 pin) LCNC 2.9.4. The wires has 47 Om resistors in series.
Attachments:

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

  • xenon-alien
  • xenon-alien's Avatar
  • Away
  • Premium Member
  • Premium Member
More
06 Aug 2025 11:06 #332955 by xenon-alien
Replied by xenon-alien on topic 7i96s: additional I/O's
Found a mistake.
Now connected correctly 19 21 23 25 pin (47 48 49 50).
When the LCNC not running, all LEDs are OFF on the relay module.
When the LCNC is running, all LEDs are ON on the relay module. (relays turns on)
Changing bit not turns off the relay and LEDs.
Can it be solved somehow?
Attachments:

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

  • xenon-alien
  • xenon-alien's Avatar
  • Away
  • Premium Member
  • Premium Member
More
06 Aug 2025 12:02 - 07 Aug 2025 08:53 #332957 by xenon-alien
Replied by xenon-alien on topic 7i96s: additional I/O's
Finally figured it out
I had to make true "is_opendrain" and "invert_output".

Alltogether:
setp [HMOT](CARD0).gpio.050.is_output true
setp [HMOT](CARD0).gpio.050.is_opendrain true
setp [HMOT](CARD0).gpio.050.invert_output true
 
Last edit: 07 Aug 2025 08:53 by xenon-alien. Reason: additional info
The following user(s) said Thank You: tommylight

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

Moderators: PCWjmelson
Time to create page: 0.066 seconds
Powered by Kunena Forum