You are not logged in.
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
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
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
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
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
THAT WORKED JUST FINE.
THANKS
Offline