question

yesid anacona avatar image
0 Likes"
yesid anacona asked yesid anacona commented

How to configure the output and input ports?

abrir-y-cerrar-puertos.fsm

Hi, I'm new to software .... and I'm learning. I need someone to help me .. I want the tail 1 to pass more plastic boxes to the tail 2 only when the tail 2 is left without plastic boxes. I do not know how to configure open and closed ports. Thank you Note: from queue 1 to queue 2 are passed from to 12 boxes.

Choose One
open and closed ports
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

·
Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered yesid anacona commented

You were very close, I fixed the logic so that all the triggers are on the Queue2. The OnEntry trigger closes Input to Queue2, then after each box leaves the queue (OnExit) sends a 0 delay message to itself. In the OnMessage trigger I check if the contents are 0 (if that was the last box in the queue) And then open the port again:

5993-abrir-y-cerrar-puertos.fsm


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

yesid anacona avatar image yesid anacona commented ·

Thank you very much. For sharing your experience and knowledge

0 Likes 0 ·

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.