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 each of the plurality of second PLCs is configured to control at least one workstation, the plurality of second PLCs each is connected to the first PLC, the first PLC is connected to the MES,
- 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 a second PLC corresponding to the target workstation, obtaining first service data of the target workstation based on the second service data, wherein the second service data comprises a compulsory transit variable being equal to 1;
- sending, by the first PLC, the first service data to the MES, receiving transit indication information which is determined based on the compulsory transit variable by the MES for the target workstation, wherein the transit indication information is transit permission;
- and
- analyzing, by the first PLC, the transit indication information to obtain an analysis result, returning the analysis result to the second PLC corresponding to the target workstation for controlling the target workstation to perform a yarn spindle transit task based on the analysis result by the second PLC.