7i95 more digital outputs on P1

More
28 Nov 2022 11:15 #257836 by itsme
Hi, i need some more digital outputs (eight) on my 7i95.
How can i configure the P1 connectors I/O?
 

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

More
28 Nov 2022 12:51 #257848 by tommylight
Pretty sure the pins on the IDC26 can be used as normal IO as is, just add them in hal as you need them.
Beware that those pins are very sensitive.
You can use "arduino relay boards" as most of those require inputs set to low to activate the realay and pins on the IDC are normaly high.
Do check the manual for this as i did not, i know all the Mesa boards i used have high pins on IDC.
The following user(s) said Thank You: itsme

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

More
28 Nov 2022 13:33 #257854 by itsme
Thank you!
I am aware of the "senitivity".
Can you give me an example for adding them to hal? I do not know the names of the needed ressources...
...
hm2/hm2_7i95.0: IO Pin 041 (P1-01): IOPort
...

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

More
28 Nov 2022 14:36 - 28 Nov 2022 14:39 #257858 by PCW
Replied by PCW on topic 7i95 more digital outputs on P1
With LinuxCNC running:

halcmd show pin hm2 | grep gpio

Will list all the hardware gpio pins.

and:

halcmd show param hm2 | grep gpio

will list all hardware gpio parameters.

Note that all P1 I/O starts as an input an must be explicitly set to output
mode in hal, something like:

setp hm2_7i95.0.gpio.041.is_output true
Last edit: 28 Nov 2022 14:39 by PCW.
The following user(s) said Thank You: tommylight, itsme

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

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