question

ivan avatar image
0 Likes"
ivan asked Sri_vikas K edited

transports

transporte.fsmI have a separator in the form of a Queue, it is possible to make the operator unload the container and when the container is empty the forklift transports it and not the operator

FlexSim 22.2.0
transporters
transporte.fsm (52.1 KiB)
· 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.

Sri_vikas K avatar image Sri_vikas K commented ·

Hi @Felix Möhlmann

I am trying to give a custom code at seperator1 use transport, but it is showing some error the console box.

transporte_SVK.fsm

0 Likes 0 ·
transporte-svk.fsm (51.4 KiB)
Felix Möhlmann avatar image Felix Möhlmann Sri_vikas K commented ·

The "Use Transport" field gets evaluated before the "OnExit" trigger (the transport must be known in order for the items to leave the queue). So the "Tote" label does not exist yet when you try to read it. Your idea of using the forklift for every 11th item can work. You can just read the output statistic directly when determining the transport instead of assigning it to a label first.

if(current.stats.output.value%11 + 1 == 11)
{
    return current.centerObjects[1];
}
return current.centerObjects[2];

In this example model though, because the separator is using the default option of sending the items and the tote to different ports, you can also just determine the transport by which port the item exits through. (Just have to make sure that the operator and forklift are connected in the correct order)

1678865146568.png

1 Like 1 ·
1678865146568.png (7.8 KiB)

1 Answer

Sri_vikas K avatar image
0 Likes"
Sri_vikas K answered Sri_vikas K edited

Hi @ivan

Please refer the following things in the attached model:

1.Custom code at Use Transport in Seperator 1 properties.

transporte_SVK.fsm



transporte-svk.fsm (51.4 KiB)
5 |100000

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