| Forums | Sign Up | Reply | Search | Statistics | Home Page |
Online now: Guests - 2
Members - 0
Most users ever online: 82 [5 Sep 2013 00:45]
Guests - 82 / Members - 0
Integrex Programming EIA integrexmachinist.com community built on miniBB / Integrex Programming EIA /

Tool Setting

 
tony pitzer
Forums Member
#1 | Posted: 22 Jun 2012 11:53
Reply 
We just bought a Integrex I200 with a Matrix control, and I was wondering if there is anybody out there using a macro program to set tools, our Mazak rep told us we would have to touch each tool up on the tool setter by jogging the machine, I find that hard to believe.
Thanks in advance.
MikiMajk
Forums Member
#2 | Posted: 23 Jun 2012 04:26 | Edited by: MikiMajk
Reply 
Hi Tony,

I know only 2 ways. In mazatrol you can automaticly measure tools with TOOL MEASURE UNIT and in EIA you can use G37/G36. But this is for Fusion640/Matirx Mk1. Your I-Inte200 has Matrix 2. Maybe it hase some differences regarding this. Check programming manual for what is Matrix 2 capable of, i'm sure that it has to have something INTELLIGENT)

Hope it helps,
Miki
Troglodyte
Forums Member
#3 | Posted: 24 Jun 2012 08:46
Reply 
This may be of help:

MT IN CYCLE TOOL WEAR MEASUREMENT USING TOOL EYE AND MAZATROL TOOL DATA IN
EIA/ISO (MACRO)

       The in cycle tool wear measurement in Mazatrol programming is easily
carried out and is obviously the preferred method.
       This macro uses use ISO programming for the measurement of tool
wear, while also using Mazatrol Tool Data (G53 active).
       When running a subroutine from a main program the subroutine may or
may not use the same Z axis datum as the main program. In addition to the
above the tool eye position relative to the component datum position will
change according to the component Z offset value.
       This presents problems when generating programs quickly and
efficiently as a common subroutine or programming format may not be used.
       This macro will allow the Z offset for a particular program to be
automatically calculated by the selected tool current position, and also
allow the position of the tool eye to be calculated by reading the relevant
tool eye and machine reference position parameters. This macro may then
effectively be run as a macro subroutine of any ISO/EIA or Mazatrol program
without the need to set the Z offset or to calculate the tool eye position.

The macro will measure tool wear against the initial Mazatrol Tool Set value
and will update the Wear column also on the Mazatrol Tool Set page.
Obviously it is necessary to initially set the tool length using the tool
eye in manual mode as is the normal practice.  

The Syntax for the call line is as follows:-

O9001(TOOL WEAR CALL)T0100.0101
G65 P9000 T1.0101 X1. Z1. D1. K.4 R0. S20. E0. C10.
M99
Troglodyte
Forums Member
#4 | Posted: 24 Jun 2012 08:48
Reply 
T0100.0101- TOOL CALL- (MUST BE WITHOUT ISO ADDITIONAL OFFSET AND IS CALLED
ON THE LINE BEFORE THE MACRO CALL)

T1.0101 - OFFSET TO BE UPDATED BY MACRO PROGRAM (OMIT THE TRAILING 00 ON
NORMAL TOOL CALL)

X1.-   X DIRECTION MEASUREMENT IS REQUIRED
Z1.-    Z DIRECTION MEASUREMENT IS REQUIRED
D1.-   TYPE OF  MEASURE CYCLE 1-O/D 2-O/D BACKTURN
                                           3-I/D   4-I/D BACKTURN
K0.4- TOTAL TOLERANCE FOR TOOL WEAR
R0.-  OVERSHOOT FOR RADIUS TYPE TOOL
       (OPTIONAL INPUT)
S20.- BACKBORING BAR WIDTH
        (ONLY REQUIRED ON TYPE 4 MEASURE)
E0. - TOOLEYE AT CYCLE END RETRACT (0)  EXTEND (1)
C10.- FAST FEED CLEARANCE PLANE. (DEFAULT 10MM)
        (OPTIONAL INPUT)
See diagram for operation pattern.





PARAMETERS.
       
Set the following parameters prior to use.
P10 bit 3 to 1.
P14 bit 7 to 1.
P16 bit 1 to 1.

VARIABLES

Set the following variables to suit the required conditions as required on
the particular machine.

#109=10. (CLEARANCE PLANE AROUND TOOL EYE SET IN INCHES
#110=2.(CLEARANCE PRIOR TO MEASUREMENT FEED SET IN INCHES)
#121=150 (X AXIS RAPID TO CLEARANCE-  PRIOR TO   PROTECTED MOVES SET IN
INCHES)
#117=100(SET THIS TO 1000 FOR MORE THAN 100 TOOLS)
#120=500(FEED RATE FOR PROTECTED FAST FEED SET IN INCHES)
#122=50 (Z AXIS CLEARANCE AT CYCLE END INCHES)
#123=3 (3 IS DEFAULT CHANGE TO 4 FOR MULTIPLEX HEAD 2)
#124=2 (2 IS DEFAULT CHANGE TO 7 FOR M/PLEX HEAD 2)

OPERATION PATTERN DIAGRAM.
Troglodyte
Forums Member
#5 | Posted: 24 Jun 2012 08:54
Reply 
O00009000(TOOL WEAR MEASURE MACRO)

(CALL VARIABLES)
(T- TOOL NUMBER)
(X- X CHECK - REQUIRED = 1 NOT REQUIRED = 0)
(Z- Z CHECK - REQUIRED = 1 NOT REQUIRED = 0)
(D -DIRECTION OF MEASURE - OD FORWARD = 1 - OD REVERSE = 2 ID FORWARD = 3  ID REVERSE = 4 )
(K- TOLERANCE)
(R- TOOL TIP RADIUS OVERSHOOT)
(S- SHANK SECTION ON ID REVERSE- Z AXIS)
(E- TOOL EYE REMAIN EXTENDED 0-NO 1-YES)
(C-INITIAL CLEARANCE- DEFAULT 10MM MIN 3MM)
(NOT USED I-OFFSET NUMBER FOR EIA/ISO OFFSET UPDATE- 0 MAZATROL WEAR DATA)
(PRIOR TO USE SET THE FOLLOWING PARAMETERS)
#109=.5 (CLEARANCE PRIOR TO FAST FEED)
#110=.08(CLEARANCE PRIOR TO SLOW FEED)
#121=6. (X AXIS CLEARANCE RAPID)
#117=100.(SET TO 1000 FOR GT100 TOOLS)
#120=50.(FAST FEED RATE)
#122=2. (Z AXIS CLEARANCE AT CYCLE END)
#123=3(3 DEFAULT)
#124=2(2 DEFAULT)
#115=.03937 (INCH FACTOR)
#116=.002 (INCH ZONE)
#119=10000. (INCH PARAMETERS)
#125=.125 (INCH MIN CLEARANCE)
#118=[#20/#117]
IF [#3LT#125] GOTO 3 (SET CLEARANCE VALUE)
#109=#3
N3
IF [#6 EQ #0] GOTO 800
IF [#6 EQ 0] GOTO 800
IF [#20 EQ 0] GOTO 1000
IF [#20 EQ #0] GOTO 1000
IF [#24 GT 1] GOTO 1100
IF [#24 EQ #0] GOTO 1100
IF [#26 GT 1] GOTO 1100
IF [#26 EQ #0] GOTO 1100
IF [#7 EQ 0] GOTO 1200
IF [#7 GT 4] GOTO 1200
IF [#8 EQ #0] GOTO 1300
IF [#8 GT 1] GOTO 1300
IF [#7 NE 4.] GOTO 5
IF [#19 EQ #0] GOTO 900
IF [#19 EQ 0] GOTO 900
N5
G28V0.
G28U0.
G53
#108=#20(TOOL DATA NUMBER)
#101=#9101 (ACTUAL MAIN Z OFFSET)
#102=PEEK [5,#123,61] (B61)
IF [#102 EQ 0] GOTO 10
#102=#102/#119
N10
#103=PEEK [5,#123,62] (B62)
IF [#103 EQ 0] GOTO 20
#103=#103/#119
N20
#104=PEEK [5,#123,63] (B63)
IF [#104 EQ 0] GOTO 30
#104=#104/#119
N30
#105=PEEK [5,#123,64] (B64)
IF [#105 EQ 0] GOTO 40
#105=#105/#119
N40
#106=PEEK [5,1,8,2] (A8)
IF [#106 EQ #0] GOTO 50
#106=#106/#119
GOTO 55
N50
#106=0
N55
(Z TOOL EYE POSITION)
#107=#105-#106-#101
M05
M83
IF [#7EQ1.] GOTO 60
IF [#7EQ2.] GOTO 100
IF [#7EQ3.] GOTO 140
IF [#7EQ4.] GOTO 180
GOTO 600
N60
(O/D FORWARD MEASURE)
IF [#24+#26EQ2] GOTO 70 (BOTH)
IF [#24EQ1] GOTO 70 ( X ONLY)
IF [#26EQ1] GOTO 80 ( Z ONLY)
GOTO700
N70
(TURN TOOL FRONT X )
G00Z[#107+#109] (RAPID TO POSITION)
G00 X[#104+#121]
G31X[#104+[#109*2.]]  F[#120]
#1=[#104+[#109*2.]] (TARGET POSITION)
IF [ABS[#5041-#1]GE#116]GOTO1400 (X CHECK POSITION)
G31Z[#107-[0.5*#103]-#18] F[#120]
#2=[#107-[0.5*#103]-#18]
IF [ABS[#5042-#2]GE#116]GOTO1400 (Z CHECK POSITION)
G31X[#104+[#110*2.]] F[#120]
#1=[#104+[#110*2.]]
IF [ABS[#5041-#1]GE#116]GOTO1400 (X CHECK POSITION)
(IF [#4EQ0] GOTO 75
G36X0.K#6P#4Q2A0.
GOTO 76)
N75
G36X0.K#6T#108Q2A0.
N76
G31X[#104-[2*#115]] F[30.*#115]
G00X[#104+[#109*2.]]
G37
IF [#26 EQ0] GOTO 90
N80
(TURN TOOL FRONT Z)
G00Z[#107+#109] (RAPID TO POSITION)
IF[#24EQ1]GOTO85
G00 X[#104+#121]
N85
G31X[#104-#102-[2.*#18]]F[#120]
#1=[#104-#102-[2.*#18]]
IF [ABS[#5041-#1]GE#116]GOTO1400 (X CHECK POSITION)
G31Z[#107+#110]F[#120]
#2=[#107+#110]
IF [ABS[#5042-#2]GE#116]GOTO1400 (Z CHECK POSITION)
(IF [#4EQ0] GOTO 86
G36Z0.K#6P#4Q2A0.
GOTO 87)
N86
G36Z0.K#6T#108Q2A0.
N87
G31Z[#107-[1.*#115]] F[30.*#115]
G00Z[#107+#109]
G37
N90
G28U0.
G00Z[#107+#109+#122]
GOTO500
N100
(O/D REVERSE MEASURE)
IF [#24+#26EQ2] GOTO 110 (BOTH)
IF [#24EQ1] GOTO 110 ( X ONLY)
IF [#26EQ1] GOTO 130 ( Z ONLY)
GOTO 700
N110
(TURN TOOL BACK X )
G00Z[#107-#109-#103] (RAPID TO POSITION)
G00X[#104+#121] (RAPID TO 100MM FROM EYE)
G31X[#104+[#109*2.]] F[#120]
#1=[#104+[#109*2.]]
IF [ABS[#5041-#1]GE#116]GOTO1400 (X CHECK POSITION)
G31Z[#107-[0.5*#103]+#18]F[#120]
#2=[#107-[0.5*#103]+#18]
IF [ABS[#5042-#2]GE#116]GOTO1400 (Z CHECK POSITION)
G31X[#104+[#110*2.]] F[#120]
#1=[#104+[#110*2.]]
IF [ABS[#5041-#1]GE#116]GOTO1400 (X CHECK POSITION)

(IF [#4EQ0] GOTO 112
G36X0.K#6P#4Q2A0.
GOTO 113)

N112
G36X0.K#6T#108Q2A0
N113
G31X[#104-[2.*#115]] F[30.*#115]
G00X[#104+[#109*2.]]
G37
IF [#26 EQ0] GOTO 135
N130
(TURN TOOL BACK Z )
IF[#24EQ1]GOTO133
G00Z[#107-#109-#103] (RAPID TO POSITION )
G00X[#104+#121](RAPID CLEAR)
N133
G00Z[#107-#109-#103] (RAPID TO POSITION )
G31X[#104-#102-[2.*#18]]F[#120]
#1=[#104-#102-[2.*#18]]
IF [ABS[#5041-#1]GE#116]GOTO1400 (X CHECK POSITION)
G31Z[#107-#103-#110]F[#120]
#2=[#107-#103-#110]
IF [ABS[#5042-#2]GE#116]GOTO1400 (Z CHECK POSITION)
(IF [#4EQ0] GOTO 133
G36Z-1.K#6P#4Q2A0
GOTO 134)
N133
G36Z-1.K#6T#108Q2A0
N134
G31Z[#107-#103+[1.*#115]] F[30.*#115]
G00Z[#107-#103-#109]
G37
N135
G28U0.
G00Z[#107+#109+#122]
GOTO500
N140
(I/D FORWARD  MEASURE)
IF [#24+#26EQ2] GOTO 150 (BOTH)
IF [#24EQ1] GOTO 150 ( X ONLY)
IF [#26EQ1] GOTO 155 ( Z ONLY)
GOTO700
N150
(I/D TOOL FRONT X )
G00Z[#107+#109](RAPID TO POSITION)
G00 X[#104+#121]
G31X[#104-[2.*#102]-[#109*2.]] F[#120]
#1=[#104-[2.*#102]-[#109*2.]]
IF [ABS[#5041-#1]GE#116]GOTO1400 (X CHECK POSITION)
G31Z[#107-[0.5*#103]-#18]F[#120]
#2=[#107-[0.5*#103]-#18]
IF [ABS[#5042-#2]GE#116]GOTO1400 (Z CHECK POSITION)
G31X[#104-[2.*#102]-[#110*2.]] F[#120]
#1=[#104-[2.*#102]-[#110*2.]]
IF [ABS[#5041-#1]GE#116]GOTO1400 (X CHECK POSITION)

(IF [#4EQ0] GOTO 151
G36X-1.K#6P#4Q2A0
GOTO 152)

N151
G36X-1.K#6T#108Q2A0
N152
G31X[#104-[2.*#102]+[2*#115]] F[30.*#115]
G00X[#104-[2.*#102]-[#109*2]]
G37
G00Z[#107+#109](RAPID TO POSITION )
IF [#26 EQ0] GOTO 160
(I/D TOOL FRONT Z)
N155
G00Z[#107+#109](RAPID TO POSITION )
IF[#24EQ1]GOTO156
G00 X[#104+#121]
N156
G31X[#104-#102+[2.*#18]]F[#120]
#1=[#104-#102+[2.*#18]]
IF [ABS[#5041-#1]GE#116]GOTO1400 (X CHECK POSITION)
G31Z[#107+#110]F[#120]
#2=[#107+#110]
IF [ABS[#5042-#2]GE#116]GOTO1400 (Z CHECK POSITION)
(IF [#4EQ0] GOTO 157
G36Z0.K#6P#4Q2A0
GOTO 158)
N157
G36Z0.K#6T#108Q2A0
N158
G31Z[#107-[1.*#115]] F[30.*#115]
G00Z[#107+#109]
G37
N160
G28U0.
G00Z[#107+#109+#122]
GOTO500
N180
(I/D REVERSE MEASURE)
IF [#24+#26EQ2] GOTO 190 (BOTH)
IF [#24EQ1] GOTO 190 ( X ONLY)
IF [#26EQ1] GOTO 195 ( Z ONLY)
GOTO700
N190
(ID TOOL BACK X )
G00Z[#107+#109+#19](RAPID TO POSITION)
G00 X[#104+#121] (RAPID TO TOOL EYE PLUS 100MM)
G31X[#104-[2.*#102]-[#109*2.]] F[#120]
#1=[#104-[2.*#102]-[#109*2.]]
IF [ABS[#5041-#1]GE#116]GOTO1400 (X CHECK POSITION)
G31Z[#107-[0.5*#103]+#18]F[#120]
#2=[#107-[0.5*#103]+#18]
IF [ABS[#5042-#2]GE#116]GOTO1400 (Z CHECK POSITION)
G31X[#104-[2.*#102]-[#110*2.]]F[#120]
#1=[#104-[2.*#102]-[#110*2.]]
IF [ABS[#5041-#1]GE#116]GOTO1400 (X CHECK POSITION)
(IF [#4EQ0] GOTO 191
G36X-1.K#6P#4Q2A0
GOTO 192)
N191
G36X-1.K#6T#108Q2A0
N192
G31X[#104-[2.*#102]+[2.*#115]] F[30.*#115]
G00X[#104-[2.*#102]-[#109*2.]]
IF [#26EQ1] GOTO 194
G00 Z[#107+#109+#19]
N194
G37
IF [#26 EQ0] GOTO 200
N195
(ID TOOL BACK Z)
IF [#24EQ1]GOTO 196
G00 Z[#107+#109+#19]
G00 X[#104+#121]
N196
G31X[#104-[2.*#102]-[#109*2.]]F[#120]
#1=[#104-[2.*#102]-[#109*2.]]
IF [ABS[#5041-#1]GE#116]GOTO1400 (X CHECK POSITION)
G31Z[#107-#109-#103]F[#120]
#2=[#107-#109-#103]
IF [ABS[#5042-#2]GE#116]GOTO1400 (Z CHECK POSITION)
G31X[#104-#102+[2.*#18]]F[#120]
#1=[#104-#102+[2.*#18]]
IF [ABS[#5041-#1]GE#116]GOTO1400 (X CHECK POSITION)
G31Z[#107-#103-#110]F[#120]
#2=[#107-#103-#110]
IF [ABS[#5042-#2]GE#116]GOTO1400 (Z CHECK POSITION)
(IF [#4EQ0] GOTO 197
G36Z-1.K#6P#4Q2A0
GOTO 198)
N197
G36Z-1.K#6T#108Q2A0
N198
G31Z[#107-#103+[1.*#115]] F[30.*#115]
G00Z[#107-#103-#109]
G00X[#104-[2*#102]-[#109*2]]
G00Z[#107+#109+#19]
G37
N200
G28U0.
G00Z[#107+#109+#122]
GOTO500
N500
IF [#8EQ1] GOTO 550
M84
N550
M99
(ALARM AND TOOL EYE RETRACTION)
N600
M84
#3000=70(NO MEASURE TYPE IN CALL)
N700 M84
#3000=70(NO AXIS DEFINITION IN CALL)
N800 M84
#3000=70(NO TOLERANCE SIZE IN CALL)
N900 M84
#3000=70(NO SHANK SIZE IN  TYPE 4 CALL)
N1000 M84
#3000=70(NO TOOL STATEMENT IN CALL)
N1100 M84
#3000=70(INCORRECT AXIS IN CALL)
N1200 M84
#3000=70(INCORRECT MEASURE CYCLE IN CALL)
N1300 M84
#3000=70(INCORRECT TOOL EYE COMMAND)
N1400
#3000=70(PATH OBSTRUCTED)
N1500
#3000=70(ILLEGAL OFFSET CALL)
M30
 

:);):-p:-(More smilies...  Disable smilies in post
Your reply
Bold Style  Italic Style  Image Link  URL Link 

» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.
 

Forums are powered by miniBB®