question

Valentina T2 avatar image
0 Likes"
Valentina T2 asked tannerp answered

Problems in setting stop input down behavior

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

FlexSim 20.0.3
flexsim 20.0.3timetablesdown behavior
· 1
5 |100000

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

Jeff Nordgren avatar image Jeff Nordgren commented ·

@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 0 ·

1 Answer

·
tannerp avatar image
0 Likes"
tannerp answered

@Valentina T2,

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

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

downbehaviortest_1.fsm


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.