wiring MPGs to 7i96s

  • Masiwood123
  • Masiwood123's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
28 Sep 2022 15:31 #252951 by Masiwood123
Replied by Masiwood123 on topic wiring MPGs to 7i96s
that's very useful for me, thank you very much!.. and I barely understand anyway, and I don't need anything beyond that, it complicates the matter ..ilowpass as i understand should be ilowpass.0 and ilowpass.1.. as soon as I'm done, I'll report what I did, based on my picture, I should also connect the appropriate MPG inputs..
net mpg-1 encoder.0.phase-A <= hm2_7i96s.0.inm.00.input-00
net mpg-1 encoder.0.phase-B<= hm2_7i96s.0.inm.00.input-01
net mpg-2 encoder.0.phase-A <= hm2_7i96s.0.inm.00.input-02
net mpg-2 encoder.0.phase-B <= hm2_7i96s.0.inm.00.input-03
right?

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

More
28 Sep 2022 15:34 #252952 by PCW
Replied by PCW on topic wiring MPGs to 7i96s
No, the 7I96S has built in MPG encoder hardware so you don't deal
with A or B in hal

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

  • Masiwood123
  • Masiwood123's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
28 Sep 2022 15:37 #252953 by Masiwood123
Replied by Masiwood123 on topic wiring MPGs to 7i96s
that is very well done, congratulations! Thanks

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

  • HansU
  • HansU's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
28 Sep 2022 17:37 - 28 Sep 2022 17:38 #252958 by HansU
Replied by HansU on topic wiring MPGs to 7i96s
Quickly created an example how it could look like:
loadrt ilowpass count=2
addf ilowpass.0 servo-thread
addf ilowpass.1 servo-thread

setp ilowpass.0.scale 1000
setp ilowpass.1.scale 1000
setp ilowpass.0.gain 0.01
setp ilowpass.1.gain 0.01

# For velocity mode, set to 1
# In velocity mode the axis stops when the dial is stopped
# even if that means the commanded motion is not completed,
# For position mode (the default), set to 0
# In position mode the axis will move exactly jog-scale
# units for each count, regardless of how long that might take,
setp axis.x.jog-vel-mode 0
setp axis.z.jog-vel-mode 0

# The output from encoder counts is sent to ilowpass
net mpg-x-out ilowpass.0.in <= hm2_7i96s.0.inm.00.enc0-count
net mpg-z-out ilowpass.1.in <= hm2_7i96s.0.inm.00.enc1-count

# Adjust your scaling here
setp axis.x.jog-scale 0.01
setp axis.z.jog-scale 0.01

# Enable jogging
setp axis.x.jog-enable 1
setp axis.z.jog-enable 1

# The output from the ilowpass is sent to each axis jog count
net encoder-counts-x axis.x.jog-counts <= ilowpass.0.out
net encoder-counts-z axis.z.jog-counts <= ilowpass.1.out
Last edit: 28 Sep 2022 17:38 by HansU.
The following user(s) said Thank You: Masiwood123

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

  • Masiwood123
  • Masiwood123's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
28 Sep 2022 18:43 #252963 by Masiwood123
Replied by Masiwood123 on topic wiring MPGs to 7i96s
I can't describe how happy I am! ..who knows how long I would wander to get to this code..as I am completely ignorant about programming, it also opened my eyes about the hal command..if I get to the weekend I will try to physically implement the encoders and try, from my belief this will work and should be introduced in the linuxcnc documentation as an example of adding more standalone mpg wheels. Thank you very much, I would like to repay somehow!

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

  • HansU
  • HansU's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
28 Sep 2022 19:12 #252966 by HansU
Replied by HansU on topic wiring MPGs to 7i96s
Yes I thought so too that this could be added to the docs as the parallel port is only rarely used these days.
The following user(s) said Thank You: Masiwood123

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

More
28 Sep 2022 20:50 #252969 by PCW
Replied by PCW on topic wiring MPGs to 7i96s
The parallel port (or RPI GPIO) setup is almost identical except for the added
software encoder comp setup (and the count pins)
The following user(s) said Thank You: Masiwood123

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

  • Masiwood123
  • Masiwood123's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
28 Sep 2022 21:17 #252970 by Masiwood123
Replied by Masiwood123 on topic wiring MPGs to 7i96s
I and the majority here are beginners, in that direction I believe that not only this but also many other things are unclear here with all the documents, and that in this sense there should be more explanations with practical examples, in the linuxcnc documentation itself, ``because everything must be written ``. That's why, at least in my environment, everyone runs away from it and resorts to mach3 or.. (only usr frendly and nothing else), but luckily there are many of you who know how to help.

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

  • Masiwood123
  • Masiwood123's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
18 Oct 2022 22:49 - 18 Oct 2022 22:49 #254475 by Masiwood123
Replied by Masiwood123 on topic wiring MPGs to 7i96s
This configuration works great, exactly what I wanted, Hans, Peter, thank you very much!

Last edit: 18 Oct 2022 22:49 by Masiwood123.
The following user(s) said Thank You: tommylight

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
18 Oct 2022 23:35 #254479 by tommylight
Replied by tommylight on topic wiring MPGs to 7i96s
Prestani igrat masinom, nije to igracka! :)
Kad su ti posledji put to rekli?
Drago mi je da uzivas koristeci tvoj trud.

EN:
Stop playing with the machine, it is not a toy!
When was the last time you heard that?
I am glad you are enjoying your effort.
-
Explanation, as this might sound strange to most of you, in Balkans growing up that was the most used sentence coupled with "do not touch that" for everything. Luckily i never listened to those sentences, probably got immune after a while! :)
The following user(s) said Thank You: arvidb, Masiwood123

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

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