I'm currently struggling with the batch size (B) in a server.
I have two different products that can enter this server (red and blue) and they have to be converted from one barrel to an amount (in kgs). The red barrels consist of 75 kgs, while the blue barrels have 100 kgs. Using the Batch Rule (1 to B) I would like to convert the product from a barrel to kgs. I have defined the number of kgs per barrel in a table to make sure that I can change it easily.
But... I can't get my code for the Batch-definition working.
So far I have the following code for B:
Code: Select all
Do(
if(Label([barrel], i) = 1,Cell(1,1, refkgs_barrel)),
if(Label([barrel], i) = 2,Cell(1,2, refkgs_barrel))
)
Thanks,
Eveline