The application discloses a kind of automatic expansion and contraction and divides the method, device, equipment and storage medium of heap, the method is applied to packaging substrate manufacturing process, before mechanical drilling process, the method includes: product is fed and the product information of current product is obtained;Based on the product information, determine whether the current product is first batch product;If it is determined to be, then based on the preset basic pre-expansion value, perform X-
ray drilling target operation and obtain actual expansion and contraction value, according to the deviation of actual expansion and contraction value and basic pre-expansion value, determine whether it needs to be divided into piles;If it is determined to be not, then based on historical expansion and contraction data, perform X-
ray drilling target operation and determine whether it needs to be divided into piles;According to the product is divided into piles according to the result of heap, for subsequent mechanical drilling process selects corresponding expansion and contraction data for
processing.The application can realize the
intelligent management of expansion and contraction and divide the heap, improve efficiency and yield.