摘要 |
PURPOSE: A simulator of an PLC(Programmable Logic Controller) is provided to execute virtually a logic program without the PLC for monitoring and debugging so that it can easily check the logic program constructed by the user, reduce various pre-work needed for driving the PLC, and prevent a loss caused by program errors. CONSTITUTION: The simulator comprises a program editor(10), an execution file maker(20), a virtual machine(21), a shared RAM(22), and a monitor and debugger(13). The program editor(10) enables a user to construct a logic program. The execution file maker(20) receives the logic program from the program editor(10), and compiles the program into an execution file. The virtual machine(21) receives the execution file output from the execution file maker(20), and executes the logic program. The shared RAM(22) stores variables or flags needed for operating the program at the virtual machine(21). The monitor and debugger(13) displays the data, stored in the shared RAM(22), in a proper format.
|