question

Peter W8 avatar image
0 Likes"
Peter W8 asked Joerg Vogel commented

Synchronized cranes not traveling to the correct position

I'm trying to learn how to synchronize task executers. I've created a simple model in which three cranes are to work together every time a heavy box is created in the “LargeQueue”. They should pick up the box and deliver it to either "ProcessorA" or "ProcessorB". Using process flow, I've got most things to work except that the cranes, prior to the load task, position themselves of center from the queue that holds the heavy box. Also, when they unload the heavy box at a processor they also position themselves of center from the processor. I wouldn't mind this except that this behavior is forcing them to perform another repositioning whilst loading/unloading. Is there a way to correct this?


SynchronizedTaskExecuters_Three_coordinated_Cranes.fsm

FlexSim 22.2.1
cranecoordinated task sequencecranessynchronizesynchronization
5 |100000

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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Peter W8 commented

You can just disable travel offsets for load/unload unload tasks before the heavy tasks with

token.MainCrane.setProperty("OffsetTravel",OFFSET_NONE)

and re-enable it for the standard tasks with

token.Crane.setProperty("OffsetTravel",OFFSET_BY_TE_LOGIC)

Model attached.

synchronizedtaskexecuters-three-coordinated-cranes_jl.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.

Peter W8 avatar image Peter W8 commented ·
Thanks Jason, your a rock as always!
0 Likes 0 ·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

Taskexecuters are on an offset travel while they load or unload. You will replace load and unload tasks by moveobject task. Then you can let travel previously your cranes by travel to location tasks to positions that will look like you want them to look.

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

Peter W8 avatar image Peter W8 commented ·

Thanks for your help! One question though, If I would use your solution, how would that impact statistics (state) for the cranes? I guess that since I wouldn't use load/unload those states would not be visible in the state chart?

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Peter W8 commented ·
That is correct. You can add delay tasks to replace this. There you can set a parameter for a state number. And the statistic is updated.
0 Likes 0 ·