question

hermione12 avatar image
0 Likes"
hermione12 asked hermione12 answered

Reduce speed of transporter based on shift timings

Hello,

I have a model in which transporter follows a specific network path and delivers items. For a particular path from network node NN2 to NN3 to NN4, I want to reduce the speed of transporter only in that path depending on the shift timings mentioned in the timetable as per model time .

The speeds of the transporter is given in global table. I want to control the max speed of transporter through global table values.

Also what state to use in the time table so as to control the transporter speed.

How to achieve this? Please help

forklift_speed_reduction_shifttimings.fsm

FlexSim 20.0.10
forkliftspeedtimetable
· 7
5 |100000

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

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

Have a label on the network nodes that controls whether they reduce the speed of passing travelers.

1668155391730.png

Depending on its value, set the maxspeed variable in the On Arrival trigger. Which value of "fromedge" triggers the reduction depends on the order in which the nodes were connected.

  1. Object current = ownerobject(c);
  2. Object traveler = param(1);
  3. int toedge = param(2); //the number of the edge that the traveler is going to next
  4. int fromedge = param(3); // the number of the edge the traveler came from
  5.  
  6. if(fromedge == 1 && current.ReduceSpeed == 1)
  7. {
  8.     traveler.setVariable("maxspeed", Table("GlobalTable1")[1][2]);
  9. }
  10. else
  11. {
  12.     traveler.setVariable("maxspeed", Table("GlobalTable1")[1][1]);
  13. }

Switch the label value in the Down/Resume Function of the time table to switch the behaviour on and off.

1668155486267.png

forklift-speed-reduction-shifttimings_1.fsm


· 2
5 |100000

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

hermione12 avatar image
0 Likes"
hermione12 answered

Thank you @Felix Möhlmann it is perfect

5 |100000

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