The invention relates to a data structure of a seamless underwear machine pattern file and a defining and loading method thereof. The pattern file comprises a file head, a pattern data segment, an action data segment, an action index data segment, a fixed needle selection data segment and a dyed yarn data segment. When the pattern file is defined, platemaking software is used for carrying out practical hardware configuration according to a selected underwear machine, the parameters of different types of machines are set, the pattern file of a corresponding machine type is generated according to the parameters in combination with a fabric weave structure, corresponding air valve action, motor action and needle selection action instructions are generated according to machine type parameters in the pattern file when an underwear machine control system reads and loads the pattern file, and a yarn nozzle, a triangle, a motor and a needle selector of the machine are controlled to execute the instructions. A user-defined pattern data format of the seamless underwear machine is adopted, one set of platemaking software and control system is used to apply the user-defined pattern data format to different types of underwear machines, so that a user can conveniently master a platemaking method, and system control cost is saved.