Best HAL function 2 contol bits for S32 in, 1 of 4 out?
- slowpoke
- Offline
- Elite Member
-
Less
More
- Posts: 203
- Thank you received: 28
07 Jul 2025 20:21 #331485
by slowpoke
Best HAL function 2 contol bits for S32 in, 1 of 4 out? was created by slowpoke
I have two rotary switches, each switch has 2 outputs driving inputs on a MESA card as 00,01,10,11
Switch #1 is used to select MPG increment 0, 0.0001", 0.001", 0.01" I'm using a MUX4 to control that. No problem with this.
Switch#2 is for selection of where the MPG ticks ( net encoder-counts <= hm2_7i96s.0.inm.00.enc1-count ),gets routed, so to either:
X, Z, C (Compound), or N(None), so....
axis.x.jog-counts
axis.z.jog-counts
anglejog.counts-in
or to nowhere when position N is selected
Switch #1 is used to select MPG increment 0, 0.0001", 0.001", 0.01" I'm using a MUX4 to control that. No problem with this.
Switch#2 is for selection of where the MPG ticks ( net encoder-counts <= hm2_7i96s.0.inm.00.enc1-count ),gets routed, so to either:
X, Z, C (Compound), or N(None), so....
axis.x.jog-counts
axis.z.jog-counts
anglejog.counts-in
or to nowhere when position N is selected
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18856
- Thank you received: 5208
07 Jul 2025 20:42 #331489
by PCW
Replied by PCW on topic Best HAL function 2 contol bits for S32 in, 1 of 4 out?
Typically this is done by by connecting the MPG count to all axis
and selectively enabling jogging on the desired axis
and selectively enabling jogging on the desired axis
The following user(s) said Thank You: slowpoke
Please Log in or Create an account to join the conversation.
Time to create page: 0.095 seconds