{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)41d983d7-3ead-4cd8-a13c-36cc2e962ad2","ParentGuid":"(Guid)06de3360-6eb7-495c-8a1d-e3e8eabed0e6","Name":"(string)updateAmountsForBatch","Properties":{"@Type":"2c41fa04:IDictionary","@Value":{}},"TypeGuid":"(Guid)f8a58466-d7f6-439f-bbb8-d4600e41d099","EmbeddedTypeGuids":{"@Type":"[Guid]","@Value":["(Guid)a9ed5b7e-75c5-4651-af16-d2c27e98cb94","(Guid)3b83b776-fb25-43b8-99f2-3c507c9143fc"]}}},"TypeInfos":{"2c41fa04":"{2c41fa04-1834-41c1-816e-303c7aa2c05b}","81297157":"{81297157-7ec9-45ce-845e-84cab2b88ade}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"f8a58466","@Value":{"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)\n//Calculate amounts of each ingredient\nub := UPPER_BOUND(in_ingredients,1);\nFOR i := 0 TO ub DO\n\t//Get the percent\n\tCASE in_ingredients[i].mode OF \n\t\tatIngredientMode.onPremix:\n\t\t\tin_ingredients[i].mixWhtPct := premixPct;\n\t\tatIngredientMode.onWheat:\n\t\t\tin_ingredients[i].mixWhtPct := in_wheatPct;\n\t\tELSE\n\t\t\tin_ingredients[i].mixWhtPct := 0;\n\tEND_CASE \n\t\n\t//Calculate the amount\n\tin_ingredients[i].mixWhtDem := (in_ingredients[i].mixWhtPct / 100) * in_weigherCapacity;\n\t\nEND_FOR\n\n","LineInfoPersistence":"(string)41d983d7-3ead-4cd8-a13c-36cc2e962ad2_Impl_LineIds"}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextBlobForSerialisation":"(string)//Update amounts to mix based on each ingredients modes\nMETHOD PRIVATE updateAmountsForBatch\nVAR\n\ti: DINT; //Loop variable\n\tub: DINT; //Array uppder bound\nEND_VAR\n","LineInfoPersistence":"(string)41d983d7-3ead-4cd8-a13c-36cc2e962ad2_Decl_LineIds"}}}}}},"TypeInfos":{"3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","f8a58466":"{f8a58466-d7f6-439f-bbb8-d4600e41d099}","string":"System.String"}}},"FormatVersion":"1.0"}