Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Restart PLC program after reset (warm, cold)

pelait01
2013-01-21
2017-01-18
  • pelait01 - 2013-01-21

    Hello,

    i got following problem:

    I reset my plc's using command SysResetPlcProgram(x); (x = 0,1). After reset my program, which is running on the plc, the program stops.

    Is there anyway to run the program again, without doing this manually by starting the application by hand (F5) ?

     
  • shooter - 2013-01-22

    why do you reset,
    is the plc autostart (on wago it is a switch)

     
  • pelait01 - 2013-01-22

    I want to test some functions with persistent and retain variables, after cold reset and warm reset. If i add an boot application the plc prog autostarts (there is no switch or something at my plc / autostart is enabled) until the first reset in the code. From there i have to log in the debugger and continue the program manually.

     
  • JorTec - 2017-01-17

    pelait01 hat geschrieben:
    I want to test some functions with persistent and retain variables, after cold reset and warm reset. If i add an boot application the plc prog autostarts (there is no switch or something at my plc / autostart is enabled) until the first reset in the code. From there i have to log in the debugger and continue the program manually.

    Hi,

    Did you solve this? I'm experiencing the same problem. After SysResetPlcProgram(RESET_COLD); the boot project is not automatically loaded.

     
  • shooter - 2017-01-18

    you have to make the project bootable.

     

Log in to post a comment.