What's new
What's new

Which parameter to get active D offset number

Minh

Plastic
Joined
Feb 8, 2016
Location
Westminster CA
Hello all,

Our machine: Kira KN40Hb, Using Fanuc 21i-MA

In our NC program, we use D offset:
G01G41D25X0Y-0.023F3.89

Which parameter allow me to have current tool's D offset number?
We'd like to add a check code to make sure that operator do not wrongly put D offset.
One operator wrongly put -.030 instead of -.003

If I can have this D number, I can use same code for all tools. We do not want to manually add code and matching D number for each tool.

Thank you very much.
Regards,
 
System variable #4107

Thank you very much Vancbiker.

Confirmed at our machine with below code:
(ADD THIS CODE AFTER G41DXX CODE)
IF[#[2000+#4107]LT-.006]GOTO9990
IF[#[2000+#4107]GT+.001]GOTO9990
GOTO9999
N9990
#3000=9(CALL SV-CHECK D OFFSET)
N9999

Our system is memory A, it take me a little while to figured out that I need to use #[2000+#4107] to get what I want.
 








 
Back
Top