question

mark zhen avatar image
0 Likes"
mark zhen asked Jeanette F commented

How to know if there are still tasks to be performed

充電測試.fsmI need to create a logic, he needs to judge whether there are still tasks that are not completed after I complete the task, if so, it must be done, if not, the charging logic must be executed (under construction) I must execute this logic in an interval

FlexSim 20.0.10
proces flow
充電測試.fsm (156.5 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @mark zhen , was one of Steven Hamoen's or Joerg Vogel's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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 and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Steven Hamoen avatar image
1 Like"
Steven Hamoen answered Joerg Vogel commented

@mark zhen I don't agree what @Joerg Vogel is saying.

If you have your tasks on a list you can check if there is a task by pulling from the list while using a wait time of 0 and leave items on list option on. If the wait timer is fired (so there are no new tasks) you can go to the charging logic, otherwise there is still a task and you can execute that one or check if the battery is really low and still go to the charging.

· 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.

mark zhen avatar image mark zhen commented ·

@Steven Hamoen Could you please give me an example?

0 Likes 0 ·
Steven Hamoen avatar image Steven Hamoen mark zhen commented ·

@mark zhen Here is a very simple example.

AGVToCharging.fsm

0 Likes 0 ·
agvtocharging.fsm (40.4 KiB)
mark zhen avatar image mark zhen Steven Hamoen commented ·

agvtocharging.fsm

I don't know what I adjusted to make him have problems~

0 Likes 0 ·
agvtocharging.fsm (43.5 KiB)
Show more comments