question

Nikhil Rane avatar image
0 Likes"
Nikhil Rane asked Felix Möhlmann answered

Set Label to Item using Global Table for 3 loading Station

Hello,

I am preparing the conveyor based system where the there are 3 loading station and Type of label should be taken from global table in round robin system.

For eg. Station 1 should take row 1 to attach label type, station 2 will read from row 2 and station 3 should read from row 3.

after, next item at station 1 should read row 4 as row 2,3,already assign

station 2 should read row 5

station 3 should read row 6


as logic i have place only satisfy 1 item, for second round it not working


round-robin-type - Copy.fsm

FlexSim 24.0.2
conveyor with gobal table
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

Either increment the row label by 3 each time and set the initial values to -2, -1 and 0 respectively. This will let station one assign the value from the 4th row even if the values from the 2nd and/or 3rd had not been used yet.

(current.TypeRow+2)%(Table("Typeofmaterial").numRows) + 1

Or use a global variable to store the row value, so only the arrival timing decides which row is used and not the station.

5 |100000

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