7i96s: additional I/O's

More
3 years 8 months ago #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 to join the conversation.

More
1 year 2 months ago #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.

Please Log in to join the conversation.

More
1 year 2 months ago #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?

Please Log in to join the conversation.

More
1 year 2 months ago #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
 

Please Log in to join the conversation.

Time to create page: 0.044 seconds
Powered by Kunena Forum