Cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Source

Pioneer
Pioneer

Hi, I have a source to simulate the arrival of products from a supplier but I only want that it provides me when my stock is below a percentage. Well to do this I put the source in failed when the stock is enough and I trigger the method in order to put failed:=false when I need material. the problem is that when the material arrives, the number of parts I received are much more (around(110parts) than I put as batch (25 parts).

I think that the program remember the number parts which should have arrived in a time but they couldn't and give me all of them when the source is not failed. Could anyone say me what I'm doing wrong and what to do if I only want to received the exatly number of parts that I defined as a batch?

 

problem singleproc.png

 

Thank you

3 REPLIES

Re: Problem Source

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
this is caused by the setting "blocking". But in your case it may also work, if you create the necessary parts by Simtalk, if the stock reaches a certain level.

And the tableFile in your picture has not the right format for the setting sequence cyclical (should contain in the second column the number of parts).
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Problem Source

Pioneer
Pioneer

The problem is that if I disable the option blocking, the source only give me one part of the batch (25 parts).

 

**The table is not the parts table, it is the interval table. Now I put the parts table

 

aaaaaaa.png

Re: Problem Source

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
insert a buffer after the Source, so that the source can deliver all parts; this should work

but in your case, you should produce the parts with SimTalk, when you expect the delivery.
Create a method, that creates the batch and call this method with a delay (deliver time), if the stock has reached its limit (see method methCall).
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net