question

Arimba M avatar image
0 Likes"
Arimba M asked Joshua S commented

Customized Machine Break Time by Simple Logic

Hi there,

I would like to ask question. How to begin the machine's break time, given logic:

-if the processing time for the incoming item to the machine is more than the remaining time to the resting time, the machine starts the break time-

this case happens because the processing of the item cannot be stopped in the middle of resting time, so instead of keep processing the item, we make the machine idle earlier until the end of the resting time. Here i attached the model.

Thank you very much

training.fsm

FlexSim 16.0.9
break time
training.fsm (16.5 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

·
Joshua S avatar image
1 Like"
Joshua S answered Joshua S commented

See if this works, all changes I made were in the Down Function of the Time Table and the OnExit Trigger for the Processor. You can look through the code that allows a lookup into the table data to do the lookup of if the machine will be on break or not.

18704-training-6.fsm


18704-training-6.fsm (165.2 KiB)
· 4
5 |100000

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

Arimba M avatar image Arimba M commented ·

@Joshua S Thank you very much Sir for the reply.


From your attached model, it works only in the 1st day, but the next day cannot Sir. where should i fix it?

0 Likes 0 ·
Joshua S avatar image Joshua S Arimba M commented ·

Thanks for noticing that, there was just something I forgot to add, here is your model with some little changes to the math in the OnExit trigger custom code.

18713-18704-training-6.fsm

0 Likes 0 ·
Arimba M avatar image Arimba M Joshua S commented ·

@Joshua S, thank you very much Sir for the reply.

It works, but when i edit the end of working time at time table (before: end at 17.00, after: end at 16.00),the logic doesn't work for the end of working time. where should i fix it Sir?

0 Likes 0 ·
Show more comments

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.