Axis Position Logger Remote Input

More
5 years 7 months ago #201523 by jurod
Big thanks to BigJohnT.
One more question:
How to make "Log" buttons on XHC-HB04_B controller? it's for the big 5 axis cnc machine MAKA.
I still can't walk between the workpiece and the keyboard. It is 5m.
It is possible?

Please Log in to join the conversation.

More
5 years 7 months ago #201743 by andypugh

jurod wrote: It is possible?


It should be. Assuming that you can get a button-press on the pendant to appear in HAL.

Please Log in to join the conversation.

More
5 years 7 months ago #202314 by jurod
How to do it?
The name of that button in the .py file is "log"

Please Log in to join the conversation.

More
5 years 7 months ago #202595 by andypugh
Which .py file?

Please Log in to join the conversation.

More
5 years 7 months ago #202750 by jurod
.py file from Position Logger.

self.logPB.clicked.connect(self.log)
...
...
def log(self):
axes = []
for checkbox in self.axesGB.findChildren(QCheckBox): # get axes list
if checkbox.isChecked():
axes.insert(0, str(checkbox.objectName()[-1]))
...
...
return

from .ui file
<item row="0" column="4">
<widget class="QPushButton" name="logPB">
<property name="text">
<string>Log</string>
</property>
</widget>
</item>


I need to activate this "log" button using some WHB04B button.

Please Log in to join the conversation.

More
5 years 7 months ago #202796 by andypugh
I think that the neatest way would be to modify emclog.py so that it creates a HAL pin with the same action as the logPB gui control.

You would then net that HAL pin to an XHC HAL pin.

All the info you need is here:http://linuxcnc.org/docs/2.8/html/hal/halmodule.html
Though admittedly buried in lots of info that you don't need.
Section 10 looks to be the most relevant to what you want to do.

Please Log in to join the conversation.

More
5 years 7 months ago #202891 by BigJohnT

jurod wrote: Big thanks to BigJohnT.
One more question:
How to make "Log" buttons on XHC-HB04_B controller? it's for the big 5 axis cnc machine MAKA.
I still can't walk between the workpiece and the keyboard. It is 5m.
It is possible?


I have an idea to check out in the morning.

JT

Please Log in to join the conversation.

More
5 years 7 months ago #203202 by jurod
Thanks for your interest in helping. Any progress?

Please Log in to join the conversation.

More
5 years 7 months ago #203237 by BigJohnT
Done. You will need to connect to a digital input pin your pendant pen and select the pin you used in the Position Logger... hmm I need to make it save the pin.. tomorrow I'll add the save pin.

This is the latest Position Logger
github.com/jethornton/emclog

[strike]Opps, forgot to build the deb...[/strike]

Done

JT

Please Log in to join the conversation.

More
5 years 7 months ago #203623 by BigJohnT
Have you tested this yet?

JT

Please Log in to join the conversation.

Time to create page: 0.098 seconds
Powered by Kunena Forum