help on toolist EC editor camworks
i had my toollist post out in the begin of the program, however;
i need to put the semicolon in front of the bracket of each tool.
I looKed in the lib. file and master.art mill. file. can't find it. please help
:C: GETTOOLS(2,SYSTEM)
POST OUT
G90 G20
N2F
;N3********* TOOLLIST**********
( STATION TOOL TYPE DIAMETER CORNER RADIUS DESCRIPTION )
( ------- --------- -------- ------------- -------------------- )
( 001 ENDMILL 00.500 .505 RT )
( 002 ENDMILL 00.250 .EM )
N5 G00 G90 G70 G40
N6G79 Z0
N7G16XY
N8M51 M52
N9M41;M42
N10;(DAN,YV)
N11;(UDA,Y/V)
N12(UTO,1,X-.5,Y.5,Z1)
THIS IS WHAT I WANT
;N3********* TOOLLIST**********
;( STATION TOOL TYPE DIAMETER CORNER RADIUS DESCRIPTION )
;( ------- --------- -------- ------------- -------------------- )
;( 001 ENDMILL 00.500 .505 RT )
;( 002 ENDMILL 00.250 .EM )
SEMICOLON IN FRONT
Re: help on toolist EC editor camworks
change your gettools command in the lib,try
:C: GETTOOLS(2,OUTPUT_TOOL_LIST)
add a section to configure your output in the .src
:SECTION=OUTPUT_TOOL_LIST
:T: <SEMICOLON><LEFT_PAR>T<"%2LNT":TOOL>=<TOOL_COMMENT ><RIGHT_PAR><EOL>
Add semicolon to your mill.lib file
:ATTRNAME=SEMICOLON
:ATTRTYPE=POST
:ATTREMARK=
:CODETYPE=HARDCODE
:CODE=;
:ATTREND
Let me know if it worked!
Re: help on toolist EC editor camworks
worked perfectly thanks you
Re: help on toolist EC editor camworks
HI
i got my toollist working, moreover; i need to add the tool protrusion ( stickout ) in the tool list help please anybody
(AKIRA SEIKI 2017)
(********* TOOLLIST**********)
( T01= 5.4MM JOBBER DRILL )
( T02= .25 4 FLUTE CRB EM .)
THIS WHAT IS NEED TO ADD TO THE TOOL LIST
(AKIRA SEIKI 2017)
(********* TOOLLIST**********)
( T01= 5.4MM JOBBER DRILL . STICKOUT 3.8 )
( T02= .25 4 FLUTE CRB EM . STICKOUT 2.5 )
TOOL_PROTRUSION
N_TOOL_PROTRUSION
NC_TOOL_PROTRUSION
Type
DECIMAL
Usage
This variable stores the tool protrusion from the bottom of the tool holder to the end of a mill tool or a drill tool.
:ATTRNAME=INI TOOL PROTRUSION
:ATTRTYPE=POST
:ATTRVTYPE=DECIMAL
:ATTREMARK=Z World Coordinate
:ATTREND
Re: help on toolist EC editor camworks
:SECTION=OUTPUT_TOOL_LIST
:T: <SEMICOLON><LEFT_PAR>T<"%2LNT":TOOL>=<TOOL_COMMENT > STICKOUT <"#1.3":TOOL_PROTRUSION><RIGHT_PAR><EOL>
Re: help on toolist EC editor camworks
Re: help on toolist EC editor camworks
Quote:
Originally Posted by
plast744
worked perfectly thanks you
Hi Plast744,
I was hoping you could help me out here. I am trying to do the same thing, i would like a list of the tools used in the code to be displayed at the beginning of the code in comments, but i cannot seem to add the correct sections. I added the section to the .src file and i modified the master mill.lib file, but i am getting an error and no code is being output. The error is "Error Adding Section - no name duplicate section name = ". I believe i have to add or modify a section in the master mill.lib file, but i do not know what to change.
Could you provide me with any guidance?
Thanks in advance.
Re: help on toolist EC editor camworks
I am quoting Brian from the CAMWorks forums at camworks.com, so all credit here goes to him. He has helped many people to get post issues straightened out over there.
(QUOTE)
In .src add the following sections with these variables in the :T:…
:SECTION=START_OUTPUT_TOOL_LIST
:T:<LEFT_PAR><TOOL_LIST_NUM><TOOL_LIST_TYPE><TOOL_ LIST_CRAD><TOOL_LIST_CWTOOLCOM><RIGHT_PAR>
:SECTION=OUTPUT_TOOL_LIST
:T:<LEFT_PAR><S_TOOL_NUM><S_TOOL_TYPE><S_TOOL_CRAD ><S_TOOL_COMMENT><RIGHT_PAR>
In the .lib for the specific post add these variables
*———————————–
:ATTRNAME=TOOL LIST NUM
:ATTRTYPE=POST
:ATTREMARK=
:CODETYPE=HARDCODE
:CODE=TOOL
:COLUMN=3
:ATTRSPACES=YES
:ATTREND
*———————————–
:ATTRNAME=TOOL LIST TYPE
:ATTRTYPE=POST
:ATTREMARK=
:CODETYPE=HARDCODE
:CODE=TOOL|TYPE
:COLUMN=13
:ATTRSPACES=YES
:ATTREND
*———————————–
:ATTRNAME=TOOL LIST CRAD
:ATTRTYPE=POST
:ATTREMARK=
:CODETYPE=HARDCODE
:CODE=CORNER|RADIUS
:COLUMN=29
:ATTRSPACES=YES
:ATTREND
*———————————–
:ATTRNAME=TOOL LIST CWTOOLCOM
:ATTRTYPE=POST
:ATTREMARK=
:CODETYPE=HARDCODE
:CODE=CAMWORKS|TOOL|COMMENT
:COLUMN=50
:ATTRSPACES=YES
:ATTREND
*———————————–
*———————————–
:ATTRNAME=S TOOL NUM
:ATTRTYPE=POST
:ATTRVTYPE=INTEGER
:ATTRINLEN=5
:ATTREMARK=
:CODETYPE=FORMAT
:VAR=TOOL
:WORD_ADDRESS_BEF=
:WORD_ADDRESS_AFT=
:LEFT_PLACES=2
:RIGHT_PLACES=0
:UNITFLAG=NON_CONVERT
:ATTRSPACES=YES
:MODAL=NO
:ATTRUSED=1
:COLUMN=5
:ATTREND
*———————————–
:ATTRNAME=S TOOL TYPE
:ATTRTYPE=POST
:ATTRVTYPE=INTEGER
:ATTREMARK=
:CODETYPE=SELECT
:VAR=TOOL_TYPE
:SELECT=201
:CODE=|FLAT ENDMILL|||||||
:SELECT=202
:CODE=|BALLNOSE ENDMILL|||
:SELECT=203
:CODE=|HOGNOSE ENDMILL||||
:SELECT=221
:CODE=|TAPERED ENDMILL||||
:SELECT=222
:CODE=|TAPERED BALLNOSE|||
:SELECT=223
:CODE=|TAPERED HOGNOSE||||
:SELECT=204
:CODE=|DRILL||||||||||||||
:SELECT=205
:CODE=|BORE|||||||||||||||
:SELECT=206
:CODE=|REAMER|||||||||||||
:SELECT=207
:CODE=|TAP||||||||||||||||
:SELECT=208
:CODE=|CENTER DRILL|||||||
:SELECT=209
:CODE=|CORNER ROUNDING EM|
:SELECT=210
:CODE=|COUNTERSINK||||||||
:SELECT=211
:CODE=|SINGLE PT THREAD MILL|
:SELECT=212
:CODE=|MULT. PT THREAD MILL||
:SELECT=213
:CODE=|DOVETAIL|||||||||||
:SELECT=214
:CODE=|KEYWAY|||||||||||||
:SELECT=215
:CODE=|UNKNOWN||||||||||||
:SELECT=216
:CODE=|LOLLIPOP|||||||||||
:SELECT=217
:CODE=|FACEMILL|||||||||||
:SELECT=218
:CODE=|UNKNOWN||||||||||||
:SELECT=301
:CODE=|ROUND INSERT|||||||
:SELECT=302
:CODE=|SQUARE INSERT||||||
:SELECT=303
:CODE=|TRIANGLE INSERT||||
:SELECT=304
:CODE=|35 DEG. DIAMOND||||
:SELECT=305
:CODE=|55 DEG. DIAMOND||||
:SELECT=306
:CODE=|80 DEG. DIAMOND||||
:SELECT=315
:CODE=|DIAMOND INSERT|||||
:SELECT=316
:CODE=|THREAD INSERT||||||
:SELECT=308
:CODE=|GROOVE INSERT||||||
:SELECT=309
:CODE=|DRILL||||||||||||||
:SELECT=310
:CODE=|CENTER DRILL|||||||
:SELECT=311
:CODE=|TAP||||||||||||||||
:SELECT=317
:CODE=|TRIGON INSERT||||||
:SELECT=318
:CODE=|HEXAGON INSERT|||||
:COLUMN=10
:ATTRUSED=1
:ATTREND
*———————————–
:ATTRNAME=S TOOL CRAD
:ATTRTYPE=POST
:ATTRVTYPE=DECIMAL
:ATTRINLEN=6
:ATTREMARK=
:CODETYPE=FORMAT
:VAR=TOOL_CORNER_RADIUS
:WORD_ADDRESS_BEF=
:WORD_ADDRESS_AFT=
:LEFT_PLACES=1
:RIGHT_PLACES=3
:MUST_BE_LEADING
:MUST_BE_TRAILING
:MUST_BE_DECIMAL
:UNITFLAG=NON_CONVERT
:ATTRSPACES=YES
:MODAL=NO
:ATTRUSED=1
:COLUMN=33
:ATTREND
*———————————–
:ATTRNAME=S TOOL COMMENT
:ATTRTYPE=POST
:ATTRVTYPE=CHARACTER
:ATTRINLEN=100
:ATTREMARK=
:CODETYPE=FORMAT
:WORD_ADDRESS_BEF=
:VAR=TOOL COMMENT
:WORD_ADDRESS_AFT=
:LEFT_PLACES=0
:RIGHT_PLACES=0
:UNITFLAG=NON_CONVERT
:ATTRSPACES=YES
:MODAL=NO
:ATTRUSED=1
:COLUMN=45
:ATTREND
*———————————–
Then if you don’t have the CALC_START_OF_TAPE section in your .lib for your specific post, copy it from the lathe.lib and add it.
Then before it calls the section… IF SECTION EXIST(START_OF_TAPE) THEN CALL(START_OF_TAPE)
Add this:
:C: CALL(START_OUTPUT_TOOL_LIST)
:C: GETTOOLS(2,CALC_OUTPUT_TOOL_LIST)
Then somewhere in that .lib file, after the CALC_START_OF_TAPE add this…
:SECTION=CALC_OUTPUT_TOOL_LIST
:C: CALL(OUTPUT_TOOL_LIST)
Essentially that will call a tool list header —- the START_OUTPUT_TOOL_LIST, then it will run and get tooling info for each tool and output it in the “OUTPUT_TOOL_LIST” section and keep looking for each tool there is used in that posted program.
There are other “tool” variables you can setup in there as well, look them up in the UPG. Setup them like I did the “S_xxxxxx” variables, changing the “VAR=” to that system variable. You can then use the “FORMATS” like these:
:WORD_ADDRESS_BEF=
:WORD_ADDRESS_AFT=
:LEFT_PLACES=1
:RIGHT_PLACES=3
:MUST_BE_LEADING
:MUST_BE_TRAILING
:MUST_BE_DECIMAL
to kind of put things in before or after the “value” and to make them have leading zero, etc and the number of decimal places.
The COLUMN= for each variable can be used to align the outputs. It essentially the number of spaces from the left side on where to write that info.
(END QUOTE)
I can elaborate on some of this if you still need help with it. Just let me know.