In SoMachine whenever I download the application into Simulator it creates Program Exception while the same application is running in PLC without any problem. What could be the reason behind it.
The reason behind if the application program has task watchdog enabled and when it is being used with Simulator it creates program exception.
It is not recommended to enable a watchdog in simulation mode as it can result in an exception.
Watchdog is meant to be used with actual PLC not with simulator and thus creating the program exception with simulator and not with PLC.