摘要 |
A method of compiling machine code program for programmable logic controller (PLC) reads a PLC program such as a ladder diagram program. The mnemonics codes in the PLC program are searched and checked with syntax correctness regarding PLC logic rule. When all of the mnemonics codes have correct syntax, the PLC program is converted to a C language program and the C language program is then converted into a C language object program. The C language object program is linked with a library file. When the link is successful, the linked program is directly converted into a machine language program for operation of PLC to access external input/output points (EXIO).
|