Cancel
Showing results for 
Search instead for 
Did you mean: 

Different Capacity for each entity type in ParallelProc and different bachs progress of entity

Creator
Creator

Hello Plant Simulation Community,

 

I am a student and I am new to the Software.

 

I would ask you an help to simulate an industrial process.

 

I have two matters:

 

1) I  have 2 different entities that enter a parallel process, but the capacity of this ParallProc change with the type of entity.

How could I solve it? I suppose I need a method and an attribute that determine the lotsize of each entity.

 

2) I want that the different entities go to next station only if the whole batch is processed but the dimension of the bach is different for each type of entity .

 

Thank you in Advance for support.

 

11 REPLIES

Re: Different Capacity for each entity type in ParallelProc and different bachs progress of entity

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
what is your Plant Simulation version?
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Different Capacity for each entity type in ParallelProc and different bachs progress of entity

Creator
Creator

Version 13.0.2

 

Sorry for late reply

Re: Different Capacity for each entity type in ParallelProc and different bachs progress of entity

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
first, you should use only one source, so that the batches arrives one after another; it would be helpful to know the batch-size with the first part, so you can set the capacity of the buffer e.g. in the exit control of the source (and you should wait for buffer_1.entranceLocked=false, before setting the capacity)

You can use the sequence table of the source to define an userdefined attribute with the batchsize.

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

Re: Different Capacity for each entity type in ParallelProc and different bachs progress of entity

Creator
Creator

Thank you for the help.

Unfortunately I am not able to upload file.spp

I need a batch of A=20 and a batch B=10 that move forward only if the whole batch of A or B is processed.

I have problems to write methods correctly.

I don't know if I must define a table as attribute for my entity or I can write a table in the Tab Attributes of the Source A specifying it in the coloumn Number.

 

Do I need methods called "PartEntrance" and "PartExit"  of my previous screen?

 

Sorry for my lack of undestanding, I know you are the Plant Simulation God. Smiley Happy

 

Re: Different Capacity for each entity type in ParallelProc and different bachs progress of entity

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
okay: first step

you should have a tableFile for the source (for the source setting MU selection - sequence). There you have also a column attributes. Type an x in this column and double click into the cell (or press F2). Here you can define your attribute (first column name: batchSize), in the column with the header integer: the batch size of this MU). This you make for all MUs in the tableFile.

When the Source creates MUs, you can check the user defined attributes of the MU, there should be then an attribute batchSize with the right value.
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Different Capacity for each entity type in ParallelProc and different bachs progress of entity

Creator
Creator

Thank you.

I have followed your first step. My result seems correct. Smiley Happy

Re: Different Capacity for each entity type in ParallelProc and different bachs progress of entity

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
looks good
second step

now you need two methods:

- init (in your frame): open the entrance of buffer1 and close the exit as a starting point
buffer1.entranceLocked:=false
buffer1.exitLocked:=true

- exit control of source (front)
--> wait until the entrance is open and not full - set the capacity of the buffer1 and move the part
waituntil buffer1.entranceLocked=false and buffer1.full=false prio 1
--set capa of buffer1
buffer1.capacity:=@.bufferSize
@.move




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

Re: Different Capacity for each entity type in ParallelProc and different bachs progress of entity

Creator
Creator

I have followed second step,

but at the end I wrote

buffer1.capacity:=@.batchSize

 instead of

buffer1.capacity:=@.bufferSize

beacuse method give me "uknown identifier"

 

I'm grateful for all this time that I'm keeping you busy. 

Re: Different Capacity for each entity type in ParallelProc and different bachs progress of entity

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

next step

 

now you need your old two methods for the buffer1

 

entrance control:

 

if ?.full then

--batch is complete move it to the ParallelProc

waituntil ParallelProc.empty prio 1

?.entranceLocked:=true

?.exitLocked:=false

end

 

exit control rear:

if ?.empty then

--new batch

?.exitLocked:=true

?.entranceLocked:=false

end

 

-- the first part of the new batch will set the capacity of the buffer1

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