- Posts: 68
- Thank you received: 0
Axis Position Logger Remote Input
5 years 7 months ago #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 to join the conversation.
5 years 7 months ago #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
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.
5 years 7 months ago #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 to join the conversation.
5 years 7 months ago #202595
by andypugh
Replied by andypugh on topic Axis Position Logger Remote Input
Which .py file?
Please Log in to join the conversation.
5 years 7 months ago #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.
Please Log in to join the conversation.
5 years 7 months ago #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 to join the conversation.
5 years 7 months ago #202891
by BigJohnT
I have an idea to check out in the morning.
JT
Replied by BigJohnT on topic Axis Position Logger Remote Input
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.
5 years 7 months ago #203202
by jurod
Replied by jurod on topic Axis Position Logger Remote Input
Thanks for your interest in helping. Any progress?
Please Log in to join the conversation.
5 years 7 months ago #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
[strike]Opps, forgot to build the deb...[/strike]
Done
JT
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.
Time to create page: 0.098 seconds
