06-14-2017 04:07 AM
Hello all,
I have a question about exitlocked. I have an assembly station and produce 2 different products.
The number of 1. Product(blue): 10
The number of 2. Product(green): 10
There is a supermarket in the assembly line. A worker goes to supermarket and carry the parts for the main part.
There are 4 parts(light blue, dark green, yellow, pink) and 4 different buffers for each in the supermarket. The problem is that the worker goes and take these parts one by one. But the worker must take only for instance part A for the first product.
1. Product(blue) --> 1. Part (light blue)
2. Product(green)--> 2. Part (dark green)
There are 10 Product blue, but the worker carries the other parts. He must for the first 10 parts take 10 light blue parts. I added a picture of the model and the Method for the assembly station. I tried to add exitlocked option but I think I make something wrong.
Best Regards,
Beril
Solved! Go to Solution.
06-14-2017 05:07 AM
it could work with some extensions;
first: you need to lock all exits in the init
second: add an exit control rear to all supermarket stations and lock there the exit again (otherwise the exit keeps open until the next part has entered the assembly station)
Then you need in your method in the assembly station only to open the right exit.
Steffen Bangsow freelance simulation specialist web: www.bangsow.eu mail: steffen@bangsow.net | ![]() |
06-14-2017 08:35 AM
I tried it, but didn't work. Could you check the picture that I loaded?
Thanks a lot.
Regards, Beril
06-14-2017 08:41 AM
Steffen Bangsow freelance simulation specialist web: www.bangsow.eu mail: steffen@bangsow.net | ![]() |
06-14-2017 08:50 AM
He doesn't walk and carry the parts. Unfortunately, the simulation stops.
I tried other formulation below, but it doesn't work. He carries only the blue ones.
is
t:table[string,integer]
do
t.create;
if @.name="_2102" then
--write the parts into the table (name, quantity)
t.writeRow(1,1,"_04L103011",1);
t.writeRow(1,2,"_04L103011A",0);
t.writeRow(1,3,"_03N103011H",0);
t.writeRow(1,4,"_03N103011A",0);
VG_1.ExitLocked:=false;
elseif @.name="_3309" then
--write the parts into the table (name, quantity)
t.writeRow(1,1,"_04L103011",0);
t.writeRow(1,2,"_04L103011A",1);
t.writeRow(1,3,"_03N103011H",0);
t.writeRow(1,4,"_03N103011A",0);
VG_2.ExitLocked:=false;
end;
--set t as the assemblyList
?.assemblyList:=t;
end;
06-14-2017 09:08 AM
it should work, see example
If you only assemble one part, you dont need a assembly list (Plant Simulation assembles by default one part from each predecessor). Maybe there is something wrong with your setting for exit strategy carry part away...
Steffen Bangsow freelance simulation specialist web: www.bangsow.eu mail: steffen@bangsow.net | ![]() |
06-15-2017 09:36 AM
Yes, it works when there are only parts and main parts. I am trying to solve this problem but the exit thing may not the solution for it...
In my model, I have 2 main parts.
Firstly, I assemble i.e. a container with boxes and parts. One container has 3 boxes and each box has 8 parts.
This container goes to VG_1(buffer capacity:1). But actually there are 24 parts in it.
The worker goes to VG_1 and take the container (24 Parts). The first main part needs only 1 part and I wrote it in the assembly list.
I dismantle the container again in order to use the parts.
I think it doesn't work because of the capacity differences.
Do you have any idea?
Regards, Beril
06-15-2017 09:59 AM
Steffen Bangsow freelance simulation specialist web: www.bangsow.eu mail: steffen@bangsow.net | ![]() |
06-15-2017 10:10 AM
I can not carry the single parts, I have to carry the pallet/container which has 24 parts to pick up place. Because the worker(namely linefeeder) does it so in the reality.
Then the worker or machine in the assembly line take a single part from the pick up place and assemble it.
06-15-2017 10:23 AM
look in the attached file, this is the easiest way to create your filled containers. You can fill them in an exitcontrol of a source with some lines of SimTalk. The amount of boxes and parts in boxeas you can control with the capacity of the containers.
Steffen Bangsow freelance simulation specialist web: www.bangsow.eu mail: steffen@bangsow.net | ![]() |