I want to create a button, which moves the cnc to a predefined (absolute) position.
Here is what I did in my config (which is in /home/cnc/linuxcnc/configs/my-machine):
ini:
Code:
[RS274NGC]
SUBROUTINE_PATH = /home/cnc/linuxcnc/subroutines
custom_post_gui.hal
Code:
net remote-o100 halui.mdi-command-00 <= pyvcp.o100
pyvcp-panel.xml
Code:
<halpin>"o100"</halpin>
In the folder /home/cnc/linuxcnc/subroutines I created a file o100.ngc:
Code:
o100 sub
g53 g0 z0
g53 g0 x0 y0
o100 endsub
When I run the machine, there is a (new) button, but when I click it, I always receive the following error:
EOF in file:/usr/share/axis/images/axis.ngc
seeking o-word: o<100> from line:0
I'm fiddling around with this issue for a while already and searched the forum but can't find the problem. I think the paths are all correct?! Maybe somebody can point me in the right direction! Thanks in advance!