question

Carlos Marcelo LZ avatar image
0 Likes"
Carlos Marcelo LZ asked Ben Wilson commented

Time Table stop input not working

Hi I am trying to configure a timetable so that when it downs it only closes its input but the only way I´ve made it work is by stopping the process. My problem is that by doing so the objects get stucked and instead of finishing processing it while not accepting another one.

modeloFinalEscOriginal_autosave.fsm..

FlexSim 20.2.0
flexsim 20.2.0timetabledown behaviorstop inputresume input
· 2
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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

Okay - it looks like you need this line in the resume behaviour:

  1. nodefunction(getvarnode(downobject,"receivefromport"));

This isn't ideal as it assumes that the downbehaviour knows something about how the object is pulling, but it should get you past this issue.

You also need this change to the receivefromport trigger where you pull from the list:

  1. #define BYPASS_ALL_BUT_INPUT_CLOSED 0x6F
  2. pullitem(current, pulled, 0, BYPASS_ALL_BUT_INPUT_CLOSED));

instead of

  1.  pullitem(current, pulled, 0, BYPASS_ALL);

Attached is an example model.

Test_stopresumeinput_pullingfromList_nodefunction.fsm


· 2
5 |100000

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