PathPilot MegaMod

More
5 years 11 months ago - 5 years 11 months ago #189036 by my.cnc.brother
Replied by my.cnc.brother on topic PathPilot MegaMod
First you have to find your spindle encoder velocity value. In my case spindle encoder in connected to 5th axis in my Mesa 7i77.
To read velocity I use below link in my hal file:
Code:
net spindle-fb-rps motion.spindle-speed-in <= hm2_7i92.0.encoder.05.velocity => spindle-at-speed.in2
Then in my postgui.hal I pin this signal to GUI:
Code:
net spindle-fb-rps tormach.actual_rps
Then in your .py gui file you have to initiate hal pin:
Code:
self.hal.newpin("actual_rps", hal.HAL_FLOAT, hal.HAL_IN)
In my case actual rpm is simple label. Label initialisation:
Code:
#MC **************actual rpm**************** self.actual_rpm_label = self.builder.get_object("actual_rpm_label") actual_rpm_label_font_description = pango.FontDescription('helvetica ultra-condensed 11') self.actual_rpm_label.modify_font(actual_rpm_label_font_description)
Label value update:
Code:
#***********RPM label**************** self.actual_rpm_label.set_markup('<span foreground="white">%s</span>' % "%1d" % (self.hal['actual_rps']*60))
Raw value is rev. per sec. so you have to multiply it by 60 to have value in rpm.
And that is it!
Last edit: 5 years 11 months ago by my.cnc.brother.
The following user(s) said Thank You: tivoi, snowgoer540

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

More
5 years 11 months ago - 5 years 11 months ago #189058 by snowgoer540
Replied by snowgoer540 on topic PathPilot MegaMod

my.cnc.brother wrote: First you have to find your spindle encoder velocity value. In my case spindle encoder in connected to 5th axis in my Mesa 7i77.
To read velocity I use below link in my hal file:

Code:
net spindle-fb-rps motion.spindle-speed-in <= hm2_7i92.0.encoder.05.velocity => spindle-at-speed.in2
Then in my postgui.hal I pin this signal to GUI:
Code:
net spindle-fb-rps tormach.actual_rps
Then in your .py gui file you have to initiate hal pin:
Code:
self.hal.newpin("actual_rps", hal.HAL_FLOAT, hal.HAL_IN)
In my case actual rpm is simple label. Label initialisation:
Code:
#MC **************actual rpm**************** self.actual_rpm_label = self.builder.get_object("actual_rpm_label") actual_rpm_label_font_description = pango.FontDescription('helvetica ultra-condensed 11') self.actual_rpm_label.modify_font(actual_rpm_label_font_description)
Label value update:
Code:
#***********RPM label**************** self.actual_rpm_label.set_markup('<span foreground="white">%s</span>' % "%1d" % (self.hal['actual_rps']*60))
Raw value is rev. per sec. so you have to multiply it by 60 to have value in rpm.
And that is it!


This is awesome, Thank you! I cant wait to try it this weekend.

Does the following code also go in the .py gui file?


In my case actual rpm is simple label. Label initialisation:

Code:
#MC **************actual rpm**************** self.actual_rpm_label = self.builder.get_object("actual_rpm_label") actual_rpm_label_font_description = pango.FontDescription('helvetica ultra-condensed 11') self.actual_rpm_label.modify_font(actual_rpm_label_font_description)
Label value update:
Code:
#***********RPM label**************** self.actual_rpm_label.set_markup('<span foreground="white">%s</span>' % "%1d" % (self.hal['actual_rps']*60))

Last edit: 5 years 11 months ago by snowgoer540.

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

More
5 years 11 months ago #189207 by Vmax549
Replied by Vmax549 on topic PathPilot MegaMod
my.cnc.brother would you happen to know HOW to place B and C axis DROs into the toolpath window ? I need to place them in the top left corner of the toolpath window.

(;-) TP

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

More
5 years 11 months ago #189245 by jbraun
Replied by jbraun on topic PathPilot MegaMod
This is awesome, congratulations !

that is all.....

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

More
5 years 11 months ago - 5 years 11 months ago #189420 by gerritv
Replied by gerritv on topic PathPilot MegaMod
That is excellent work and result. Rotating the screen is a bril move.

How will you manage PathPilot updates? Diff the files and patch?

My machine is running Pathpilot 2.5, but not ready for real work just yet. Rolling stand, electrics panel, probe and ets still to be done. But it cuts al and steel so very happy so far. Presently trying to resurrect a Renishaw TP2 probe. I look forward to enhancing my installation based on your approach.



gerrit
Last edit: 5 years 11 months ago by gerritv. Reason: clarification

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

More
5 years 11 months ago #189464 by snowgoer540
Replied by snowgoer540 on topic PathPilot MegaMod

gerritv wrote:
How will you manage PathPilot updates? Diff the files and patch?


I would love to hear thoughts on this. Redoing the changes every time you update is a PITA.

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

Time to create page: 0.139 seconds
Powered by Kunena Forum