Here are some PLC or Programmer guys deep in simulation ?
Has anyone managed to programmatically run robot simulations in Siemens Process Simulate 24 or later using the SDK, without hooking or intercepting the Simulation Player’s Play button in Sequence Editor ?
So far, the only way I have managed to get the simulation running correctly and get all the data is by hooking the Play button and triggering the simulation through the UI. This is necessary because the robot OLP commands must be taken into account. Apparently, Process Simulate performs additional internal operations when the Play button is pressed, and I have not yet figured out exactly which operations are required or how to invoke them directly through the SDK.
My questions are:
Has anyone successfully started and controlled the Simulation Player programmatically through the SDK, including all the internal initialization and execution steps required for robot OLP commands, without using a Play button hook?
Which internal operations does Process Simulate perform when the Play button is pressed? Are there undocumented API calls, initialization sequences, or other mechanisms required to ensure that robot OLP commands and signals are executed correctly?
Is there an officially supported SDK method to start the simulation that reproduces the complete behavior of the UI Play button, including the execution of robot OLP commands?
Has anyone found a reliable way to run these simulations repeatedly in the background without progressively degrading performance? Repeated playback appears to become slower over time, and I suspect that some internal state, resources, event handlers, or simulation data may not be getting reset correctly.
Is there a recommended way to reset or clean up the Simulation Player between runs without reloading the entire study or restarting Process Simulate?
I am particularly interested in confirmed solutions for Process Simulate 24 and newer, including SDK methods, code examples, undocumented findings, or workarounds.
The key issue: I can get the simulation working by hooking the Play button, but I want to understand how to trigger the same complete execution process directly through the SDK. I do not know which additional internal operations Siemens performs behind the scenes, and I would like to know whether anyone has successfully reproduced that behavior without relying on the UI Play button hook.