close and open ports when item go through photo eye

close and open ports when item go through photo eye

bing_z
Not applicable
0 Views
2 Replies
Message 1 of 3

close and open ports when item go through photo eye

bing_z
Not applicable

[ FlexSim 19.0.0 ]

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.

0 Likes
Accepted solutions (1)
1 View
2 Replies
Replies (2)
Message 2 of 3

braydn_t
Not applicable
Accepted solution

@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

0 Likes
Message 3 of 3

bing_z
Not applicable

Thank you!

0 Likes