I am working on a simple model of a paint factory. The first mixer, "AddativeMixingTank" loads a recipe. The first step of the recipe works fine, where it pulls water from a pipe. However, the next step would include a worker emptying a bag of powder into the mixer. I am trying to get the Item to Flow (called "BagCuttingStation" to change its product type based on the label of the currently loaded discrete "bag", then pass that product type to a FlowConveyor called "SolidsConveyer". That way, the "AddativeMixingTank" can pull the next ingredient for its recipe.
I tried to accomplish this by setting two triggers. The first, is "On Entering" which sends a message to itself with the first parameter equal to the product index. I then try to set an "On Message" trigger to use the parameter to look up the product on the Global Table called "ProductTable". However, this gives me an exception.
Any light that you could shed on the subject would be much appreciated.sample-paint-factory-1.fsm