7i84U sink/source
- Twitchy88
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 4
13 May 2026 00:02 #346357
by Twitchy88
7i84U sink/source was created by Twitchy88
Hello
Looking for help on where I go to change the 7i84U outputs to sink/source. the manual says I need to change the output parameters, is this done in hal?
Thanks
Looking for help on where I go to change the 7i84U outputs to sink/source. the manual says I need to change the output parameters, is this done in hal?
Thanks
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17913
- Thank you received: 5245
13 May 2026 01:19 #346360
by PCW
Replied by PCW on topic 7i84U sink/source
Yes, it's done with a setp command in the hal file
I don't have the parameter names in front of me, but you can find
them by running:
halcmd show all | grep source
and
halcmd show all | grep sink
when LinuxCNC is running
I don't have the parameter names in front of me, but you can find
them by running:
halcmd show all | grep source
and
halcmd show all | grep sink
when LinuxCNC is running
Please Log in or Create an account to join the conversation.
- Twitchy88
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 4
13 May 2026 01:47 #346361
by Twitchy88
Replied by Twitchy88 on topic 7i84U sink/source
So I write setp hm2_7i96s.0.7i84.0.0.output_sink in the hal file?
I really underestimated the complexity of this.
I really underestimated the complexity of this.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17913
- Thank you received: 5245
13 May 2026 02:08 #346362
by PCW
Replied by PCW on topic 7i84U sink/source
Yes, for example to set the first 8 outputs ( 0..7 ) to sink mode
and the last 8 outputs ( 8..15 ) to source mode, you would put:
setp hm2_7i96s.0.7i84.0.0.output_sink 0x00FF
setp hm2_7i96s.0.7i84.0.0.output_source 0xFF00
In your hal file
and the last 8 outputs ( 8..15 ) to source mode, you would put:
setp hm2_7i96s.0.7i84.0.0.output_sink 0x00FF
setp hm2_7i96s.0.7i84.0.0.output_source 0xFF00
In your hal file
The following user(s) said Thank You: Twitchy88
Please Log in or Create an account to join the conversation.
- Twitchy88
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 4
13 May 2026 02:30 #346363
by Twitchy88
Replied by Twitchy88 on topic 7i84U sink/source
I think i get it now, but can you double check what you wrote isnt backwards.
From the manual:
"Sinking mode is similarly enabled by setting the corresponding sink bit to ‘1' and source bit to ‘0'
From the manual:
"Sinking mode is similarly enabled by setting the corresponding sink bit to ‘1' and source bit to ‘0'
Please Log in or Create an account to join the conversation.
- Twitchy88
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 4
13 May 2026 02:38 #346364
by Twitchy88
Replied by Twitchy88 on topic 7i84U sink/source
i want to make them all sinking i think its this?
setp hm2_7i96s.0.7i84.0.0.output_sink 0xffff
setp hm2_7i96s.0.7i84.0.0.output_source 0x0000
setp hm2_7i96s.0.7i84.0.0.output_sink 0xffff
setp hm2_7i96s.0.7i84.0.0.output_source 0x0000
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 17913
- Thank you received: 5245
13 May 2026 02:53 #346365
by PCW
Replied by PCW on topic 7i84U sink/source
Yes
The following user(s) said Thank You: Twitchy88
Please Log in or Create an account to join the conversation.
- Twitchy88
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 4
13 May 2026 14:00 #346373
by Twitchy88
Replied by Twitchy88 on topic 7i84U sink/source
thanks for your help! I got the outputs working.
Please Log in or Create an account to join the conversation.
- djdelorie
- Offline
- Senior Member
-
Less
More
- Posts: 57
- Thank you received: 10
13 May 2026 19:39 #346380
by djdelorie
Replied by djdelorie on topic 7i84U sink/source
Bit 0 (port 0) is 0x0001 and bit 15 (port 15) is 0x8000, because the "first" bit is on the right.isnt backwards.
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.745 seconds