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 2016-11-03 12:29:32

Vericut_McAtee
Senior Member
From: Fryeburg, Me.
Registered: 2011-07-17
Posts: 88

TOOL TYPE ASSOCIATED VARIABLE

I'm trying to develop an alarm so Vericut spits out a message that I'm using the wrong tool type to tap a hole, Using a drill instead of a tap or using a tap as a drill kind of problem. I thought a number for a type of tool if there is such a thing would help to make an alarm work. Any ideas out there?

Offline

#2 2016-11-04 15:24:54

pawelwmn
Beta User
Registered: 2011-10-28
Posts: 17

Re: TOOL TYPE ASSOCIATED VARIABLE

Hi,

Go to G-Code Processing > Events > Start of Processing > SubSystem:1 > add macro CurToolType > in OT field enter: Variable name - it will collect your tool type.

Description from VERICUT Help:

CurToolType # — The current tool type will be set in the specified variable number.
The tool type will be set to:
1 = milling tools
2 = turning tools
3 = probe
4 = tap tools
5 = waterjet tools
6 = knife tools
7 = polish tools
Example:
Override Text value = CurToolType 7000


I hope it helps smile

Offline

#3 2016-11-04 15:45:21

Vericut_McAtee
Senior Member
From: Fryeburg, Me.
Registered: 2011-07-17
Posts: 88

Re: TOOL TYPE ASSOCIATED VARIABLE

Thanks
Alarm works G84 must have a tool type 4

Now I need to make an alarm to make sure the code is using the same D value that is in the tool call line.
any idea's

Sample:

N1T7M6
(-H7-)
(.6299 CARBIDE ENDMILL)
(FINISH POCKET PROFILES)
G103R.315H7D7F0.T0C1
G0G90G54X-22.1534Y.3099A0.S428
G43H7Z1.
M0
(BLOCK CHECK)
M3
M8
Z.1
(UPPER HVPS FINISH)
G1Z-.551F10.
G41D7Y.6879F2.14

this code is correct with the right D value

N1T7M6
(-H7-)
(.6299 CARBIDE ENDMILL)
(FINISH POCKET PROFILES)
G103R.315H7D7F0.T0C1
G0G90G54X-22.1534Y.3099A0.S428
G43H7Z1.
M0
(BLOCK CHECK)
M3
M8
Z.1
(UPPER HVPS FINISH)
G1Z-.551F10.
G41D77Y.6879F2.14

This code has the wrong D value

Offline

#4 2016-11-05 20:40:29

pawelwmn
Beta User
Registered: 2011-10-28
Posts: 17

Re: TOOL TYPE ASSOCIATED VARIABLE

First check in your control which variable have a tool number in eg. Fanuc #4120. After that go to D word in your controler and set condition, this condition mus be set in D word before * *, and it sould look like this:

In Conditions:
and > Variable > your tool number variable (in my case 4120) > <>$

and the MessageMacro, OV:1, OT: Wrong D value

Offline

#5 2016-11-07 14:44:01

Vericut_McAtee
Senior Member
From: Fryeburg, Me.
Registered: 2011-07-17
Posts: 88

Re: TOOL TYPE ASSOCIATED VARIABLE

That was just what I was looking for, I put it in at the correct location and it works great.
Thank you

Offline

#6 2016-11-07 18:15:59

Vericut_McAtee
Senior Member
From: Fryeburg, Me.
Registered: 2011-07-17
Posts: 88

Re: TOOL TYPE ASSOCIATED VARIABLE

From above code

G103R.315H7D7F0.T0C1

This is a tool check line it positions the tool over a block and the machinist checks the length and the comp of the tool.
The R value is half the diameter of the tool.
Hence the .315 value and that is value is on the tool sheet.
The D7 is where that value is placed on the tool sheet.
I want to verify the R and the D are the same for that tool.
I can't seem to get this to work correctly using the same method as earlier posted.
Any help would be greatly appreciated.

Offline

#7 2016-11-08 09:36:52

pawelwmn
Beta User
Registered: 2011-10-28
Posts: 17

Re: TOOL TYPE ASSOCIATED VARIABLE

You can do something like this:

1 - you need to define word G103 > as NullMacro
2 - under D Word define two Conditions in Add/Modify Word/Adress window (not as separated, but as one): first: and G103
second: and > Variable 4120 (tool number) > <>$ - MessageMacro..
This condition you need to put before, this previous (and > Variable > your tool number variable (in my case 4120) > <>$)
3- go to Start of Processing > SubSystem:1 > define variable for tool radius: SetDynamicVars OT: CurToolRadius variablename (in eg.7000)
4-  go to R Word and define two Conditions in Add/Modify Word/Adress window (not as separated, but as one):
first: and G103,
second: and > Variable 7000 (tool radius) > <>$ - MessageMacro..
5- not necessary but may be needed, under R define Conditions: R and G103 > IgnoreMacro (add it after point 4 from this instruction).

I hope it's clear for You smile

Offline

#8 2016-11-08 11:24:27

Vericut_McAtee
Senior Member
From: Fryeburg, Me.
Registered: 2011-07-17
Posts: 88

Re: TOOL TYPE ASSOCIATED VARIABLE

I sent my file summary to tech support between this an them I should be able to get what I'm looking for.
You've been very helpful!
Thanks

Offline

#9 2016-11-08 16:27:53

Vericut_McAtee
Senior Member
From: Fryeburg, Me.
Registered: 2011-07-17
Posts: 88

Re: TOOL TYPE ASSOCIATED VARIABLE

Daniel  from tech support came up with a nice alarm that I only had to add on to an exiting G code processing made for the G103
not (Variable: #18 #13000)
All's well
Thanks to all involved!

Offline

Board footer