OnSimulationStopping

This function is called as soon as the Stop current simulation button is pressed.

New projects will automatically create this function but this function will need to be manually added to the scripting from older projects if this feature is required. The default function is;

When the Simulation stops, by default all products will be automatically deleted. Placing the call DeleteAllProducts in this function ensures that the products are removed early to ensure the state of PEs are changed to unblocked and updated to any PLCs before these connections are closed.

Event

void OnSimulationStopping()

Parameters

None.

Return Value

None.

Example

function OnSimulationStopping() {

    LogDebug("OnSimulationStopping called");
}