question

Ankith T avatar image
0 Likes"
Ankith T asked Jeanette F commented

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

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.

FlexSim 21.1.5
rackseparatorcustom codeitems
· 3
5 |100000

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

Jeanette F avatar image Jeanette F ♦♦ commented ·

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 0 ·
Ankith T avatar image Ankith T Jeanette F ♦♦ commented ·
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 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

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 0 ·

1 Answer

Jeanette F avatar image
0 Likes"
Jeanette F answered Jeanette F commented

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


· 4
5 |100000

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

Ankith T avatar image Ankith T commented ·

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 0 ·
1683740203273.png (54.6 KiB)
Jeanette F avatar image Jeanette F ♦♦ Ankith T commented ·

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 0 ·
Ankith T avatar image Ankith T Jeanette F ♦♦ commented ·

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 0 ·
Show more comments