wiring MPGs to 7i96s

More
4 years 1 month ago #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 

Attachment not found

Please Log in to join the conversation.

More
4 years 1 month ago #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)

Please Log in to join the conversation.

More
4 years 1 month ago #252772 by Masiwood123
Replied by Masiwood123 on topic wiring MPGs to 7i96s
 

Attachment not found

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?

Please Log in to join the conversation.

More
4 years 1 month ago #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

Please Log in to join the conversation.

More
4 years 1 month ago #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 to join the conversation.

More
4 years 1 month ago #252790 by PCW
Replied by PCW on topic wiring MPGs to 7i96s
Yes, the only thing different is the source pin of the counts

Please Log in to join the conversation.

More
4 years 1 month ago #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.

Please Log in to join the conversation.

More
4 years 1 month ago #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 to join the conversation.

More
4 years 1 month ago #252795 by Masiwood123
Replied by Masiwood123 on topic wiring MPGs to 7i96s

something like this

Please Log in to join the conversation.

More
4 years 1 month ago #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
Code:
hm2_7i96s.0.inm.00.enc0-count hm2_7i96s.0.inm.00.enc1-count

to
Code:
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.

Please Log in to join the conversation.

Time to create page: 0.201 seconds
Powered by Kunena Forum