question

Ashwath M avatar image
0 Likes"
Ashwath M asked Ashwath M commented

Charging a Transporter after a certain number of operating hours

Charging Logic_sample.fsm

Hi,


I'm trying to model a scenario where a transporter needs to go to a charging station after every 5 hours of operation. I can get the actual operational hours by tweaking the state chart and getting the exact time. However, is it possible to send the transporter to the charging station every 5 hours of its operational time? Thanks in Advance

FlexSim 21.1.5
transporterchargingoperational hours
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

·
Jeanette F avatar image
0 Likes"
Jeanette F answered Ashwath M commented

Hello @Ashwath M,

I created a calculated table that sums the Time column in the state chart. This gives the time that the transporter is utilized. I then created an event triggered source in the process flow that creates a token every time the transporter changes states. This token will update a tracked variable with the calculated table's value. It is important that this value is on a tracked variable so that a wait for event activity is able to monitor the value.

In the other part of the process flow there is a source that creates a token to represent the transporter. This token is created with a label to track the number of charges so the token also knows what value of utilized time it is looking for. When the token is at the wait for event activity is uses the label to determine what value of utilized time should trigger the activity. For example, if the transporter has already charged twice then the value on the label is 2 and the value at the wait for event will be 54000s so the event will trigger once the transporter has been through 54000s. In other words it will trigger every 5 hours of utilization time.

1664485542445.png

1664485581600.png

One thing to note is that is it is important that the Charge delay activity is set to an idle state so the transporter doesn't add to the utilization time while it is charging.

charging-logic-sample_JF.fsm


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

Ashwath M avatar image Ashwath M commented ·
Thank you @Jeanette F ! This worked. Appreciate the support.
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.