You need to use the #TINDX template word in a #IF statement to determine
which codes are to be output..
#TINDX
Description: A flag distinguishing tool plane transition types:
0 = No tool plane change.
1 = Transition between parallel tool planes with the same origin.
2 = Transition between parallel tool planes with different origins
(3-D offset).
3 = Transition between nonparallel planes with the same origin
(index move).
4 = Transition between nonparallel tool planes with different
origins (index move and 3- D offset).
For example:
// A-AXIS INDEXING AND/OR FIXTURE LOCATION CHANGE
@TPINDX
#IF(#WKSCHG=1)<#EXIT>
#IF(#TINDX=3,#OR#TINDX=4)< ( INDEX TO A#INDXA DEGREES)
#MOV #ABSI #FXD Z#ZHOME(CLEARANCE POINT)
A#INDXA
M60 (A-AXIS BRAKE ON)>
#IF(#TINDX=2,#OR#TINDX=4)< (CHANGE TO FIXTURE LOCATION #WKPLN)
< #MOV #ABSI #FXD<#DCOMP> X#XPOS Y#YPOS Z#ZHOME #WKPLN>
=============================================
Fred Lauzus, CAM Programming Coordinator
High Steel Structures, Incorporated
mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.highsteel.com <http://www.highsteel.com/>
=============================================
-----Original Message-----
From: Jon Baker [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 06, 2000 4:47 PM
To: [EMAIL PROTECTED]
Subject: [mfg-smartcam] Ok foks, here I go again.
I use two different .tmp files for my programing, the only difference is
whether it is 4-axis or 3 axis machining. Other than that, the .TMP is the
same. Below are the two @TPINDX Sections from each style. How can I
combine these so I only have one .TMP file, that will output how I want
regardless of multiple vise stations, or rotary indexing.
The reason I want this is that when I make a change to one, I sometimes
don't make it to both, and I get two different versions of .TMP running.
I know I could just add a variable at the beginning, set it to either or,
and go, but..... there has to be a way of combining this.
Thanks
Jon
// A-AXIS INDEXING
@TPINDX
#IF(#WKSCHG=1)<#EXIT>
( INDEX TO A#INDXA DEGREES)
#MOV #ABSI #FXD Z#ZHOME(CLEARANCE POINT)
A#INDXA
M60 (A-AXIS BRAKE ON)
// FIXTURE LOCATION CHANGE
@TPINDX
(CHANGE TO FIXTURE LOCATION #WKPLN)
< #MOV #ABSI #FXD<#DCOMP> X#XPOS Y#YPOS Z#ZHOME #WKPLN
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================