cancel
Showing results for 
Search instead for 
Did you mean: 

CSE: #6332 and L6332

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

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

Legend
Legend

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

Re: CSE: #6332 and L6332

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello

 

Thomas Schulz
Siemens PLM
Manufacturing Engineering Software

Re: CSE: #6332 and L6332

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Thanks, Thomas!!!

Re: CSE: #6332 and L6332

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

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

Siemens Phenom Siemens Phenom
Siemens Phenom

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