question

CH L avatar image
0 Likes"
CH L asked CH L commented

State of processor

When the downstream object of a processor is fully occupied, the state of the processor would be "blocked" even when there is still other flow item being processed.

I would like to know how I can determine whether there is still flow item being processed or process of all items have been finished in process flow. Thanks!

FlexSim 18.2.3
flexsim 18.2.3state
1596989307373.png (79.6 KiB)
· 5
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

This depends how you build your logic. If you upload a model, it is getting significantly easier to help you.

0 Likes 0 ·
CH L avatar image CH L Joerg Vogel commented ·

Qty. of running machines (in global table) is incorrectly displayed because that.

Test_MR-Task_02.fsm

0 Likes 0 ·
1597014905272.png (162.1 KiB)
test-mr-task-02.fsm (60.7 KiB)
Jeff Nordgren avatar image Jeff Nordgren commented ·

@leungch,

To check an object for any flowitems in it you can use the following syntax:

Model.find("Processor_Name").subnodes.length

If that returns a value > 0, then there is/are flowitems in the object.


0 Likes 0 ·
CH L avatar image CH L Jeff Nordgren commented ·

Dear Nordgren,

When 1 of the items on processor is being blocked, the state of the processor would change to "blocked".

In the case as shown below, there are 3 items on processor. Only 1 of them has completed the process. The other 2 is still being processed.

I can get the result of "3" with subnodes.length, but how can I determine if they are still being processed?

Thanks

0 Likes 0 ·
1598332961380.png (192.0 KiB)
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @leungch, was benjamin.w2's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept or comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Benjamin W2 avatar image
0 Likes"
Benjamin W2 answered CH L commented

@leungch, You can add a small process flow block to track the items that are still processing:

This will listen to the "On Entry" event of the processor, wait for the "On Process Finish" trigger, then sink.


Please see the attached model

test-mr-task-02.fsm


1599087730571.png (8.1 KiB)
test-mr-task-02.fsm (62.7 KiB)
· 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.

CH L avatar image CH L commented ·

Thanks!

0 Likes 0 ·

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.