VERICUT Users' Forum

Due to relentless spammers, we are no longer automatically accepting new forum registrations. If you wish to register for this forum, please send an e-mail to: info@cgtech.com

You are not logged in.

#1 2006-07-18 14:19:38

philm
Member
From: USA
Registered: 2006-07-18
Posts: 4

FANUC 15 TOOL IN SPINDLE VARIABLE NUMBER

DOES ANYONE KNOW IF THERE'S A VARIABLE NUMBER TO TELL YOU WHAT TOOL IS IN THE SPINDLE?
I KNOW #4120 IS T CODE VARIABLE BUT IT DOESN'T WORK FOR ME BECAUSE IT THINKS ITS ALREADY THERE.
EXAMPLE:
T1M6
G30ETC.
G30 ETC.
(PRESELECT TOOL)
T2
G01
XYZETC.

IF[#4120 EQ 1]GOTO N1(SKIPS TOOL CHANGE ENTIRELY)
T2M6
G30 ETC
G30 ETC
N1
T3

Offline

#2 2006-07-19 20:43:53

tri
Member
From: MA
Registered: 2005-11-28
Posts: 17

Re: FANUC 15 TOOL IN SPINDLE VARIABLE NUMBER

try this....

In the T Register
Original:
T *
  - (G 65 66 66.1)
     MacroVar
  - **
Variable: 4120
        Variable: 4320
        ToolCode

Modified:
T *
  - (G 65 66 66.1)
        MacroVar
  - **
        Variable: 4120
        Variable: 4320
        ToolCode

  - (M 6)
        Variable: 4121  <--- variable to compare
        ToolCode

Offline

#3 2006-07-19 21:23:10

SergeV
Senior Member
From: Irvine, CA
Registered: 2004-10-08
Posts: 507
Website

Re: FANUC 15 TOOL IN SPINDLE VARIABLE NUMBER

On FANUC the control, #4120 is the pre-selected tool, #4320 is the current active tool. To assign the active tool number to a variable (#4320), do as follow:


Configuration > Adv. Options...
Add/Modify
Macro name = SetDynamicVars
Override Text=CurTool 4320
Add

Offline

#4 2006-07-20 15:54:21

philm
Member
From: USA
Registered: 2006-07-18
Posts: 4

Re: FANUC 15 TOOL IN SPINDLE VARIABLE NUMBER

YOU MUST BE IN V6.0
I AM USING 5.4.5
HERE'S WHAT I HAVE.

CONTROL
WORD ADRESS


T
TOOL CODE
VARIABLE= 4120
VARIABLE=4320

I WENT TO G CODE
VARIABLES
ADDED
4120 INITIAL VALUE 18
4320 INITIAL VALUE 0

I RUN PROGRAM
4120 CURRENT TOOL=18
4320=CURRENT TOOL=18

PRESELECT
T70
4120 CURRENT TOOL =70
4320 CURRENT TOOL =70

WHAT AM I MISSING?

Offline

#5 2006-07-20 16:08:36

SergeV
Senior Member
From: Irvine, CA
Registered: 2004-10-08
Posts: 507
Website

Re: FANUC 15 TOOL IN SPINDLE VARIABLE NUMBER

Sorry,

6.0       Configuration > Adv. Options...
5.4.x    Setup > Control > Adv. Options...

and follow the previous steps.

Remove the reference to 4320 from the T Word and from the variable.
Keep the 4120 as it is defining the pre-selected tool and should be assigned with the T word.

Offline

#6 2006-07-20 16:21:42

philm
Member
From: USA
Registered: 2006-07-18
Posts: 4

Re: FANUC 15 TOOL IN SPINDLE VARIABLE NUMBER

THAT WORKED JUST FINE.
     THANKS

Offline

Board footer