Sorry if this seems really basic, but all I want is for a single task executer (crane in this case) to be used for all transport along a factory line, then when it breaks down (from MTBF), another crane is used while the original is under repair.
I have made a label "Broken Down" which has a default value of 1, then using SetLabel it becomes 2 when the crane is broken down. I then use the expression:
getlabel(outobject(current, 1), "Broken Down")
as the "Pass To" expression.
With this in place, and Crane1 in the first dispatcher output port (current, 1), and Crane2 in the second (current, 2), I would expect the first crane to be used at all times it is not broken down as the label "Broken Down"=1 and therefore getlabel(outobject(current, 1), "Broken Down")=1, and when broken down the opposite is true, and Crane2 is used instead.
Unfortunately this is not the case, and Crane2 does nothing when Crane1 is broken down.
Please could someone tell me of an easier way to ensure Crane2 only operates when Crane1 is broken down?
Many thanks in advance.