Cancel
Showing results for 
Search instead for 
Did you mean: 

Assembly table is number of entities is unknown

Pioneer
Pioneer

Hello,

 

I am using a container and expect entities to fill the container in assembly but the dimension of each container is unknown, it is stochastically set through Container.YDim.

 

Thus for the assembly table specification, I am not able to use Predecessor or MU Type as the values are not known. Will slelcting none only move one entitiy onto the container?

12 REPLIES

Re: Assembly table is number of entities is unknown

Phenom
Phenom
When the Container enters the assemblystation it can trigger an entry Methode.

With ".... :=@.capacity" you can determine the container capacity to update the MU Count in the assemblylist

Re: Assembly table is number of entities is unknown

Pioneer
Pioneer

Thank you Simulator.

 

Just to clarify, I will select the MU Type for the assembly table. Then trigger a method on entrance of the assembly?

 

Will the code look something like this:

 

.Entity.Number := @.capacity;

As in the assembly table I will select MU Type but then I need to specify the MU type and the number. The YDim os the container will be the number of entities I need to be assembled.

Re: Assembly table is number of entities is unknown

Phenom
Phenom

to keep it easy.

here are 2 assembly examples with entry methods to change the assemblylist:

 

 - "netzwerk"-frame with predecessors (2,3,4)

 - "netzwerk1"-frame with Mu names ("A","B","C")

Unbenannt.png

Re: Assembly table is number of entities is unknown

Pioneer
Pioneer

Thank you Simulator.

 

I have inserted the code as suggested but I dont know the value so my code looks as follows:

 

L := ?.assemblyList;
L.delete;

L[1,1] = "Container";
L[2,1] = 1;
L[1,2] = "Entity";
L[2,2] = @.Container.YDim;

As I need the the amount of entities to full the container. This, however is giving me the error " L table not instantiated" when it reaches L[2,2]?

Re: Assembly table is number of entities is unknown

Phenom
Phenom

in you code the columns are missing

 

e.g. L[1,L.ydim+1] := "Contianer"

 

Try this:

 

var L : table   := ?.assemblyList
L.delete

L[1,L.ydim+1]:= "Container";   L[2,L.ydim]:= 1
L[1,L.ydim+1]:= "Entity";          L[2,L.ydim]:= @.Container.YDim

Re: Assembly table is number of entities is unknown

Pioneer
Pioneer

I am a bit confused as to why the corresponding number of the entity in the table is YDim while the entity name is YDim+1?

Re: Assembly table is number of entities is unknown

Pioneer
Pioneer

is the structure of assembly list:

 

[MU1; MU2]

[Number1; Number2]

 

or

[MU1; Number1]

[MU2; Number2]

Re: Assembly table is number of entities is unknown

Phenom
Phenom
ydim give the Count of taken rows

if the list is empty then ydim =0

so if you set l[1,l.ydim+1]:="Container" then l.ydim becomes 1

Re: Assembly table is number of entities is unknown

Phenom
Phenom

@ structure of assembly list

please refer to the model I posted.

for both structures there is a Frame ("Netzwerk" / "netzwerk1