A method for controlling automatic transit of a yarn spindle, applied to a system for controlling the automatic transit of the yarn spindle, characterized in that the system for controlling the automatic transit of the yarn spindle comprises a manufacturing execution system (MES), a first programmable logic controller (PLC), and a plurality of second PLCs, wherein the plurality of second PLCs each is connected to the first PLC, each of the plurality of second PLCs is connected to at least one workstation, the first PLC is connected to the MES, wherein, the method for controlling the automatic transit of the yarn spindle comprises:
- acquiring, by the first PLC, second service data of a target workstation from the second PLCs, in a case where a control button of the first PLC is in an online mode and communication between the first PLC and the MES is normal, sending first service data of the target workstation obtained based on the second service data to the MES, for performing a determining process of an online transit condition based on the first service data and returning first transit indication information to the first PLC by the MES, the first transit indication information is transit permission or transit prohibition;
- sending an analysis result with respect to the first transit indication information to a second PLC in a case where the first PLC receives the first transit indication information, for controlling, by the second PLC, the target workstation to perform a yarn spindle transit task based on the analysis result.