- Posts: 19899
- Thank you received: 4655
Tool offset
- andypugh
- Offline
- Moderator
-
Less
More
11 years 3 months ago - 11 years 3 months ago #60844
by andypugh
It is possible, but I am not clear how.
The remap.py code calculates the required offsets from the T-word in G-code if I recall correctly.
It is possible that the problem might be one of timing, that the system does not know that the tool is loaded at the point that the offset is applied.
Has a couple of (debug,) lines in it. Do they show the expected numbers or not?
Replied by andypugh on topic Tool offset
ReinaldoP wrote: Could the following iocontrol net connections in my hal file be causing me problems?
It is possible, but I am not clear how.
The remap.py code calculates the required offsets from the T-word in G-code if I recall correctly.
It is possible that the problem might be one of timing, that the system does not know that the tool is loaded at the point that the offset is applied.
Code:
1 O<toolchange> sub
2 (debug, Tool requested = #<tool>)
3 #<wear> = [10000 + FIX[ #<tool> / 100]]
4 #<tool> = [#<tool> MOD 100]
5 M6 T#<tool>
6 G43 H#<tool>
7 O100 IF [#<wear> GT 10000]
8 G43.2 H#<wear>
9 O100 ENDIF
10 #<pocket> = #<tool>
11 (debug, tool = #<tool> wear = #<wear>)
12 O<toolchange> endsub [0]
Has a couple of (debug,) lines in it. Do they show the expected numbers or not?
Last edit: 11 years 3 months ago by andypugh.
Please Log in or Create an account to join the conversation.
- ReinaldoP
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 0
11 years 3 months ago #60897
by ReinaldoP
Replied by ReinaldoP on topic Tool offset
I tried the following:
When turret in position 3 with offset 3 I command T0505 in MDI,
Debug shows the following:
tool requested = 505.000000
tool = 5.0000 wear = 10005.0000
Turret moves to position 5 and offsets are the respective ones for T05 but wear component was not applied.
When turret in position 5 with offset 5 I command T0505 again in MDI,
Debug shows the following:
tool requested = 505.000000
tool = 5.0000 wear = 10005.0000
Now it applies wear.
Something I just noticed- when I first load linuxcnc and execute a Txxyy it works as intended(tool changes position and wear offset is applied), then all subsequent tool changes do not work as intended unless I command it twice or reboot linuxcnc.
When turret in position 3 with offset 3 I command T0505 in MDI,
Debug shows the following:
tool requested = 505.000000
tool = 5.0000 wear = 10005.0000
Turret moves to position 5 and offsets are the respective ones for T05 but wear component was not applied.
When turret in position 5 with offset 5 I command T0505 again in MDI,
Debug shows the following:
tool requested = 505.000000
tool = 5.0000 wear = 10005.0000
Now it applies wear.
Something I just noticed- when I first load linuxcnc and execute a Txxyy it works as intended(tool changes position and wear offset is applied), then all subsequent tool changes do not work as intended unless I command it twice or reboot linuxcnc.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
11 years 3 months ago #60905
by andypugh
Replied by andypugh on topic Tool offset
Just out of interest, does the problem appear when running G-code from a file rather than MDI?
I am wondering if it is related to a strange MDI bug that I am seeing somewhere else.
I am wondering if it is related to a strange MDI bug that I am seeing somewhere else.
Please Log in or Create an account to join the conversation.
- ReinaldoP
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 0
11 years 3 months ago #60969
by ReinaldoP
Replied by ReinaldoP on topic Tool offset
I was trying it out with MDI only before applying it to the programs I run in auto. And weirdly the offsets worked like a champ when running in auto mode (I had not tried it yet thinking it wouldnt work also).
So to answer your question YES the problem only happens in MDI mode apparently.
So to answer your question YES the problem only happens in MDI mode apparently.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
11 years 3 months ago #60973
by andypugh
In that case I suggest seeing if it gets fixed when the other bug gets fixed. It sounds very simple, and probably(?) doesn't cause any problems when actually making parts?
Replied by andypugh on topic Tool offset
ReinaldoP wrote: I was trying it out with MDI only before applying it to the programs I run in auto. And weirdly the offsets worked like a champ when running in auto mode (I had not tried it yet thinking it wouldnt work also).
So to answer your question YES the problem only happens in MDI mode apparently.
In that case I suggest seeing if it gets fixed when the other bug gets fixed. It sounds very simple, and probably(?) doesn't cause any problems when actually making parts?
Please Log in or Create an account to join the conversation.
Time to create page: 1.341 seconds