Tool table scanning
- kalev
- Offline
- New Member
- Posts: 4
- Thank you received: 0
I have the lathe with horizontal tool turret. During the tool setup I measure the tooltip X,Z distance from rotational center of the turret
and save values into tool table V and W. Before each tool change ( maybe on tool table update ) I want to calculate maximum distance from turret's center ( combining V and W ) of tools loaded in turret. I want to estimate is tool crash into workpiece possible during turret rotation. For that I have to scan tooltable entries. Is scanning possible in O-code or it needs python stuff.
Thanks
Please Log in or Create an account to join the conversation.
- pl7i92
- Offline
- Platinum Member
- Posts: 1875
- Thank you received: 354
so you can put the TXT file to your CAM like Fusion360
you can read the tooltable values of the loaded tool
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23178
- Thank you received: 4862
During the tool setup I measure the tooltip X,Z distance from rotational center of the turret
and save values into tool table V and W.
Why not use X and Y? (Tool X and Y are separate from coordinate system X and Y, so as long as you are consistent that might be better)
Before each tool change ( maybe on tool table update ) I want to calculate maximum distance from turret's center ( combining V and W ) of tools loaded in turret. I want to estimate is tool crash into workpiece possible during turret rotation. For that I have to scan tooltable entries. Is scanning possible in O-code or it needs python stuff.
You can read the offsets of the loaded tool in G-code, #5401-5409 linuxcnc.org/docs/2.7/html/gcode/overview.html#gcode:parameters
Please Log in or Create an account to join the conversation.
- pl7i92
- Offline
- Platinum Member
- Posts: 1875
- Thank you received: 354
this is only for the alredy loaded tool
There shoudt be a Component
thatt reads the entirer tootable
and gives back a wanted tool info
so someone can make dicitions on a prepared tool
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23178
- Thank you received: 4862
@_Andreas_ Andy
this is only for the alredy loaded tool
There shoudt be a Component
thatt reads the entirer tootable
and gives back a wanted tool info
so someone can make dicitions on a prepared tool
It isn't that simple in all cases. As G-code can change offsets in parts of the system that components can't see.
Please Log in or Create an account to join the conversation.
- kalev
- Offline
- New Member
- Posts: 4
- Thank you received: 0
I think I found solution. I had to use M6 remapping adding to ini
REMAP=M6 modalgroup=6 prolog=my_change_prolog ngc=m6_my
and adding to stdglue.py ( standard change script ) my_change_prolog function ( see attachment ).
Compare standard change_prolog with my_change_prolog to see changes.
Now I have all needed parameters on O-code level.
Next step I need to write m6_my o-code script to prevent turret crash.
Please Log in or Create an account to join the conversation.
- pl7i92
- Offline
- Platinum Member
- Posts: 1875
- Thank you received: 354
also as it is only nessasary in the tool change it is the best solution
never the less the turret shudt know all tool length
Please Log in or Create an account to join the conversation.