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

Failed to evaluate the expression in the RETURN statement

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?

9 REPLIES

Re: Failed to evaluate the expression in the RETURN statement

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

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

 

Re: Failed to evaluate the expression in the RETURN statement

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:

 

 

is it internal problem of the module?

Re: Failed to evaluate the expression in the RETURN statement

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

Hi Gilles,

That really did not work.

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

 

 

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!

Solution
Solution
Accepted by topic author silsat10
3 weeks ago

Re: Failed to evaluate the expression in the RETURN statement

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

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

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.

If there is a solution to this, would be better

 

Re: Failed to evaluate the expression in the RETURN statement

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

I'm waiting for the solution ...