question

Ashmita G avatar image
0 Likes"
Ashmita G asked Ben Wilson edited

Process Flow label management for a Replenishment Logic.

The idea of the model is : Consider Queue1 and Queue2 hold 1 Box, each. The box may contain an in-built inventory of 10 parts, as shown in the global table. Every time a pallet arrives in a station, the adjacent queue must be checked for Parts. If the Current Inventory (Cur Inv) in the global Table is greater that the the Reorder Level (i.e. Pkg which is 5), the CurInv cell of the corresponding Queue must be decreased by 1. If the CurInv reaches the Reorder level; i.e. 5 in this case (Pkg), a trigger must be generated. The trigger generated must prompt the creation of one more box with the same in built inventory of 10 parts, like we started with in the beginning of the model.

1. How to pass the labels created in one process flow block, before it was pushed to the list onto the next process flow block, after we pull the token using pull from the list. In the ‘view entries’ option of the list I can see the labels created. However, on pulling the token I cannot find the labels attached to the token.

LabelPassing.PNG


2. Can a query using the Where clause be written in the 'Pull from List', such that it checks for the value in the global table? In this model, each station in the 3D model has a label, StaName, corresponding to which a string value denoting its Station value is assigned. Can we check the station in which the box arrives by pulling only the token corresponding to the station from the list?


3. How to ensure the Pallet reaching the station waits in the station itself until all the functions (upon it's arrival in the station) have been completed?

Doubt_Labels.fsm

FlexSim 20.1.1
flexsim 20.1.1replenishment logic
1605245014270.png (20.6 KiB)
labelpassing.png (40.0 KiB)
doubt-labels.fsm (50.6 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·


Hi @Ashmita G, was swami P2's answer helpful? If so, please click the red "Accept" button on their answers. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept or comment back to reopen your question.


0 Likes 0 ·

1 Answer

·
Swami Premnidhi avatar image
0 Likes"
Swami Premnidhi answered Ashmita G edited

@Ashmita G,

Attaching sample model for your reference.

M1.fsm

Que2 ans-

Here instead of creating label on stations , adding them to group and pushing group object to list.

Created global list and added expression field for storing name of station. And from there station can be pulled by using query "WHERE station="station1"

Que1 ans-

After pulled, token label can be restored or transfered using assign labels activity.

Que3 ans-

For stoping or resuming operation, you can stop pallet at station using custom code and then resume when requirements meet.



assignlabel.png (12.8 KiB)
customcode1.png (36.7 KiB)
m1sc.png (72.9 KiB)
m1.fsm (43.6 KiB)
· 7
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ashmita G avatar image Ashmita G commented ·

@swami P2 thank you for your speedy reply. However, I have couple of doubts pertaining to the solutions provided.

1. Doubt over Ques 3 :

In our use case, we want only the station concerned (i.e. the station which has had an object arrive on it) to stop the flowitem (i.e. the pallet). If we stop the conveyor, it will effect the movement of the other pallets travelling to the other stations on the conveyor as well. Could you suggest a remedy for this?


2. Doubt over Ques 2:

In our case we have several stations. When I pull a token from the list the reason I need to know which station has received the item is because, the consumption of flowitems from the line side queue may not be the same for every station. In such a case I must refer to a global table. The global table contains information corresponding to each station, like the Queue to deduct the flowitems from, how many flowitems to deduct, the current inventory, etc. In order to do so I was wondering if we can extract the station where the object has arrived. While pulling, thereafter, check along side a global table, with the station which has triggered a message stating a pallet has arrived, and then deducted the requisite number from the CurInv (i.e. the current inventory). Could you suggest the method for doing the same? What should the syntax be, because in the solution provided it checks against only one station, namely Station1.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Ashmita G commented ·

to doubt 1: It is a matter of design of your model. A conveyor and a station on the system will stop items by stopping or accumulating items. If you want to release an item on a conveyor to delay it, then you can add a loop of conveyors and let the item take a different route or let the item exit the conveyor system to processor.

to doubt 2: If it is important for you to know, where the item is in your model, then I would suggest you update this information in a label at the item whenever it is entering an object.
Otherwise the information, where the object is, is part of the node path. You can get this data by the property up of the object item.

0 Likes 0 ·
Ashmita G avatar image Ashmita G Joerg Vogel commented ·

@Jörg Vogel thank you for the reply. As per your suggestion I tried to update the labels at the point of interest. I used a custom code to decrement the value corresponding to the station triggering the On Arrival trigger. For simplicity I am working with only one row currently in the global table. However, there is an error. Could you kindly help understand.

ReplenishmentDoubt.fsm



0 Likes 0 ·
Show more comments
Swami Premnidhi avatar image Swami Premnidhi Ashmita G commented ·

@Ashmita G,

Doubt over Ques 3: Above mentioned custom code will stop pallet at station(It will not stop conveyor line)

Doubt over Ques 2: Attaching the sample model for your reference. updated sample model.fsm

0 Likes 0 ·
Ashmita G avatar image Ashmita G Swami Premnidhi commented ·

@swami P2 thank you for the explanations and the model. This is very helpful. I understand my misconception. Will look into the model and let you know in case of any doubt.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.