conveyor sendto
Posted: Monday 16 January, 2017 - 16:23
Hi,
I have the following problem:
I have a model with 6 sources .in each source in trigger on exit field i have written a function within which the following code:
var([valPalletType],vbValue),
valPalletType := Cell(Label([RowIndex], atmSource), 9, refProductionDetails),
Label([PType], i) := valPalletType, .
The sources then go to a queue. Then a conveyor leads products to two assemblers: 1 for a certain pallet size and 2 for another also defined pallet size. I have stated a table which shows which products match with the right assembler (column number 9 has number 1 for assembler 1 and number 2 for assembler 2). I have written the 4d script [if(Label([PType], i)=1,1,2)] into the sendto of conveyor in order to send specific products to the first assembler and specific to the second. The problem is that all products are sent to the second only..What's more, when i write [Label([PType], i)] the conveyor stucks with products and do not sent anything to the assemblers.. What can i do in order to make it works?
I have the following problem:
I have a model with 6 sources .in each source in trigger on exit field i have written a function within which the following code:
var([valPalletType],vbValue),
valPalletType := Cell(Label([RowIndex], atmSource), 9, refProductionDetails),
Label([PType], i) := valPalletType, .
The sources then go to a queue. Then a conveyor leads products to two assemblers: 1 for a certain pallet size and 2 for another also defined pallet size. I have stated a table which shows which products match with the right assembler (column number 9 has number 1 for assembler 1 and number 2 for assembler 2). I have written the 4d script [if(Label([PType], i)=1,1,2)] into the sendto of conveyor in order to send specific products to the first assembler and specific to the second. The problem is that all products are sent to the second only..What's more, when i write [Label([PType], i)] the conveyor stucks with products and do not sent anything to the assemblers.. What can i do in order to make it works?