question

Preet avatar image
0 Likes"
Preet asked Preet commented

How to have single state for loading and unloading?

Consider this simple model. It uses robot as a task executor. In the state chart, It shows loading and unloading. I want to have only a single state called "Processing" instead of loading and unloading so that I can use a single state later on. How to do that? Same goes for offset travel loaded and offset travel empty. I want to have a single state named "Travel".

I do not want to achieve this by renaming the loading and unloading as Processing in the state table. Rather, I want to assign a state in it's behavior.


demo_model.fsm

FlexSim 23.0.2
states
demo-model.fsm (38.0 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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Preet commented

You should consider to do it differently. Do not change states. Better you join states in a calculated table. This is one purpose of this statistical tool.

· 3
5 |100000

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

Preet avatar image Preet commented ·
Thank you @Joerg Vogel . I will consider that option. However, for my learning and understanding, how would I achieve what I mentioned in the question? How would I change and reassign default loading and unloading states of a robot?
0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Preet commented ·

States are result of internal events. They are hard coded. You can only change the presentation in a chart later. What you can do, is building a process flow, which watches the events of a robot and write results into tracked variables. But this is as efficient as doing the same in a calculated table to combine hard coded states.

0 Likes 0 ·
Preet avatar image Preet Joerg Vogel commented ·

Understood. Thank you!

0 Likes 0 ·