Axis Position Logger Remote Input
09 Mar 2021 08:09 #201523
by jurod
Axis Position Logger Remote Input was created 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?
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.
10 Mar 2021 22:48 #201743
by andypugh
It should be. Assuming that you can get a button-press on the pendant to appear in HAL.
Replied by andypugh on topic Axis Position Logger Remote Input
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.
15 Mar 2021 07:56 #202314
by jurod
Replied by jurod on topic Axis Position Logger Remote Input
How to do it?
The name of that button in the .py file is "log"
The name of that button in the .py file is "log"
Please Log in or Create an account to join the conversation.
17 Mar 2021 13:32 #202595
by andypugh
Replied by andypugh on topic Axis Position Logger Remote Input
Which .py file?
Please Log in or Create an account to join the conversation.
18 Mar 2021 15:38 - 18 Mar 2021 15:40 #202750
by jurod
Replied by jurod on topic Axis Position Logger Remote Input
.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.
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.
19 Mar 2021 01:05 #202796
by andypugh
Replied by andypugh on topic Axis Position Logger Remote Input
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.
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.
19 Mar 2021 20:35 #202891
by BigJohnT
I have an idea to check out in the morning.
JT
Replied by BigJohnT on topic Axis Position Logger Remote Input
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.
22 Mar 2021 05:43 #203202
by jurod
Replied by jurod on topic Axis Position Logger Remote Input
Thanks for your interest in helping. Any progress?
Please Log in or Create an account to join the conversation.
22 Mar 2021 13:15 - 22 Mar 2021 14:44 #203237
by BigJohnT
Replied by BigJohnT on topic Axis Position Logger Remote Input
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
This is the latest Position Logger
github.com/jethornton/emclog
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.
25 Mar 2021 15:29 #203623
by BigJohnT
Replied by BigJohnT on topic Axis Position Logger Remote Input
Have you tested this yet?
JT
JT
Please Log in or Create an account to join the conversation.
Time to create page: 0.079 seconds