Connect HAL_LED to probe_in
- wedlocki
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
11 Oct 2017 18:43 - 11 Oct 2017 18:46 #100223
by wedlocki
Connect HAL_LED to probe_in was created by wedlocki
HELLO
I'm not a good programmer and I do not understand English very well. That's why I am writing Google translate: D
I can not connect the HAL_LED to the probe sensor pin. Of course the probe works and is connected to the correct pin in the LPT port.
The second problem is to configure the milling movement after the measurement. Where and what to write to the measurement after the cutter moved to the top position (in my machine is G53 Z0) and only after the milling cutter to the material. Currently, all X Y and Z moves are executed simultaneously, which can cause the cutter to hit the clamp.
Here are my files.
I'm not a good programmer and I do not understand English very well. That's why I am writing Google translate: D
I can not connect the HAL_LED to the probe sensor pin. Of course the probe works and is connected to the correct pin in the LPT port.
The second problem is to configure the milling movement after the measurement. Where and what to write to the measurement after the cutter moved to the top position (in my machine is G53 Z0) and only after the milling cutter to the material. Currently, all X Y and Z moves are executed simultaneously, which can cause the cutter to hit the clamp.
Here are my files.
Last edit: 11 Oct 2017 18:46 by wedlocki.
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
Less
More
- Posts: 2075
- Thank you received: 406
11 Oct 2017 20:35 #100233
by newbynobi
Replied by newbynobi on topic Connect HAL_LED to probe_in
Please change
net buttons buttons.led_tool_sensor
To
net probe-in buttons.led_tool_sensor
Norbert
net buttons buttons.led_tool_sensor
To
net probe-in buttons.led_tool_sensor
Norbert
Please Log in or Create an account to join the conversation.
- wedlocki
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
12 Oct 2017 16:38 #100275
by wedlocki
Replied by wedlocki on topic Connect HAL_LED to probe_in
Im change "net buttons buttons.led_tool_sensor" to "net probe-in buttons.led_tool_sensor" and gmoccapy take me a error (listed below) . But when im run a gmoccapy without this line im see in halmeter/pins all my buttons pins. Pin named buttons.led_tool_sensor have IN directory. All other have OUT
Debug file information:
.
/usr/bin/gmoccapy:237: GtkWarning: Invalid icon size 48
self.widgets.window1.show()
(gmoccapy:8857): GtkSourceView-CRITICAL **: gtk_source_language_manager_set_search_path: assertion `lm->priv->ids == NULL' failed
custom_postgui.hal:22: Pin 'buttons.led_tool_sensor' does not exist
Traceback (most recent call last):
File "/usr/bin/gladevcp", line 45, in <module>
import gladevcp.makepins
File "/usr/lib/pymodules/python2.7/gladevcp/__init__.py", line 1, in <module>
from hal_pythonplugin import *
File "/usr/lib/pymodules/python2.7/gladevcp/hal_pythonplugin.py", line 30, in <module>
from overridewidget import Override
File "/usr/lib/pymodules/python2.7/gladevcp/overridewidget.py", line 17, in <module>
import sys,os,pango
KeyboardInterrupt
Debug file information:
.
/usr/bin/gmoccapy:237: GtkWarning: Invalid icon size 48
self.widgets.window1.show()
(gmoccapy:8857): GtkSourceView-CRITICAL **: gtk_source_language_manager_set_search_path: assertion `lm->priv->ids == NULL' failed
custom_postgui.hal:22: Pin 'buttons.led_tool_sensor' does not exist
Traceback (most recent call last):
File "/usr/bin/gladevcp", line 45, in <module>
import gladevcp.makepins
File "/usr/lib/pymodules/python2.7/gladevcp/__init__.py", line 1, in <module>
from hal_pythonplugin import *
File "/usr/lib/pymodules/python2.7/gladevcp/hal_pythonplugin.py", line 30, in <module>
from overridewidget import Override
File "/usr/lib/pymodules/python2.7/gladevcp/overridewidget.py", line 17, in <module>
import sys,os,pango
KeyboardInterrupt
Please Log in or Create an account to join the conversation.
- rodw
- Away
- Platinum Member
Less
More
- Posts: 10737
- Thank you received: 3541
12 Oct 2017 21:20 - 12 Oct 2017 21:30 #100283
by rodw
Replied by rodw on topic Connect HAL_LED to probe_in
This is your error.I'm guessing you have not installed a component with loadrt or there is a non standard Hal component used that needs to be halcompiled
For your gcode error, it is up to you to retract to a safe Z height to clear your clamps. Maybe something like
G0 Z25 (move above clamp)
G53 Z0
custom_postgui.hal:22: Pin 'buttons.led_tool_sensor' does not exist
For your gcode error, it is up to you to retract to a safe Z height to clear your clamps. Maybe something like
G0 Z25 (move above clamp)
G53 Z0
Last edit: 12 Oct 2017 21:30 by rodw.
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
Less
More
- Posts: 2075
- Thank you received: 406
13 Oct 2017 21:05 #100334
by newbynobi
Replied by newbynobi on topic Connect HAL_LED to probe_in
Rod, in this case a am pretty sure, that you are not rigth. The behavior is relatavely shure caused due to a race conflict. The glade panel is not ready, whiele postgui hal is allready feaded an processed.
He will have to transfer the line to a separate hal file and load that file from his ini file including it in the gladevcp line in his ini. I am not on my PC, so i can not public the complete line right now, i will do this weekend.
Norbert
He will have to transfer the line to a separate hal file and load that file from his ini file including it in the gladevcp line in his ini. I am not on my PC, so i can not public the complete line right now, i will do this weekend.
Norbert
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
Less
More
- Posts: 2075
- Thank you received: 406
14 Oct 2017 09:50 - 14 Oct 2017 09:52 #100345
by newbynobi
Replied by newbynobi on topic Connect HAL_LED to probe_in
@wedloki,
please make a new hal file, i.e. my_panel.hal with following content:
Erase the named line from your postgui.hal file!
than change your INI file, where you load your panel to be something like:
(I do not know how you load your panel, so the command may differ, the important part is the -H my_panel.hal)
EMBED_TAB_COMMAND = gladevcp -x {XID} -H my_panel.hal buttons.glade
(you need to adapt the names to fit your file naming!
does it work now?
Norbert
please make a new hal file, i.e. my_panel.hal with following content:
net probe-in buttons.led_tool_sensor
Erase the named line from your postgui.hal file!
than change your INI file, where you load your panel to be something like:
(I do not know how you load your panel, so the command may differ, the important part is the -H my_panel.hal)
EMBED_TAB_COMMAND = gladevcp -x {XID} -H my_panel.hal buttons.glade
(you need to adapt the names to fit your file naming!
does it work now?
Norbert
Last edit: 14 Oct 2017 09:52 by newbynobi.
The following user(s) said Thank You: wedlocki
Please Log in or Create an account to join the conversation.
- wedlocki
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
17 Oct 2017 17:24 #100487
by wedlocki
Replied by wedlocki on topic Connect HAL_LED to probe_in
thx newbynobi. it works !!!! And u have right , this is a race condition.
The second problem is to configure the milling movement after the measurement. Where and what to write to the measurement after the cutter moved to the top position (in my machine is G53 Z0) and only after the milling cutter to the material. Currently, all X Y and Z moves are executed simultaneously, which can cause the cutter to hit the clamp. I think in custom GMOCCAPY file change.gnc but i dont know where
The second problem is to configure the milling movement after the measurement. Where and what to write to the measurement after the cutter moved to the top position (in my machine is G53 Z0) and only after the milling cutter to the material. Currently, all X Y and Z moves are executed simultaneously, which can cause the cutter to hit the clamp. I think in custom GMOCCAPY file change.gnc but i dont know where
Please Log in or Create an account to join the conversation.
- newbynobi
- Offline
- Moderator
Less
More
- Posts: 2075
- Thank you received: 406
28 Oct 2017 14:24 #100926
by newbynobi
Replied by newbynobi on topic Connect HAL_LED to probe_in
Hallo and sorry for the late reply.
All movement can be done in change.ngc.
Just take a look to the sim configs.
Norbert
All movement can be done in change.ngc.
Just take a look to the sim configs.
Norbert
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.078 seconds