Process control and data analyzing methods in automatic sand casting foundries