Michael,
unless I've missed something, I think your trying too hard. I recorded the
following to accomplish what you described using the "User Elements -
Rectangle" macro to define the size and location of the pocket and then the
"Process - Roughing - Group Pocket" function to add the toolpath.
// insert at end of database
ELMT_SEQ[BA=1, EL="TOTEL()", ME=0]
// make layer 1 the active property
ON_LAYER[LY=1, WP="XY_PLANE", LV=-.375, PT=0]
// call rectangle macro
// the variables used are:
// #XS2=rectangle corner X coordinate
// #YS2=rectangle corner Y coordinate
// #AN=angle
// #RA=corner radius
// #D1=length
// #D2=width
// #LV=level
MAC_EXE[FN="sysmcl\\rect.mcl"]
// the rectangle is the active group
// add a clear value to the layer geometry
PCHG_ST[CN=1, CL=1.0, PN=2, OF=3]
// add a 3/4" end mill to planner
JOS_CONTEXT_NEW[BASEITEM=1, NEWSNCS=1030101, USERNAME="1000000"]
JOS_ITEM_NEW[BASEITEM=2, NEWSNCS=2410101]
JOS_FIELD_EDIT[FLDNAME="feedupt1", EXPR=".005"]
JOS_FIELD_EDIT[FLDNAME="speedcss", EXPR="100"]
JOS_FIELD_EDIT[FLDNAME="tl_num", EXPR="1"]
JOS_FIELD_EDIT[FLDNAME="ta_usrnam", EXPR="1"]
JOS_FIELD_EDIT[FLDNAME="tl_dia", EXPR=".75"]
JOS_CHANGES_PROMOTE[]
JOS_CONTEXT_CLOSE[]
// make the 3/4" end mill step the active property
WITH_STEP[ST=10, WP="XY_PLANE", OF=2, LV=-0.375, CL=0.1, PT=0]
// use group pocket to mill out the rectangle
GRP_POCK[TY=0, WC=.5*jos(tl_dia), FA=2.25, AN=0, DC=jos(tl_dia),
FL=0, AR=90, AC=90, RM=0, RT=0.001, UA=0, UT=0.001, LY=99,
NN="UNCUT", CC=1, CI=1, OP=0, EW=0, EP=0, RD=0, IP=0]
// remove the active group
NEW_GRP[]
=============================================
Fred Lauzus, CAM Programming Coordinator
High Steel Structures, Incorporated
mailto:[EMAIL PROTECTED] http://www.highsteel.com
=============================================
-----Original Message-----
From: Michael [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 5:16 PM
To: 'smartcam user group'
Subject: [mfg-smartcam] How can I add a pocket to this macro
Group,
I need to add a /375 deep pocket after the completion of
this macro. The panel sizes are all variable based. I want
to use a .750 flat cutter to cut a single depth rectangular
pocket. This is a bit beyond my comprehension, I need the
pocket to leave 2.25 uncut all the way around the outer
variable dimensions of the panel. ANyone?
Michael
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================