wiring MPGs to 7i96s

More
26 Sep 2022 12:57 - 26 Sep 2022 13:03 #252760 by Masiwood123
Hello, Can someone help to edit the attached picture with the MPG connections to the meat inputs of the 7i96s, as well as insert which lines should be entered in the Hal in order to  work 2 MPG, both together(like manual lathe without axis selector) for the X and Z axis? Thanks 
Attachments:
Last edit: 26 Sep 2022 13:03 by Masiwood123.

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

More
26 Sep 2022 14:40 #252769 by PCW
Replied by PCW on topic wiring MPGs to 7i96s
MPG1-A 7I96S IN0
MPG1-B 7I96S IN1
MPG2-A 7I96S IN2
MPG2-B 7I96S IN3
GND 7I96 IN COMMON

This does mean the other 7I96S inputs are sinking inputs
(pull high to activate)
The following user(s) said Thank You: Masiwood123

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

More
26 Sep 2022 14:58 #252772 by Masiwood123
Replied by Masiwood123 on topic wiring MPGs to 7i96s
  If this is correct, then I understand, I tried to search the forum for some Hal examples of assigning functions to inputs for MPG, but it confuses me, considering that the axis selector is used almost everywhere, I don't need mpg for positioning, more for manual synchronized work of the x and z axes. Do you have an example of how it should be added to Hal, because in pnccnfg and not even in mesact, as far as I've seen, there is no input allocation , assign for MPG?
Attachments:

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

More
26 Sep 2022 15:35 #252777 by PCW
Replied by PCW on topic wiring MPGs to 7i96s
You would need to connect:

hm2_7i96s.0.inm.00.enc0-count
hm2_7i96s.0.inm.00.enc1-count

to the appropriate axis jog-counts pins
The following user(s) said Thank You: Masiwood123

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

More
26 Sep 2022 16:30 #252784 by Masiwood123
Replied by Masiwood123 on topic wiring MPGs to 7i96s
linuxcnc.org/docs/devel/html/examples/mpg.html
do i need to include all this in the config including ilowpass, mux4(what is that), scale..etc

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

More
26 Sep 2022 17:34 #252790 by PCW
Replied by PCW on topic wiring MPGs to 7i96s
Yes, the only thing different is the source pin of the counts
The following user(s) said Thank You: Masiwood123

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

More
26 Sep 2022 17:42 #252791 by HansU
Replied by HansU on topic wiring MPGs to 7i96s

linuxcnc.org/docs/devel/html/examples/mpg.html
do i need to include all this in the config including ilowpass, mux4(what is that), scale..etc


If you want to switch between different scalings of the MPG, or want to use one MPG for different axes, then yes.
Ilowpass you may need in every case for smoother jogging.
The following user(s) said Thank You: Masiwood123

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

More
26 Sep 2022 18:38 #252794 by Masiwood123
Replied by Masiwood123 on topic wiring MPGs to 7i96s
I would like the x encoder to follow jog velocity which is set in gui(not with increments 0.1,10,100,(physical selector) Z axis the same that.. also i dont need it for positioning, want it too works always(I mean while gcode not in progress).. also I would like both axes to work at the same time also I don't need any selector. I will have some frequent small operations on the lathe I am making and I would like to be able to do it manually, not via gcode, what else do I want I give a child or an old father to play with the hands and make something (those who don't know what a volt or watt is, and haven't even heard of gcode yet:)))Thank you all

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

More
26 Sep 2022 18:47 #252795 by Masiwood123
Replied by Masiwood123 on topic wiring MPGs to 7i96s

something like this

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

More
28 Sep 2022 12:52 #252933 by HansU
Replied by HansU on topic wiring MPGs to 7i96s
Then you don't need most of these examples. You only have to connect your pins
hm2_7i96s.0.inm.00.enc0-count
hm2_7i96s.0.inm.00.enc1-count

to
axis.x.jog-counts
axis.z.jog-counts

And set theses pins:
axis.x.jog-enable
axis.z.jog-enable

And set a scale:
axis.x.jog-scale
axis.z.jog-scale

But I would recommend to use the ilowpass for smoother jogging like in the second example. But you need two instances of that component.
The following user(s) said Thank You: Masiwood123

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

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