Newbie need help, touch plate making.

More
06 Nov 2023 14:28 #284704 by masawee
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.

Please Log in or Create an account to join the conversation.

More
06 Nov 2023 17:22 #284719 by chris@cnc
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.



 
Attachments:

Please Log in or Create an account to join the conversation.

More
11 Nov 2023 11:29 #285096 by masawee
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 ??????

Please Log in or Create an account to join the conversation.

More
11 Nov 2023 13:36 #285101 by chris@cnc

i change all what you say to me, i not understand this "<halpin>"ztouch"</halpin>" were need add.

 

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. 

Please Log in or Create an account to join the conversation.

More
11 Nov 2023 17:03 - 11 Nov 2023 17:13 #285115 by masawee
 

File Attachment:

File Name: last_config.zip
File Size:111 KB
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.

More
11 Nov 2023 20:04 #285130 by chris@cnc
The last step. In file 9000.ngc first line and line 35.
o<O9000> subO9000
o<O9000> endsub
both lines delete and write in first line 
O9000
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...
Attachments:

Please Log in or Create an account to join the conversation.

More
11 Nov 2023 21:33 #285134 by masawee
you mean MDI Command write in to 9000.ngc first line before 09000 ?

Please Log in or Create an account to join the conversation.

More
11 Nov 2023 21:41 #285135 by chris@cnc
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.

More
11 Nov 2023 22:25 #285141 by masawee
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.

Please Log in or Create an account to join the conversation.

More
12 Nov 2023 09:13 - 12 Nov 2023 09:14 #285152 by masawee
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.
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
Powered by Kunena Forum