question

Raashid Mohammed avatar image
0 Likes"
Raashid Mohammed asked Adrian Haws edited

Batch each different types with random batch qantity

Token gets created with Parts ( 10 to 100) and Unique Type ( 1 to 3 )

For example lets say token type 2 and Part 60 entered the subflow

the Run Subflow splits the token by parts

Then the Batch has to combine those 60 tokens into random 10 to 20 Batch of that type

and send the batch to its destination

What I am trying to do is

I have chute which will send 10 to 100 boxes with type 1,2 or 3

I want to palletize same type of boxes random ( each pallet will accept 10 to 20 boxes)

then send it to respective detination to be processed

Problems

Sometimes the batch waits until it gets more parts of that type. I want it to release the batch after 10 seconds. for example parts value was 10 and batch quantity value was 20. the batch will wait until it gets all 20 of that same type. I want the batch to wait for 10 seconds and release the batch with that 10 in the batch but it release all the tokens instead batching them

Please help

Attached is the model

model3.fsm

Choose One
process flowbatchlabel aggregationonwaittimerfired
model3.fsm (17.6 KiB)
5 |100000

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

1 Answer

·
Adrian Haws avatar image
1 Like"
Adrian Haws answered Adrian Haws rolled back

Raashid,

In the "On Wait Timer Fired" options for "Release Batch" there is an box you can check called "Failed". As shown in the screenshot, all of the tokens will be released and will not be batched. If you simply uncheck the box then the tokens will be batched when the Max Wait time is reached.


batch.png (27.2 KiB)
· 2
5 |100000

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

Raashid Mohammed avatar image Raashid Mohammed commented ·

Thank you

I see it releases Batch but does not change the label of Batch to the token count ( number of token batched )

I have label aggregation Batch to put token count looks like it does not do it for realeased batch

0 Likes 0 ·
Adrian Haws avatar image Adrian Haws Raashid Mohammed commented ·

@Raashid Mohammed What you can do to fix that is add a "Set Label" function to the "OnWaitTimerFired" trigger in the Batch activity. Set the label on the parent token for "Batch" to be "collected". I've updated your model below.

0 Likes 0 ·
1782-model3-1.fsm (17.6 KiB)

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.