Cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger a Source by method

Pioneer
Pioneer

Is there any way to trigger a Source by method, when the Time of Creation of the Source is set as Delivery Table, in which the Delivery Time is set as 0.

8 REPLIES

Re: How to trigger a Source by method

Pioneer
Pioneer

If this function is not possible, is there some other ways to create a list of MUs  on a Line or a ParallelProc?

Re: How to trigger a Source by method

Siemens Phenom Siemens Phenom
Siemens Phenom

Check this:

YYY.png


Regards

Always consider using the AttributeExplorer!

Re: How to trigger a Source by method

Pioneer
Pioneer

Hello,

 

Thanks for your reply.

 

Unfortunately my Plant Simulation is version 12.0, so I couldn'd open your file. But from the image you attached, it was actually not exactly what I want.

 

To simplfy my question, my model is basically like this:

2.JPG

 

And the content of table is like this:

1.JPG

 

 

In this model, if I start a simulation, it will only produce the MUs on table for only once. What if I want it to produce the MUs on the table everytime I receive a "customer_order" from some other place, but not just produce only once from the very beginning? How to use the "customer_order" to trigger the Source?

 

Best regards

Re: How to trigger a Source by method

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you can create the MUs using a method, as destination you could use e.g. a parallelProc with a high capacity and without procTime.

For the creation you need a nested loop e.g.

 

local i:integer;

locak k:integer;

 

for i:=1 to deliveryTable.yDim loop

    for k:=1 to deliveryTable[3,i] loop

        deliveryTable[2,i].create( destinationObject);

    next;

next;

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: How to trigger a Source by method

Pioneer
Pioneer
Great! It works perfect! Thank you very much Smiley Happy

Re: How to trigger a Source by method

Siemens Phenom Siemens Phenom
Siemens Phenom

I just gave an example how to create MUs with a method. Find the spp attached in 12 now too.

 

Regarding your task: A simple solution (assuming the source is always producing the same set of parts) could be to set Source.MUSelection:="Sequence Cyclical" and with init Source.ExitLocked:=true. Each time you want to produce an order, by method you open the exit and start counting until you reached the amount of parts in your Table. After having reached this amount the exit should be locked again. Next order opens the exit, and so on.

 

In case you have to produce different orders, it is up to you to decide:

  • whether you introduce a number of sources referring to different lists and trigger the respective source accordingly
  • or to modify the list of a single source each time before you open their exit.

You'll not be able to do this task without method(s).

 


Regards

Always consider using the AttributeExplorer!

Re: How to trigger a Source by method

Experimenter
Experimenter
Hello All,

I need help in Trigger

I am creating a Model where sub assembly source to trigger when Main job reaches particular main line station

Re: How to trigger a Source by method

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
The easiest way would be: do not use a connector after the source, if your main part reaches the station, you can move the part from the source with simTalk:

subframe.source.cont.move(subframe.successorOfTheSource)
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net