PDA

View Full Version : New Machine Build Looking to add tool list output to post processor (Esprit 2016)



helbonikster
10-23-2017, 08:56 AM
Hello, I am building an Esprit post for our new Tsugami mill. Everything is working fine so far, but I can't for the life of me figure out how to get a list of all the tools used in the program at the beginning of the program.

In other words, I would like a comment at the start of the program that lists the tools used. Does anyone know how this could be done? I've tried everything I can think of from trying to list ToolChangeComment, to clstring(498), and a bunch of other random things I've tried. So far nothing has worked the way I want it to.

Does anybody have any experience with advanced post editing?

dvo17030
11-27-2017, 12:13 PM
Ex_MachineSetup : If (NextCLFile(1562)=0)
: "(******************** TOOL LIST ********************)"
: WhileCount=(1)
: While(WhileCount<=50) ## Change logic to filter desired tools for current program path
: If (ToolList(WhileCount)<>0)
: IOString=(ToolList(Whilecount))
$ConvertStringToMultiLineComment
BlankLine
: EndIf
: WhileCount=(WhileCount+1)
: EndWhile
: "(***************************************************)"
: BlankLine
: EndIf

helbonikster
12-05-2017, 01:19 PM
Thank you for the response! Unfortunately, I am getting several errors with this code:


Ex_MachineSetup : If (NextCLFile(1562)=0)
2 : "(******************** TOOL LIST ********************)"
3 : WhileCount=(1)
------------------------------------------^
Reference to an undefined item
Error Code:10
4 : While(WhileCount<=50)
-----------------------------------------------^
Invalid expression
Error Code:15
5 : If (ToolList(WhileCount)<>0)
---------------------------------------------^
Invalid expression
Error Code:15
6 : IOString=(ToolList(Whilecount))
------------------------------------------^
Reference to an undefined item
Error Code:10
7 $ConvertStringToMultiLineComment
BlankLine
: EndIf
8 : WhileCount=(WhileCount+1)
------------------------------------------^
Reference to an undefined item
Error Code:10
9 : EndWhile
10 : "(***************************************************)"
11 : BlankLine
12 : EndIf
13


Unfortunately, I'm only just beginning to learn post editing, and I'm not sure how to correct these errors. Any thoughts?

dvo17030
12-05-2017, 02:04 PM
Variable : TempString ToolList(1..50) WhileCount IOString CRLFLocation BeforeCRLF AfterCRLF
Add this to your Variable

helbonikster
12-06-2017, 07:11 AM
Thank you. This worked, however, the tool list is actually outside of the starred brackets.

Example:

( T5 | H5 | .03 Endmilll )
(******************** TOOL LIST ********************)
(***************************************************)

dvo17030
12-06-2017, 09:45 AM
do you mind send me your Post???

Forza
12-26-2017, 06:40 AM
Add this.
ex_ToolDefinition : T* OutputString("(" + clstring(498) + ")") TOOLCHANGECOMMENT(1)