cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to evaluate the expression in the RETURN statement

Valued Contributor
Valued Contributor

Hi,

I'm working on version 11.1TR3 and ComauPdl controller Version 3.14

I'm having trouble on the return of the result of the SELECT statement of the PDL Comau.
I can not only extract the numerical value, because to extract the result of the RETURN statement, it comes with parentheses not assigned and is generating the program error to make the simulation, see the Debug below.

how do I extract just the numeric value? so that the CASE function not fail?2016-01-25_10-01-41.jpg

9 REPLIES

Re: Failed to evaluate the expression in the RETURN statement

Siemens Phenom Siemens Phenom
Siemens Phenom

try to change "RETURN(2)" into "RETURN 2" in the procedure...

 

or try to do change the operation commands from:

SELECT(back_HOME_opt(a,b,c,d)) OF

to

res:=back_HOME_opt(a,b,c,d)

SELECT(res) OF

Re: Failed to evaluate the expression in the RETURN statement

Valued Contributor
Valued Contributor

thanks.
but I did everything you asked for, but still giving me the result with a parenthesis.

 

2016-01-25_11-09-31.jpg

Re: Failed to evaluate the expression in the RETURN statement

Valued Contributor
Valued Contributor

I did too:
I placed parenthesis closing the back_HOME_opt Routine: SELECT (back_HOME_opt (I288_proceed_to_JOB_1, I289_proceed_to_JOB_2, I290_proceed_to_JOB_3, I291_proceed_to_JOB_4)) OF
and see the result:

 

2016-01-25_12-13-53.jpg

 

is it internal problem of the module?

Re: Failed to evaluate the expression in the RETURN statement

Siemens Phenom Siemens Phenom
Siemens Phenom

There is indeed an issue with parentheses inside SELECT call.

 

Please use this meanwhile it is fixed:

 

SELECT back_HOME_opt(a,b,c,d) OF

Re: Failed to evaluate the expression in the RETURN statement

Valued Contributor
Valued Contributor

Hi Gilles,

That really did not work.

I saw that you guys did an update, it in 2008:

 

2016-01-25_14-42-43.jpg

 

Is how do you fix this problem and send me a DLL for example? because I need urgently to test a line we are designing with robots Comau, and it takes this programming structure.

 

and thanks for listening!

Re: Failed to evaluate the expression in the RETURN statement

Siemens Phenom Siemens Phenom
Siemens Phenom

It is fixed in new version. It will take a couple of days to be available on GTAC...

Re: Failed to evaluate the expression in the RETURN statement

Valued Contributor
Valued Contributor

I even could do in XML, but the problem is that I can not map the robot signals "DynamicParameter"

 

 

 

If I could detect these signals, would do everything in XML

Re: Failed to evaluate the expression in the RETURN statement

Valued Contributor
Valued Contributor

I even could do in XML, but the problem is that I can not map the robot signals "DynamicParameter"

 

 2016-01-25_15-02-38.jpg

 

If I could detect these signals, would do everything in XML.

If there is a solution to this, would be better

 

Re: Failed to evaluate the expression in the RETURN statement

Valued Contributor
Valued Contributor

And how it is made the opening of this problem for the GTAC?

I'm waiting for the solution ...