News:

  • October 14, 2025, 09:29:53 AM

Login with username, password and session length

Author Topic: auto save after exit  (Read 3084 times)

PLCGuy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 677
auto save after exit
« on: October 20, 2016, 01:12:43 PM »
When I disconnect from the plc and then exit, it asks if I want to save the program. I take that the program is asking to save the condition it was in when I exit. Is there an option to auto save when I exit the program if I disconnect? I am lazy, when I disconnect then exit, I do not want to be asked to save.  ::)  Just a note, I save the program before disconnecting. The save icon is greyed out. But when I press disconnect i suppose the program sees that as a change and the save icon turn black. It then ask again to save before exiting.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3761
    • Host Engineering
Re: auto save after exit
« Reply #1 on: October 20, 2016, 01:47:04 PM »
Sorry, no.

The closest thing to what you want is to have the disk project available when going online instead of connecting/disconnecting directly to the PLC without a disk project.  Then you will never be prompted (unless you actually made changes).

PLCGuy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 677
Re: auto save after exit
« Reply #2 on: October 21, 2016, 08:55:35 AM »
I am a little confused on that.
I open a project, connect to the plc. Choose my connection and the check box lights up in the box. Press select. I hit "all Status". I scroll around. I do not make any changes. I select disconnect. It ask if I want to disconnect from the plc. I say yes. Then it ask to save. I did not change anything except disconnect. Seems it sees connecting and disconnecting as a program change.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3761
    • Host Engineering
Re: auto save after exit
« Reply #3 on: October 21, 2016, 09:53:38 AM »
Disk projects store the PLC Communications Link as part of its data, just like the logic and documentation.  When you actively "disconnect" a disk-based project, you are telling the disk project to NOT be associated with THAT PLC.

Hence, when you actively "disconnect" via the menu with the disk project opened, you have technically changed the disk project (disassociating the PLC that project is tied to).  So, when you close the project, it asks you whether you want to save that change (i.e. remove the comm link from the disk project).

PLCGuy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 677
Re: auto save after exit
« Reply #4 on: October 25, 2016, 12:05:59 PM »
Sorry just now reading your response. Now I understand why when I open the project again, i have to tell it what link it is suppose to use. So if I say "no" it will save the link and when i reopen the project it will automatically connect? I have not tried that. Is it possible to change what is asking? Instead of asking would I like to say changes, could it say would you like to remove the comm link from the disk project? I always say "yes" being afraid I made some program change and better say "yes". But now I know better.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3761
    • Host Engineering
Re: auto save after exit
« Reply #5 on: October 25, 2016, 12:15:59 PM »
The details of what has been changed in the project are available in the Edit History dialog (Ladder View, Edit->Edit History).

Attached is what you would see in the Edit History dialog if you just disconnected.

You would see a whole bunch of other stuff if you made a bunch of other changes.