question

doug palmer avatar image
0 Likes"
doug palmer asked doug palmer answered

Opening and closing ports not working the same given the same code

Eagle Pass CVIL bridge II 2 lanes_1.fsmI have used your answers to open and close ports when contents are at max (thank you). Using the same code for triggers I seem to get one that works and one that does not. For example at the ~206.21 sec mark (in attached model) you will see output port of RPM 2 Queue closed because Primary 2 processor is processing (good). But at the same time RPM 1 Queue output port opened even though Primary 1 processor was processing (bad).

There are a number of things the model does.

1) Prevent one processor from processing until a in line processor is complete

2) Prevent multiple processor from processing when a single processor is processing

3) Vise versa to # 2, prevent a single processor from processing if any one of a multiple number of processors is processing.

at 199.49 everything seems to be working fine with both Queue outports closed

1641402431364.png

but then at 203.89 outport of RPM 1 Queue opens and allows RPM 1 to process

1641402573404.png

FlexSim 21.2.4
open close 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

·
doug palmer avatar image
0 Likes"
doug palmer answered

I found the issue. I have a second process that is opening and closing the port. However, that process is still required for the whole operation. Which is #3 in the objective of the model. I will submit a new questions on how to solve that problem.

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.