主权项 |
1. A simulation system comprising:
a programmable controller that controls a device to be controlled using a user program; and a simulation device that performs a simulation of simulating an operation of controlling the device to be controlled using the user program, wherein the programmable controller includes:
a computation unit that executes the user program and performs a computing process;a storage unit that stores a result of the computing process; anda firmware that controls an operation of the programmable controller, wherein the computation unit, in accordance with the firmware,
transitions to a temporary stop state in which a new cycle of computing process is not performed and stores the result of a cycle of computing process in the storage unit when the cycle of computing process in the user program ends, andreleases the temporary stop state and transmits the result of the cycle of computing process, executed immediately before transition to the temporary stop state, stored in the storage unit to the simulation device when the computation unit receives a stop release instructing command instructing to release the temporary stop state from the simulation device, wherein the simulation device includes:
a simulation unit that performs the simulation of simulating the operation of controlling the device to be controlled by controlling a two-dimensional shape model or a three-dimensional shape model of the device to be controlled; anda stop release instructing command generating unit that generates the stop release instructing command, and wherein the simulation unit
performs a cycle of simulation based on the result of the cycle of computing process, executed immediately before the computation unit transitioned to the temporary stop state, of the user program transmitted from the programmable controller, andtransitions to a temporary stop state in which a new cycle of simulation is not performed and transmits the stop release instructing command generated by the stop release instructing command generating unit to the programmable controller when the cycle of simulation ends. |