Synchronized cranes not traveling to the correct position

Synchronized cranes not traveling to the correct position

peter_w8
Not applicable
7 Views
5 Replies
Message 1 of 6

Synchronized cranes not traveling to the correct position

peter_w8
Not applicable

[ FlexSim 22.2.1 ]

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

0 Likes
Accepted solutions (1)
8 Views
5 Replies
Replies (5)
Message 2 of 6

joerg_vogel_HsH
Mentor
Mentor

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.

0 Likes
Message 3 of 6

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

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

0 Likes
Message 4 of 6

peter_w8
Not applicable

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
Message 5 of 6

peter_w8
Not applicable
Thanks Jason, your a rock as always!
0 Likes
Message 6 of 6

joerg_vogel_HsH
Mentor
Mentor
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