The invention discloses a
casting machining parameter optimization method and
system based on real-
time data analysis, and relates to the technical field of
computer control, and the method comprises the steps: collecting
casting surface temperature parameters and
casting machining surface contour data; the casting
cooling rate is calculated according to the casting surface temperature parameters, and a casting surface
machining area is divided based on the casting
cooling rate; analyzing the machining
surface contour data of the casting, calculating a
surface roughness value of the casting, and comparing the
surface roughness value of the casting with a preset roughness threshold value; when the
surface roughness value of the casting is larger than the preset roughness threshold value, a machining compensation instruction is sent to a
numerical control machine tool; based on the
temperature difference of the fast cooling area and the
slow cooling area, corresponding tool rotating speed parameters are set, and casting
surface finish machining is completed. According to the method, the
temperature gradient distribution characteristics of the surface of the casting are accurately recognized, accurate division of a fast cooling area and a
slow cooling area is achieved, a multi-dimensional surface roughness
evaluation system is adopted, and accurate regulation and control of machining parameters are achieved.