how to get the number of contents on a separator using custom code

how to get the number of contents on a separator using custom code

athodupunoori
Participant Participant
20 Views
8 Replies
Message 1 of 9

how to get the number of contents on a separator using custom code

athodupunoori
Participant
Participant

[ FlexSim 21.1.5 ]

When a rack full of parts, lets say a rack has 10 parts in it. when the rack enters the separator, i would like to know the number of contents in the rack so that if the content reaches certain number such as 2 or 3, i would like to send another rack to the separator.

0 Likes
Accepted solutions (1)
21 Views
8 Replies
Replies (8)
Message 2 of 9

Jeanette_Fullmer
Community Manager
Community Manager

Hi @Ankith T,

To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

0 Likes
Message 3 of 9

athodupunoori
Participant
Participant
i would just like to know the custom code to know the number of items are there in pallet which is on the separator. i don't think i can provide a model which resembles my question because first step is to bring pallet to separator and next step is based on how many items are present in pallet.
0 Likes
Message 4 of 9

Jeanette_Fullmer
Community Manager
Community Manager
Accepted solution

Hello @Ankith T,

You can have an on entry trigger that looks like this. Line 5 is the code to see how many items are on the pallet.

1683669457709.png

seperator entry trigger.fsm

0 Likes
Message 5 of 9

athodupunoori
Participant
Participant

i want to use process flow for this. if i use on entry, i will get the number of items when item enter the separator. but want to have a flexibility to check when ever i need. i have pasted the small flow chat what i exactly needed. all the logic i mentioned in the flow chat is based on process flow.


1683740203273.png

0 Likes
Message 6 of 9

Jeanette_Fullmer
Community Manager
Community Manager

Sorry I misunderstood a detail from your original post. I would still use the on entry trigger but in process flow. Then calculate how many need to exit the separator to then trigger the next retrieval.

seperator entry trigger_1.fsm

0 Likes
Message 7 of 9

Jeanette_Fullmer
Community Manager
Community Manager

Hi @Ankith T, was Jeanette F's answer helpful? If so, please click the "Accept" button at the bottom of their answer. 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 and comment back to reopen your question.

0 Likes
Message 8 of 9

athodupunoori
Participant
Participant

But, lets say separator is doing its own work and i have a new rack at the source location. now i want to see how many parts are there on separator, if it has < 2 or may be 0 parts then i want to take this new rack to the separator, how does this can be possible if i used on entry trigger for separator

0 Likes
Message 9 of 9

Jeanette_Fullmer
Community Manager
Community Manager

You can use a list to sync up the two processes. When the token arrives at the push to list it will not move till it pulled from the list and the same is for the pull from list. It wont move till it successfully pulls from the list.

1684424297094.png

seperator-entry-trigger-2.fsm

0 Likes