question

shanice.c avatar image
0 Likes"
shanice.c asked Felix Möhlmann commented

Error: Invalid reference to task sequence


It says there is an invalid task has been encountered. involved2 is the object to unload to. I checked unload activity, token.pulled and token.productslot are with value, then why is the token couldn't unload successfully?

1635659006252.pngrack.fsm

FlexSim 21.2.0
tasksequence
1635659006252.png (63.1 KiB)
rack.fsm (58.7 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.

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Felix Möhlmann commented

Because a slot is NOT an object. The rack of the slot would be an object.
you can evaluate the token label value as ownerobject([token.label]) or as flexscript warehouse class property slot.storageObject.

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

shanice.c avatar image shanice.c commented ·

Thank you, it seems problem is that I'm using wrong class. I have changed the Object into Storage.Slot, and changed the item to Storage.Item. I'm sorry that I still don't understand why the token.productslot already has value in it, also in 3D flowitem the SLOT label has value in it, but it cannot be used.


1635687026202.png


1635687178445.png

rack2.fsm

0 Likes 0 ·
1635687026202.png (157.9 KiB)
1635687178445.png (35.6 KiB)
rack2.fsm (67.3 KiB)
Felix Möhlmann avatar image Felix Möhlmann shanice.c commented ·

The other way around: You have to pass an object into the "Unload" activity as the station, rather than the Storage.Slot class variable. This is also what Jörg meant. You can get a reference to the rack the slot is in through the two ways he suggested.

If the item was assigned to the slot prior to unloading it into the rack, it will automatically be placed in it, without calling the "Slot Assignment Strategy" of the rack.

1635751789858.png

rack2.fsm

0 Likes 0 ·
1635751789858.png (10.1 KiB)
rack2.fsm (57.5 KiB)