question

Bing Z avatar image
0 Likes"
Bing Z asked Bing Z commented

close and open ports when item go through photo eye

How to realize the funciton?

Close the output port of RACK1 when item 1 go through PE1.

Open the output port of RACK1 when content of Queue1 is zero ?close-and-open-port.fsm

Thank you.

FlexSim 19.0.0
close and open pots
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

Braydn T avatar image
0 Likes"
Braydn T answered Bing Z commented

@Bing Z

The code to open and close ports looks is a command like this:

closeoutput(Model.find("Rack1"));

With the item you want to close the output port of in the parentheses. You can put this code into any trigger or custom code block.

bing.fsm


bing.fsm (47.0 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.

Bing Z avatar image Bing Z commented ·

Thank you!

0 Likes 0 ·