question

Diederik Bd avatar image
0 Likes"
Diederik Bd asked Felix Möhlmann answered

How to assign a new state table to an AGV?

Hi all,

Using the new version of Flexsim, we try to assign a new State table with its own states to an AGV.

However, we cannot find the link between the AGV and the current state table (StateTable1) and how this can be changed to our new state table (StateTableNew)?1635239187243.png

We now allocate states with a custom code in a process flow. Within the custom code we see the state= "STATE_IDLE", Object = AGV and state profile= Default. For example we see this as a selectable state, we want to change these states.


We want to use this state table in the Gantt chart for AGVs.

Thanks in advance!

Kind regards,

Diederik

FlexSim 21.2.3
agvstate table
1635239187243.png (2.3 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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

The state tables are currently only used to influence the display name of states in various charts and whether or not they count as "utilized" in the analysis (to my knowledge).

To assign a completely separate state profile to an object you have to edit its tree. The multiprocessor already has a custom state profile so you can see what the tree structure should look like.

1635327354147.png

You can copy the "state_profiles" node to the AGV (add a new node with space bar while "state_current" is selected and past the node in there). Then you can edit the profile by right clicking on the node an choosing "Explore" -> "As Table". Keep in mind that the state profile is a zero-indexed, so the first "actual" state will be in the second row and so on.

1635327520832.png

The "STATE_..." options you choose between in the custom code activity are really just internal defines that hold the rank of the corresponding state (STATE_IDLE returns a 1 for example). To use the custom profile you would just enter the numerical value of the corresponding state. (Again, "Node1" would be the first state, due to the zero-indexed nature of the profiles.)

For the state profile you'd also just enter the rank of the respective profile node in the tree (1 in this case).

When you add an object with custom state profiles to the state gantt chart, the "State Profile" option will become active and let you choose, which profile you want to display. This can still be used in conjunction with a state table. That way you wouldn't have to worry about editing the state names in the custom profile.

1635328000042.png

In the attached example I use a custom profile to keep track of which control point the AGV visited last.

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