Axis Position Logger Remote Input

More
09 Mar 2021 08:09 #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 or Create an account to join the conversation.

More
10 Mar 2021 22:48 #201743 by andypugh

It is possible?


It should be. Assuming that you can get a button-press on the pendant to appear in HAL.
The following user(s) said Thank You: BigJohnT

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

More
15 Mar 2021 07:56 #202314 by jurod
How to do it?
The name of that button in the .py file is "log"

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

More
17 Mar 2021 13:32 #202595 by andypugh
Which .py file?

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

More
18 Mar 2021 15:38 - 18 Mar 2021 15:40 #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.
Last edit: 18 Mar 2021 15:40 by jurod.

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

More
19 Mar 2021 01:05 #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 or Create an account to join the conversation.

More
19 Mar 2021 20:35 #202891 by BigJohnT

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 or Create an account to join the conversation.

More
22 Mar 2021 05:43 #203202 by jurod
Thanks for your interest in helping. Any progress?

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

More
22 Mar 2021 13:15 - 22 Mar 2021 14:44 #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

Opps, forgot to build the deb...

Done

JT
Last edit: 22 Mar 2021 14:44 by BigJohnT.
The following user(s) said Thank You: Bari

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

More
25 Mar 2021 15:29 #203623 by BigJohnT
Have you tested this yet?

JT

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

Time to create page: 0.110 seconds
Powered by Kunena Forum