A programmable logic controller (PLC) compiling system includes a ladder diagram loading unit, an instruction set loading unit storing instruction sets, an instruction compiling unit, an operating system loading unit storing dynamic link library (DLL) file templates based on a number of operating systems, and a DLL file compiling unit. The ladder diagram loading unit loads and stores predetermined ladder diagrams. The instruction compiling unit loads the predetermined ladder diagrams and the instruction sets, and compiles the predetermined ladder diagrams to a plurality of instructions corresponding to the instruction sets accordingly. The DLL file compiling unit loads the compiled instructions and the DLL file templates, and compiles the compiled instructions to a plurality of DLL files based on the DLL file templates to match the instruction sets accordingly.
展开▼