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

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

and re-enable it for the standard tasks with

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

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.