In my model, the source produces two different types of MUs according to a table:
MU: .MUs.Type1 | Amount: 2 | Name: Product1
MU: .MUs.Type2 | Amount: 1 | Name: Product2
Following are 2 assembly stations - 1 buffer - 2 assembly stations. There are two workers.
At Station4, processing times are supposed to differ as follows:
MU-Type: Product1 | Time: 50.0
MU-Type: Product2 | Time: 1:10.0
With the init-Method, I want to set 1 of Product1 in the buffer, so that Worker2 starts working at Station3 straight away.
But when using
as soon as the part reaches Station4, there is an error saying there are "no custom processing times specified for Type1". Entering processing times for ".MUs.Type1" in the ProcTable doesn't help.
-> Is there a way to name the part in the buffer?
I've tried the following code, but am getting an error message at "is" already
is teil: object; do teil:= .MUs.Type1.create(Buffer) teil.setName(Product1) end
Solved! Go to Solution.
where did you get this piece of code (e.g. teil.setName(...)) from ?
It doesn't exist in SIMTALK
is teil :object; do teil:= .MUs.Type1.create(Buffer); if teil /=VOID then teil.Name:="Product1"; end; end;
Thanks for the solution, simulator, it worked like a charm! Had to adjust it for Plantsim 13 to
var teil :object; teil:= .MUs.Type1.create(Buffer) if teil /=VOID then teil.Name:="Product1" end
Indeed, I don't know any SimTalk (just started a couple of days ago). I was looking for a method that might work via 'right click - show attributes and methods' and it appeared on the list for the MU.
So apparently my mistake was "only" using the wrong syntax (I'm testing Plantsim 13 at the moment). It works when written in the same format as above:
var teil :object; teil:= .MUs.Type1.create(Buffer) teil.setName("Product1")