question

Mike B3 avatar image
0 Likes"
Mike B3 asked Jeff Nordgren answered

Error opening/closing ports

I am trying to stop/start a separator that is on a buffer system from a photoeye in the main line. It works occasionally, but I keep getting an error at the photoeye for blockTrigger and Clear Trigger. I was opening and closing the output ports by sending a message with a value of 1 when PE2 is blocked and sending a 0 when clear. I then used a close and open ports based on cases trigger on the OnMessage field. The separator is connected to the PE by a center port connection on the photoeye. This is where the message is sent out.

line2.fsm

felxsim-error.png

FlexSim 17.2.1
error messagesend message to create items
felxsim-error.png (46.7 KiB)
line2.fsm (79.1 KiB)
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

Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered
@Mike B3

I don't see anything wrong with your code in PE2 or in Separator1. I did see a missing "," in Source3 in the Inter-Arrivaltime field, which I fixed in the attached model. That was the only "error" I saw. But I did notice that in PE1 in the On Block code you are using the Send Item option of "second output port of current". Current is the PE1 object which has no output ports. You are doing the same thing in the On Clear code. Again, no output ports on PE1. It's not causing an "error", as such, but it is not working either.

line2-jn1.fsm


line2-jn1.fsm (63.9 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.