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

CSE/PP - second program in the background

Hello everybody,

 

is it possible to start a main simulation and run in the background a subprogram?
The subprog just contains some if/while queries.

 

Best wishes

Viktor

6 REPLIES

Re: CSE/PP - second program in the background

Hi VikP,

 

'in background' means 'in parallel'?

 

This can be realized by using a second channel.

 

ThomasF

Re: CSE/PP - second program in the background

[ Edited ]

That was my idea, too.

The second programd should be running parallel in the second channel.

 

I need to realize it without the sync manager and without using two nc codes manuel.

At all, is it possible?

 

I think I need to use MOM_run_postprocess, but I need an example for it.

Re: CSE/PP - second program in the background

Hi VikP,

 

the alternative can be to use the async motion functionality of CSE

Look into the chapter "Asynchronous Motions and Delays" of CSE help.

 

In that case you dont need to define a channel additonally 

 

ThomasF

 

 

Re: CSE/PP - second program in the background

Hi ThomasF,

 

thank you for this idea.

 

I use AddWaitTask for calling a method.

This method calls a subprog, but nothing happens.

Re: CSE/PP - second program in the background

Find attached an example of sim08 where tool change and rotation of table runs in parallel non-synchronized in one channel. Maybe that helps.

Thomas Schulz
Siemens PLM
Manufacturing Engineering Software
Solution
Solution
Accepted by topic author VikP
‎02-25-2016 10:16 AM

Re: CSE/PP - second program in the background

Hi Thomas,

 

I need to run parallel a subprog to the main prog. And this in one channel.

With the async action I dont get a well result. I dont get the subprog.

 

So now I made a two channel machine...

 

Best regards,

Viktor  

Learn online





Solution Information