Problems in setting stop input down behavior

Problems in setting stop input down behavior

valentina_t2
Not applicable
356 Views
2 Replies
Message 1 of 3

Problems in setting stop input down behavior

valentina_t2
Not applicable

[ FlexSim 20.0.3 ]

Hello,

I would appreciate it if someone could help me with the following problem.
Attached you will find the simplified version of the model I'm trying to replicate. I have 3 processors, each one with an 8 hours shift and 15 minutes breaks every 2 hours of work. When a processor finishes its shift, another one starts and so on.

I'm having problems setting the down behaviors. What I'm trying to replicate for each processor is:

- during the 15 minutes breaks the processors stops working (and I should not have problems with this while the stop object function is the default setting when creating a down behavior)

-when the 8 hours shift is finished, the processor completes the processing of the item it was already in charge off, and only after that goes off-shift and stops taking other items. I assume that in this case, the functions that recreate this behavior are the stop input and resume input.

I created the downbehaviorsOFFSHIFT and the downbehaviorsBREAKS to set in the timetables but something is wrong. Maybe it has something to do with coding but i don't have the adequate skills so I'm here to understand.
Thank you so much in advance

DownBehaviorTest.fsm

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

jeff_nordgren
Not applicable

@Valentina T2,

It seems like a code line is missing that should have been there. If you add line a new line 7 to the On Down and On Resume triggers of each of your Down Behaviors (see below), it should work. Here is the line you need to add.

treenode members = getvarnode(table, members);

Thanks.

0 Likes
Message 3 of 3

tanner_p
Not applicable
Accepted solution

@Valentina T2,

Try adding the same code, but with members in quotes like this:

treenode members = getvarnode(table, "members");

downbehaviortest_1.fsm

0 Likes