Hi,
I was updating an older model to FlexSim 23.2 and noticed a difference in the distancetotravel function. I know there have been some changes in it in FS 23.0.9, but I did not expect this change in result.
In FlexSim 22.0 you would get a really large number if an AGV would not be able to reach the destination, in FlexSim 23.0.9 you get an exception in the system console.
I don't think having an exception in the system console is something that you want in this case, but maybe it is behaving like expected.
Attached is a model in FS22.0 which you can use as a test. Just run the script after reset to see the difference.
Thanks,
Patrick