question

Rob avatar image
0 Likes"
Rob asked Joerg Vogel answered

alternating label

Hello community,

I´m looking for a solution to set alternating Labels.

Ex:
item 1: Label "AES"=0
item 2: Label "AES"=1
item 3: Label "AES"=0
item 4: Label "AES"=1
....
I want to send these items depending on the label value to different points on a conveyor.

Kind regards,

Robert

FlexSim 18.0.7
conveyorset label
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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

try the modulus operator of integer division

int AES = (item.Type)+1%2

or OnExit trigger or event of object

int AES = object.stats.output.value%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.

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.