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

How to load/save trend file on boot / power off?

k2teknik
2016-10-07
2016-10-07
  • k2teknik - 2016-10-07

    I would like to save my trend file so when the PLC boot up I then can load the old trend file, is there any way to do this?
    I can give the file a name (I use "/home/pi/tend.txt"), but I have some problems to make a bool variable (that goes true at boot and power off) that I can use to trig the load/save.

    The help write about some system events called "PrepareStart" and "PrepareStop", but I get no chance to use these as triggers for an event.

     
  • josepmariarams - 2016-10-07

    You can use fb_init and fb_exit of a funtion block

     

Log in to post a comment.