7i95 more digital outputs on P1
- itsme
- Offline
- Senior Member
-
Less
More
- Posts: 78
- Thank you received: 21
28 Nov 2022 11:15 #257836
by itsme
7i95 more digital outputs on P1 was created by itsme
Hi, i need some more digital outputs (eight) on my 7i95.
How can i configure the P1 connectors I/O?
How can i configure the P1 connectors I/O?
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20197
- Thank you received: 6874
28 Nov 2022 12:51 #257848
by tommylight
Replied by tommylight on topic 7i95 more digital outputs on P1
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.
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.
- itsme
- Offline
- Senior Member
-
Less
More
- Posts: 78
- Thank you received: 21
28 Nov 2022 13:33 #257854
by itsme
Replied by itsme on topic 7i95 more digital outputs on P1
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...
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.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18547
- Thank you received: 5093
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
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: PCW, jmelson
Time to create page: 0.061 seconds