How do I do a manual tool change?
- Vladcronos
-
- Offline
- Senior Member
-
- Posts: 51
- Thank you received: 0
Anyways, not gonna rewrite all that again... the most important was to thank you for your help.
I am using a pre-made rpi4 image from linuxcnc website, therefore all those paths were an unknown to me - I haven't installed linuxcnc at all, it came preinstalled there.
for wifi I do need it at least for testing, as it is impossible to stand for days in my garage (where it is going now apparently). But I got that working actually. was misguided again into installing a gnome network-manager, which caused more problem that I had before that and messed up configuration files for me. once I figure all the correct settings and everything, I will reflush the OS and do a cleaner setup for sure. Also it is really handy for file transfer as I use XRDP + remote desktop on windows, I can make a CAM this way and just drag and drop it without having to worry about using flash drives etc.
So my steps so far:
1) installed an ISO from linuxcnc on RPI4
2) ran PNC conf, tuned everything there (pretty straightforward and nice there and all was on schedule so to speak and I was pretty happy with the progress)
3) realized that I cant manually change a tool in gmoccapy, spent another hour walking around with "wtf face".
4) started messing with adding that functionality, which already turned into 5x more time wasted than the whole previous setup where machine was already working fine, just with one tool.
5) went to GMOCCAPY documentation (linuxcnc.org/docs/2.8/html/gui/gmoccapy....l-measurement-videos), found kind of tutorial, followed it carefully 3 times already. That turned linuxcnc into a frozen mammoth and nothing works at all now. HAL pins are connected correctly and I can see them changing TRUE/FALSE when triggered inside linuxcnc. the guy in docs also used PROBE variable instead of standard PROBE-IN, which by itself may have messed things up, but I am not sure how to troubleshoot that.
All my config files are attached, or so I think.
If anyone feels generous with their time, here are my messengers: t.me/vladcronos , m.me/vladcronos . Would be actually much faster over there. Thanks in advance!
Please Log in or Create an account to join the conversation.
- +Jan+
- Offline
- Senior Member
-
- Posts: 60
- Thank you received: 16
Nevertheless, I could imagine it working as follows:
Add the following to your ini:
[RS274NGC]
REMAP=M6 modalgroup=6 ngc=messen_z
Create the file messen_z.ngc in your macro folder and add the following content:
O<messen_z> sub
#1810=-100 (Position sicheres Z)
#1811=1279.1250 (Position Taster X)
#1812=2498 (Position Taster Y)
#1813=-196.5 (max. probing travel - incremental move)
#1814=2.379 (Offset sensor trigger point to Z 0)
M5
G90 G0
G53 Z#1810 (Move to safe Z Position)
G53 X#1811 Y#1812 (Move over sensor)
G91
G38.2 Z#1813 F850 (fast probing)
G1 Z3.0 F500 (go up again)
G38.2 Z-3.25 F25 (fine probing)
G90 G0
G10 L20 P1 Z#1814 (Set Z0 in respect to your given sensor z offset)
G53 Z#1810 (move to safe z)
G53 Y2475
G91
G0 Y-20 (move away from sensor, so that you do not crash if you go down again)
G90 G0
(MSG, set Z0)
O<messen_z> endsub
M2I just tested the code on my machine, but still consider them a suggestion to use at your own risk! You have to adapt the parameters to your machine coordinates and conditions.
Best wishes
Jan
Please Log in or Create an account to join the conversation.
- Vladcronos
-
- Offline
- Senior Member
-
- Posts: 51
- Thank you received: 0
My Setup as I meantioned is that I change collets and tools only, not the whole chuck. If you think it will be bette rto go another route I am all ears, because at this point I have no idea wth I am doing anyways.
Going to try your code now, thanks a lot!
Please Log in or Create an account to join the conversation.
- d2inventory
- Offline
- Senior Member
-
- Posts: 41
- Thank you received: 10
How about you take some responsibility like a grown adult instead of behaving like a toddler?
A very quick look at your config folder and the documentation give it away instantly that you didnt follow the documentation.
It very clearly says that you have to copy the files into the directory specified in the ini -> section "RS274NGC" -> key "SUBROUTINE_PATH".
Is there such a key specified in your .ini? No ofc not. But hey obviously it's again the shitty documentation and the software should just have it in there and the whole linux thingy and stuff is bad, totally not you just not doing a step clearly written out in the documentation. noooooo, you being at fault? never!!!
I mean if the documentation is so very hard for you to understand then just go ahead and rewrite it. It's open software and documentation, everyone can participate and improve. Why just be a leech if you could also contribute?
Please Log in or Create an account to join the conversation.
- +Jan+
- Offline
- Senior Member
-
- Posts: 60
- Thank you received: 16
I would recommend placing Z0 on the bottom of the material in your cam system, or placing the sensor/contact plate on the material surface when measuring. In that case, an M0 at the beginning and end of the remap code would be appropriate.
"I change collets and tools only"
This is exactly where dynamic tool measurement comes in...
Please Log in or Create an account to join the conversation.
- Vladcronos
-
- Offline
- Senior Member
-
- Posts: 51
- Thank you received: 0
screenshot above. had to upload to imgur... imgur.com/a/Tvz7ZQC
Apparently there is some more mess from that gmoccapy tutorial now. should I check if python is present on that OS?
Please Log in or Create an account to join the conversation.
- cakeslob
- Offline
- Platinum Member
-
- Posts: 922
- Thank you received: 275
Are you using some kind of tool height probe with a digital input or are you moving the endmill to the top of the workpiece and setting it that way?
To get your machine running with manual toolchange for the time being, I can suggest when you encounter a toolchange in your program, to stop the program, do your normal tool change procedure manually with touchoff, and resume your program from the toolchange position to ensure all your new offsets/gcode headers are in effect. By that
The best starting point will be the linuxcnc sample configurations probably. Try running this sample configuration to see if it behaves in the way you expect your toolchange to act, and then you can work from there to merge it with your current configuration. the path to the con
Please Log in or Create an account to join the conversation.
- Vladcronos
-
- Offline
- Senior Member
-
- Posts: 51
- Thank you received: 0
That subroutine path was OFC setup before, I have no idea why it was again rewritten somehow, despite that I have not touched any auto configurators like pncconf. You really think I am so dumb to just skip one step in documentation, and do that 3 times in a row? That's a bold assumption I must say. The crap overwrites itself because of poorly written and explained code, and I relate that mostly to gmoccapy and not the linuxcnc itself, as native setup was a breeze until gmoccapy mess started. The guy created some python scripts there which I have no idea what they are doing. Every single time I filled the [RS274NGC] section carefully, first time I made a mistake to use pncconf and it was overwritten, my bad. Both following times it just overwrites itself from some other location.
Please Log in or Create an account to join the conversation.
- Vladcronos
-
- Offline
- Senior Member
-
- Posts: 51
- Thank you received: 0
jogging and setting a new tool offset in the middle of a program is more than 2 lines
Nope, it is possibly less than two lines, all you need to do is stop disabling joging controls and let user overwrite Z0, that's how it is done in mach3/4 for decades, works easy and simple. You basically need to just jog and then reset Z to zero. Both of features are already there, just disabled during program run. Resetting Z to anything is not a problem, program will just shift position and keep going, I have done that for years on mach4 router.
I dont even want to think about such PITA to be honest. This is going to turn every machining into a pure misery. Not even gonna mention that gmoccapy GUI doesn't even let me monitor which code line is actually running at given moment and scroll isn't even working. If I wanted that kind of misery I would be better off machining my complex shapes on a manual mill lol. This is the same solution as mine that I do now, just run separate programs for each tool, but that's a sick joke... If I ever knew that would be a case with linux cnc to not have such basics, i would never even touch this. Sadly now I am stuck with only linux compatible hardware.I can suggest when you encounter a toolchange in your program
I would recommend placing Z0 on the bottom of the material
Cant imagine how I would touch off the bottom of the stock later then
Please Log in or Create an account to join the conversation.
- +Jan+
- Offline
- Senior Member
-
- Posts: 60
- Thank you received: 16
I assumed you were using a sensor. If this is the case, you have to determine the offset from your sensor switching point to your material bottom edge once (I assumed that this is always the same) and enter it in the macro under parameter #1814.
Please Log in or Create an account to join the conversation.