- Posts: 2203
- Thank you received: 0
Setting up a probe touch off
First success :woohoo: I put in the white space before the = and the system erred mentioning a signal.
So I have put the two line of code back as in the ini attached and it works fine.
Attachment not found
Thank you so much I am very grateful for the help you have given me on this.
I have also done my lathes conversion like the one at 7xcnc which I think is down to you. (the quadrature encoder stuff with 64 slots and Index A+
I am going to use the Gmocappy screen. But I needed to get this working with Axis as I am going to do it for two more people with mini mills.
You did ask me to test out the Macro on the Warco config but I did not get that to work. If you want me to do some tests with the Gmoccapy screen I would be more than willing to help. There is a thread on here about putting touch off stuff on to the Gmoccapy screen.
Thanks again for all your time. Clive
Please Log in to join the conversation.
My setup is as follows:
LinuxCNC 2.7.1.14
G540 + Mesa 5i25
3 axis router, nema23 steppers, dual steppers on Y
Spindle + VFD
Touch plate
I have followed the above instructions from 7xCNC, and when I click the 'touch off' button I get the error 'EOF in file :/usr/share/axis/images/axis.ngc'
I can run a G38.2 z-20 f20 command and the machine starts a probing cycle, which completes when I close the probe circuit.
Any help would be greatly appreciated, I have attached all relevant files. If you anything else incorrect in my config please let me know, I basically copied someone elses setup and changed what I needed to to make it work, I'm still learning
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
stutaylo wrote: I'm trying to set up my probe as above and am having some issues..
My setup is as follows:
LinuxCNC 2.7.1.14
G540 + Mesa 5i25
3 axis router, nema23 steppers, dual steppers on Y
Spindle + VFD
Touch plate
I have followed the above instructions from 7xCNC, and when I click the 'touch off' button I get the error 'EOF in file :/usr/share/axis/images/axis.ngc'
I can run a G38.2 z-20 f20 command and the machine starts a probing cycle, which completes when I close the probe circuit.
Any help would be greatly appreciated, I have attached all relevant files. If you anything else incorrect in my config please let me know, I basically copied someone elses setup and changed what I needed to to make it work, I'm still learning
Did you edit any of the files on a Windows computer? You need to convert any MS end of line symbols to the Linux version. A good text editor such as Notepad++ (in Windows) can do the conversions easily.
Please Log in to join the conversation.
There is a Unix command called dos2unix which also does the trick
I may have installed it separately with apt-get
Please Log in to join the conversation.
If I created new Hal and ini files and retyped them completely (with no cut and paste) in gedit in Linux do you think that would solve the issue? Getting my CNC pc connected to the internet is a bit of a mission so want to avoid that if possible
Please Log in to join the conversation.
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
Please Log in to join the conversation.
I'm not quite sure where to go from here, I will remove all changes and re-do the 7xCNC probing changes.
Are there any other simple ways to put in a touch plate probing cycle?
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
That said, I don't think the end of line codes matter in the G-code files and I don't think that is your problem here, I run g-code all the time that has MS line endings and Linuxcnc never complains. However the line endings do matter in any of the machine configuration files. (hal, ini, py, xml...)
What the problem may be is where you have your subroutine file saved. The file must be in the directory pointed to by PROGRAM_PREFIX or SUBROUTINE_PATH in the ini file.
linuxcnc.org/docs/html/gcode/o-code.html#ocode:calling-files
Your ini file doesn't have a SUBROUTINE_PATH specified so the only suitable location would be /home/router/linuxcnc/gcode/. (Or you could add SUBROUTINE_PATH= the file's location.)
Please Log in to join the conversation.
stutaylo wrote: I have followed the above instructions from 7xCNC, and when I click the 'touch off' button I get the error 'EOF in file :/usr/share/axis/images/axis.ngc'
I wonder if it is this problem?
github.com/LinuxCNC/linuxcnc/issues/559
It shouldn't be as I don't think you are calling a subroutine.
Please Log in to join the conversation.
