Newbie need help, touch plate making.
06 Nov 2023 14:28 #284704
by masawee
Replied by masawee on topic Newbie need help, touch plate making.
i add new path /home/masa/linuxcnc/configs to my "my/machine.ini section (RS274ngc) to USER_M_PATH = /home/masa/linuxcmc/configs were have this 9000.ngc file.
but same error come again.
error
EOF in file /usr/share/axis/image axis.ngc seeking o/word: 0<9000> from line 0
i looking axis.ngc file inside not have line 0 start line 1. my geany i open this and show line numbers.
but same error come again.
error
EOF in file /usr/share/axis/image axis.ngc seeking o/word: 0<9000> from line 0
i looking axis.ngc file inside not have line 0 start line 1. my geany i open this and show line numbers.
Please Log in or Create an account to join the conversation.
06 Nov 2023 17:22 #284719
by chris@cnc
Replied by chris@cnc on topic Newbie need help, touch plate making.
I test it and found the error.
I try to explain what need to change that the button works.
Create button in xml file and add path to Display section to ini
line "PYVCP = Ztouch.xml" if xml file same folder as ini
add line "net Ztouch pyvcp.ztouch halui.mdi-command-00" to custom_postgui.hal.
Mean variable from xml "<halpin>"ztouch"</halpin>" link to hal pin pyvcp.ztouch and call mdi-command-00. MDI command 00 is in your first MDI Command under [Halui] section in ini file. In this case MDI_COMMAND = M98 P9000 (z touch). Mean mdi command 00 call subprogramm 9000.ngc
If you want a second mdi command do same way.
Add line "net Ztouch2 pyvcp.ztouch2 halui.mdi-command-01" to custom_postgui.hal. and write a second line in ini. In this case MDI_COMMAND = M98 P9001 (z touch2). Mean mdi command 01 call subprogramm 9001.ngc and so on.
last step.
Say linuxcnc where your program 9000.ngc could find. In your case add line in RS274ngc in ini file
USER_M_PATH = /home/masa/linuxcmc/configs
The error
EOF in file /usr/share/axis/image axis.ngc seeking o/word: 0<9000> from line 0
Indicate linunxcnc could not found the file 9000.ngc or file have wrong syntax in header. That is your error.
Change first line of 9000.ngc to O9000 and last line M2 to M99.
So it works in my simulator. In this way you can add any touch program as you want.
I try to explain what need to change that the button works.
Create button in xml file and add path to Display section to ini
line "PYVCP = Ztouch.xml" if xml file same folder as ini
add line "net Ztouch pyvcp.ztouch halui.mdi-command-00" to custom_postgui.hal.
Mean variable from xml "<halpin>"ztouch"</halpin>" link to hal pin pyvcp.ztouch and call mdi-command-00. MDI command 00 is in your first MDI Command under [Halui] section in ini file. In this case MDI_COMMAND = M98 P9000 (z touch). Mean mdi command 00 call subprogramm 9000.ngc
If you want a second mdi command do same way.
Add line "net Ztouch2 pyvcp.ztouch2 halui.mdi-command-01" to custom_postgui.hal. and write a second line in ini. In this case MDI_COMMAND = M98 P9001 (z touch2). Mean mdi command 01 call subprogramm 9001.ngc and so on.
last step.
Say linuxcnc where your program 9000.ngc could find. In your case add line in RS274ngc in ini file
USER_M_PATH = /home/masa/linuxcmc/configs
The error
EOF in file /usr/share/axis/image axis.ngc seeking o/word: 0<9000> from line 0
Indicate linunxcnc could not found the file 9000.ngc or file have wrong syntax in header. That is your error.
Change first line of 9000.ngc to O9000 and last line M2 to M99.
So it works in my simulator. In this way you can add any touch program as you want.
Please Log in or Create an account to join the conversation.
11 Nov 2023 11:29 #285096
by masawee
Replied by masawee on topic Newbie need help, touch plate making.
i change all what you say to me, i not understand this "<halpin>"ztouch"</halpin>" were need add.
same error come all time
error
EOF in file /usr/share/axis/image axis.ngc seeking o/word: 0<9000> from line 0
sorry i has busy other life some day, today i has can go looking cnc machine and add under beam led light and looking code. but same again, why axis.ngc image have wrong ??????
same error come all time
error
EOF in file /usr/share/axis/image axis.ngc seeking o/word: 0<9000> from line 0
sorry i has busy other life some day, today i has can go looking cnc machine and add under beam led light and looking code. but same again, why axis.ngc image have wrong ??????
Please Log in or Create an account to join the conversation.
11 Nov 2023 13:36 #285101
by chris@cnc
Replied by chris@cnc on topic Newbie need help, touch plate making.
This was just explanation where the variable comes and goes. You did it already in your xml file. The easiest is you zip your confit again and I take a look inside.i change all what you say to me, i not understand this "<halpin>"ztouch"</halpin>" were need add.
Please Log in or Create an account to join the conversation.
11 Nov 2023 17:03 - 11 Nov 2023 17:13 #285115
by masawee
Replied by masawee on topic Newbie need help, touch plate making.
this have last modified config folder files.
Attachments:
Last edit: 11 Nov 2023 17:13 by masawee.
Please Log in or Create an account to join the conversation.
11 Nov 2023 20:04 #285130
by chris@cnc
Replied by chris@cnc on topic Newbie need help, touch plate making.
The last step. In file 9000.ngc first line and line 35.both lines delete and write in first line MDI Command = M98 P9000 call Programm 9000.ngc. This have to write in file header first line.
for example
MDI Command = M98 P9001 call Programm 9001.ngc Then you have to write O9001 in first line. And so on...
o<O9000> subO9000
o<O9000> endsub
O9000
for example
MDI Command = M98 P9001 call Programm 9001.ngc Then you have to write O9001 in first line. And so on...
Please Log in or Create an account to join the conversation.
11 Nov 2023 21:33 #285134
by masawee
Replied by masawee on topic Newbie need help, touch plate making.
you mean MDI Command write in to 9000.ngc first line before 09000 ?
Please Log in or Create an account to join the conversation.
11 Nov 2023 21:41 #285135
by chris@cnc
Replied by chris@cnc on topic Newbie need help, touch plate making.
No it was just explanation what the line in ini file do. I correct file 9000.ngc please check attached files. It should work now
Please Log in or Create an account to join the conversation.
11 Nov 2023 22:25 #285141
by masawee
Replied by masawee on topic Newbie need help, touch plate making.
ok,i have my-machine.ini file halui section M98 p9000
and delete o<O9000> subO9000
o<O9000> endsub
have thats first o<O9 letter or number o and o9 O9 ?
and i add you modified 9000.ngc file
tomorrow need test in machine. thanks
display show button ok.
and delete o<O9000> subO9000
o<O9000> endsub
have thats first o<O9 letter or number o and o9 O9 ?
and i add you modified 9000.ngc file
tomorrow need test in machine. thanks
display show button ok.
Please Log in or Create an account to join the conversation.
12 Nov 2023 09:13 - 12 Nov 2023 09:14 #285152
by masawee
Replied by masawee on topic Newbie need help, touch plate making.
not working alltime go error
EOF in file /usr/share/axis/image axis.ngc seeking o/word: 0<9000> from line 0
if bush Z touch button.
EOF in file /usr/share/axis/image axis.ngc seeking o/word: 0<9000> from line 0
if bush Z touch button.
Last edit: 12 Nov 2023 09:14 by masawee.
Please Log in or Create an account to join the conversation.
Time to create page: 0.087 seconds