VTWOX is the wear system variable, used with classical T commands and TL commands
VDTWX seems to be the wear sys var for TD comands
...i have no clue about the differences between T TD & TL; asking inside the okuma forum may provide some clue
VTWOX is the wear system variable, used with classical T commands and TL commands
VDTWX seems to be the wear sys var for TD comands
...i have no clue about the differences between T TD & TL; asking inside the okuma forum may provide some clue
we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...
Hi everybody,
this is my program block:
Fanuc Model D /i-Mate
Series oi-TF
N4
T0404(finish cut)
G54
G28W0
M533B16000
M103S1000
G0X-33.0
G0Z2M307
G1Z1F200
G41
G1Z-4.0
G1X-35F1
G4X4
G1Z-2.73,C0.1
G1X-36
G4X4
G1Z-1.61,C0.1
G1X-37.1
G4X4
G1Z-1.15,C0.1
G1X-40.70
G4X4
G1Z0,C0.15
G1X-41.3Z0.2
M535
M309
G40
G28W0
G18G90G94G97
M1
I want to do a series of 5 pieces and I need an automatic wear compensation because the diameter is getting smaller when my workpiece is getting shorter.
I can do a sub program with the compensation, but how can I reset the compensation after the 5 pieces?
So in words
Compensate every piece by -0.01mm
After 5 pieces reset to 0
I am very apreciatet to any suggestion.
Greetings
Sascha
Tried as per below but auto correction is not working , any idea ? where am i wrong, thanks in advance
O1000
(MAIN PROGRAM)
...
...
M98 P100
M30
%
O100
#100 = #100 + 1
IF[#100 LT 50] GOTO99
G10 P6 U.0001
#100 = 1
N99
M99
%
This kind of statement does not need brackets. I'm glad I came cross this thread. I use Macro B a lot. Many years ago I used G10 to keep track of daily parts made and total parts made for each job. However, I quit doing that a long time ago because the operators never paid attention to the quantities.
Can't think of a part ATM where automatically adding or subtracting from the offset would be beneficial, but I know it has happened before and it is something good to know should I run into such a case again.
I am a little leery about using MDI to see if it works if I don't know where the number is that is being changed. I don't know if these values are in Sinha's book.
I think #1-#33 are cleared at every M1, M0, M99 or M30 but not positive about this. I believe some of our older Fanuc controls had one or two parameters that had to be changed so that #100-#149 values stayed active until the lathe was shut off.
Last edited by g-codeguy; 10-21-2022 at 10:54 PM.