7i84U sink/source

More
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

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

More
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

 

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

More
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.

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

More
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
 
The following user(s) said Thank You: Twitchy88

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

More
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'

 

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

More
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
 

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

More
13 May 2026 02:53 #346365 by PCW
Replied by PCW on topic 7i84U sink/source
Yes

 

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

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