Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

CSE: #6332 and L6332

Hello!

In my programm for TRAUB I use variables:

 

L636=ABS[L2121 - L2101] (LONG)

 

I using library parser and - cannot read L636 (L*****) as variable.

Good idea - PreprocessLine L1->#1 (L2->#2) not working and for string

 

L636=ABS[L2121 - L2101] (LONG)

method PreprocessLine return

#636=ABS[#2121 - L2101] (LONG) - with error message, of course.

 

Can you advise how I can use L as variable label?

 

Thanks?

5 REPLIES

Re: CSE: #6332 and L6332

Do you use the function replaceSubstr inside PreprocessLine, and it doesn't work?

Solution
Solution
Accepted by MarkRief (VIP)
‎11-11-2016 12:49 PM

Re: CSE: #6332 and L6332

Hello

 

Thomas Schulz
Siemens PLM
Manufacturing Engineering Software

Re: CSE: #6332 and L6332

Thanks, Thomas!!!

Re: CSE: #6332 and L6332

As we told in Russian - "The nose is pulled, but the tail stuck .."

Ok, Traub parser correctly recognised L Variables, but - new problem:

 

IF[[L1321EQ1]OR[L1331EQ1]]GOTO8002 - Error

 

Traub.png

 

 

Cannot to recognize [[.

String like

IF[L1332EQ0]GOTO8001 - no problem.

 

FANUC parser - no problem for this case.

Re: CSE: #6332 and L6332

Hello Chigichev,

 

I would like to ask you to open a PR for it.

We will fix it, as the TRAUB parser is still a DLL (not Python) we will check whether it make sense to switch to a Python, but that is not decided yet.

 

Thomas

 

 

Thomas Schulz
Siemens PLM
Manufacturing Engineering Software

Learn online





Solution Information