How do I do a manual tool change?

More
13 Nov 2021 22:16 - 13 Nov 2021 22:29 #226374 by Vladcronos
Damn, I was writing for like 15 minutes to you man, and accidentally clicked back button on a keyboard with backspace while not in text field... sh&t accumulates fast when you are frustrated like that for sure. which is why I also hate forums, so inefficient.

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!
Attachments:
Last edit: 13 Nov 2021 22:29 by Vladcronos.

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

More
13 Nov 2021 22:31 - 13 Nov 2021 22:36 #226376 by +Jan+
So you want to work without tool length compensation, but move your Z zero point every time? I have a feeling you haven't understood the advantages of Dynamic Tool Length Compensation.
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
M2


I 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
Last edit: 13 Nov 2021 22:36 by +Jan+.

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

More
13 Nov 2021 22:41 #226377 by Vladcronos
Yes, at least for now, i think it will be a shorter path to a fucntioning machine for me. I can imagine that I will be bound to having a stock top surface always available and if I face it for example, it will mess things up. But afais dinamic compensation is even more complicated, and everytime I will put something into the vise it will have a different height meaning I will have to measure it manually allt he time, which kills the point of all of this.

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.

More
13 Nov 2021 22:50 - 13 Nov 2021 22:53 #226379 by d2inventory
Can you see the common pattern in most of your comments? It's deflecting blame to everyone and everything else other than you. Obviously it's the person who wrote the software who sucks, not you. Obviously it's the person who wrote the documentation who sucks, not you. Obviously it's the forum that sucks and is inefficient and not you fat fingering.
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?
Last edit: 13 Nov 2021 22:53 by d2inventory.

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

More
13 Nov 2021 22:58 #226381 by +Jan+
"...I can imagine that I will be bound to having a stock top surface always available and if I face it for example, it will mess things up..."

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.

More
13 Nov 2021 23:01 #226383 by Vladcronos
File Attachment:


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.

Time to create page: 0.186 seconds
Powered by Kunena Forum