question

kimsh avatar image
0 Likes"
kimsh asked kimsh commented

subnodes.length + subnodes.length

q2.fsm


Hi.

I hung 3 triggers on the conveyor next to the queue, but it's not working.

In the condition, I put it to mean to work if it's below, is the code wrong?


Model.find("StraightConveyor3").subnodes.length + Model.find("StraightConveyor2").subnodes.length >6

I want to control the port when all the items are more than or less than a few on top of two green colored containers.

subnodes.length + subnodes.length
q2.fsm (41.9 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @kimsh,

Thank you for contributing to our community! We couldn't identify a maintained license or subscription linked to your account.

You may need to update your profile information to identify yourself as a license owner or their associate. Check out our article for how to ensure you receive timely support. If you update your profile comment back to let us know - we'll adjust the priority of your post accordingly.

If your current license is expired, please contact your local distributor to renew.

0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered kimsh commented

You want to evaluate two values, then you put them in in round brackets. This prioritizes a later logic comparison.

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

kimsh avatar image kimsh commented ·

Does that mean I should put parentheses as below?

(Model.find("StraightConveyor1").subnodes.length + Model.find("A").subnodes.length) > 5

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann commented ·

You need to close/open the input of the entry transfer, not the conveyor's. The transfer is what receives the item and then passes it on to the conveyor as soon as there is sufficient space.

0 Likes 0 ·
kimsh avatar image kimsh Felix Möhlmann commented ·

thank you!

0 Likes 0 ·