AGV battery system emulation doubts

AGV battery system emulation doubts

leandroom
Not applicable
24 Views
4 Replies
Message 1 of 5

AGV battery system emulation doubts

leandroom
Not applicable

[ FlexSim 24.1.0 ]

Hello,

I emulated a AGV battery system with kinetic tracked variable and It's working, but I have 3 questions:

1) I rely on labels to provide the rate that my battery level will charge or discharge, but for example, in travelDischarge label, i need to place the value -0.0077, but Flexsim rounds to -0.01. How can I keep the proper value?

1718050582968.png

2) Now I watch the battery level through the tracked label, how can I show some statistics on dashboard? For example the battery value by time.


3) I am using the delay block to keep the AMR charging, but I can't find the "charging" state, is It possible to set a state that is not on the list by codding?

1718050551806.png


Follow my model attached, thanks alot!

problem1.fsm

0 Likes
Accepted solutions (1)
25 Views
4 Replies
Replies (4)
Message 2 of 5

joerg_vogel_HsH
Mentor
Mentor
In model settings you can change decimal precision shown in edit fields. Even if you see rounded values in edit fields, FlexSim uses more digits of a floating numbered value.

Build in Battery Level is a feature of AGV Library objects.

0 Likes
Message 3 of 5

moehlmann_fe
Explorer
Explorer
Accepted solution

1) The rounding is only visual. You can change how many decimals are shown in the model settings.

capture1.png

2) Add a tracked variable line chart from the dashboard library and sample the TR label of the AMR. Then install the chart components to access the Statistics Collector and set the "Change Rule" of the OnChange event to "Update".

capture2.png

3) You can set the state to any number. States up to that number will automatically be added to the object's state profile. The first 50 states have default names, further states will just be called "51", "52" and so on. The name that is displayed in a state chart is the one assigned to the state number in the linked State Table. So you could use one of the default states and change the display name in the State Table.

0 Likes
Message 4 of 5

leandroom
Not applicable

Hi Felix, about items 1 and 3 its all clear, but item 2 I can't find the tracked variable to add the event as you did on Statistics collector. I also added the tracked variable line chart from the dashboard library and could not sample the TR label of the AMR.

1718132979139.png


0 Likes
Message 5 of 5

moehlmann_fe
Explorer
Explorer

You can sample the TR label node from the tree view.

capture1.png

0 Likes