- Posts: 12
- Thank you received: 25
Please Log in or Create an account to join the conversation.
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:Then in my postgui.hal I pin this signal to GUI:Code:net spindle-fb-rps motion.spindle-speed-in <= hm2_7i92.0.encoder.05.velocity => spindle-at-speed.in2Then in your .py gui file you have to initiate hal pin:Code:net spindle-fb-rps tormach.actual_rpsIn my case actual rpm is simple label. Label initialisation:Code:self.hal.newpin("actual_rps", hal.HAL_FLOAT, hal.HAL_IN)Label value update: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)Raw value is rev. per sec. so you have to multiply it by 60 to have value in rpm.Code:#***********RPM label**************** self.actual_rpm_label.set_markup('<span foreground="white">%s</span>' % "%1d" % (self.hal['actual_rps']*60))
And that is it!
In my case actual rpm is simple label. Label initialisation:
Label value update: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)Code:#***********RPM label**************** self.actual_rpm_label.set_markup('<span foreground="white">%s</span>' % "%1d" % (self.hal['actual_rps']*60))
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
gerritv wrote:
How will you manage PathPilot updates? Diff the files and patch?
Please Log in or Create an account to join the conversation.