Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

The maximum number of call-chains was exceeded

Creator
Creator

Hi!

   During the simulation get an error "plant simulation the maximum number of call-chains was exceeded" the method "pull" of some of pickandplace.
Already changed the value of "maximum number of call chains". This value is already at maximum (5000000) and keeps giving error. This error only happens when I enable (true) attribute "? .FailureActive" Some SingleProc. Their failures are set to "Availability" (true).

12 REPLIES

Re: The maximum number of call-chains was exceeded

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi pintodsp,

 

just select the tab "Call Chains" in the debugger:

Debugger.png

 

Because you are calling SetDestination in your robot the pull control is called. And in the pull control you call SetDestination. This continous until the limit is reached.

 

You are not supposed to call SetDestination in a pull control.

The purpose of a pull control is to choose which part of the block list should enter.

 

Regards,

Ralf

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: The maximum number of call-chains was exceeded

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi pintodsp,

 

when I reset the model and run it on my machine I don't get an error message?

 

Do you do anything special?

 

Regards,

Ralf

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: The maximum number of call-chains was exceeded

Creator
Creator

Hi Ralf. Thanks for the quick answer!
If I understood the command setDestination should be used only in targetControl?
What is the best command to use in PullControl?

Re: The maximum number of call-chains was exceeded

Creator
Creator

The EventCotroller the reset button clear the checkbox FailureActive of SingleProc.

failureActive.png

Re: The maximum number of call-chains was exceeded

Creator
Creator
You must click the button "Controle Simulação" and then click the checkbox "Parada por EG".

Re: The maximum number of call-chains was exceeded

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi pintodsp,

 

I guess your logic is not right:

elseif NOT ?.pred(4).reswaiting AND NOT ?.pred(4).Resworking 
	AND ?.succ(3).Empty  then
		--Vai para a brunidora 2
		?.SetDestination (?.pred(4));

 The intention in this code is probably to detect with 'reswaiting' and 'resworking' if a part is available at pred(4). In this specific case where you get the error the pred(4) is failed.

According to your logic you think there is a part available and you set the destination of the robot to pred(4). Now the robot detects that it is already there, but there is no part. Therefore the pull control is called to pull a part. And this starts the endless recursion.

 

Regards,

Ralf

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: The maximum number of call-chains was exceeded

Creator
Creator
This logic works if the attribute "FailureActive" is false. Is there any other way to the robot know more precisely when the part is available?

I started working with Plant Simulation to a month and learned all basically alone. I do not know if I'm doing my model in the best way. I'm having little (nothing) Siemens support in Brazil.

Re: The maximum number of call-chains was exceeded

Siemens Phenom Siemens Phenom
Siemens Phenom

To check if there is a part available you can use the following code:

if SingleProc.Cont /= void and SingleProc.Cont.Finished then
    -- Part is ready
end;

 

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: The maximum number of call-chains was exceeded

Creator
Creator
Worked!
Your code worked perfectly!

Thank you so much!