Need help with Calling and freeing Human Resource
Posted: Thursday 22 December, 2022 - 16:59
Hi everyone,
at the moment my model works like I will explain in the following sentences:
There are two different production lines. Each production line has its own Source, Queue, Server and sink.
The goal is that there can only be one server manufacturing at a time. So for example when the server "Side1" is manufacturing, the server "Side2" cannot be running.
For this my actual attempt on this is like this:
First I have a trigger on entry for "Side1":
With this I can make sure that the Input channels of "Side1" and "Side2" are closed once a product enters "Side1".
The second code I wrote is for trigger on exit for "Side1":
With this code I can make sure that once "Side1" is finished manufacturing, the Input channel of "Side2" is opened and "Side2" begins with manufacturing.
The third code I wrote is again a trigger on entry but now it is for server "Side2":
Now I only need to close the Input channel of "Side2" as the input channel for "Side1" is already closed.
The fourth code is similar to the second code, but it is a trigger on exit for server "Side2":
With this code I will open the input channel of "Side1" once the server "Side2" is finished with manufacturing.
This model is working well, but there is something that I cant make work.
From now on there should be a trigger on exit that calls a human resource which then opens the input channer of the other server.
For trigger on exit at "Side1" I then tried:
and for the Human Resource I worte following code for trigger when called:
My question: How can I now tell the Human resource to go to "Side2" to open the input channel?
I dont know what code I need to write for the trigger on exit, so that the human resource goes to the other side to fulfill his task.
Thank you for your Help and please let me know if you need any more informations
Maxim
at the moment my model works like I will explain in the following sentences:
There are two different production lines. Each production line has its own Source, Queue, Server and sink.
The goal is that there can only be one server manufacturing at a time. So for example when the server "Side1" is manufacturing, the server "Side2" cannot be running.
For this my actual attempt on this is like this:
First I have a trigger on entry for "Side1":
Code: Select all
Do(
CloseInput(AtomByName([Side2],Model)),
CloseInput(c)
)
The second code I wrote is for trigger on exit for "Side1":
Code: Select all
OpenInput(AtomByName([Side2],Model))
The third code I wrote is again a trigger on entry but now it is for server "Side2":
Code: Select all
CloseInput(c)
The fourth code is similar to the second code, but it is a trigger on exit for server "Side2":
Code: Select all
OpenInput(AtomByName([Side1], Model))
This model is working well, but there is something that I cant make work.
From now on there should be a trigger on exit that calls a human resource which then opens the input channer of the other server.
For trigger on exit at "Side1" I then tried:
Code: Select all
HumanResourceTeam_CallResources(refHRTeam1, c, i,1)
Code: Select all
OpenInput(c)
My question: How can I now tell the Human resource to go to "Side2" to open the input channel?
I dont know what code I need to write for the trigger on exit, so that the human resource goes to the other side to fulfill his task.
Thank you for your Help and please let me know if you need any more informations
Maxim