Jump to content
OMRON Forums

Is it possible to run fload on build and download?


maxvoxel8
 Share

Recommended Posts

We have a pp_custom_save.tpl script which saves some variables. But they are initialized to 0 in the header files. We find that when we build and download, the variables are initialized to 0, and we would like to automatically run fload to give them their last-saved value. How can we do this?
Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Is that defined in pp_startup.txt? We are using the default version which runs InitializePlc, and we do have fload in there. But that seems to only run when we actually restart the controller. Is it supposed to run when we just build and download?
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
Yes, we have an initialize PLC and it looks like it does run as it should. The issue is that if we've changed some variables and we build and download, the variables get initialized, and then the fload loads the last-saved values. What we need is some way to automatically run fsave before the build and download process starts to save the current values. Is there any way to do that?
Link to comment
Share on other sites

Before a “Build and Download” the contents of the file “pp_disable.txt” is executed. This is probably not a good place for “fsave” as this command does not immediately finish execution. It must use the underlying Linux to create a file and there are no “timing” or “wait” features to hold off the continuation of the “Build and Download” to wait for the “fsave” to finish.

 

This would be best done as an online command in the terminal window.

Link to comment
Share on other sites

Ok, thanks. Are you sure there is no way to delay execution by issuing a system command or something like that?

 

As an aside, I see there is also pp_inc_disable and pp_inc_startup. What are these used for?

 

No - as "pp_startup.txt" is sent in a single communication thread.

 

See the IDE manual under the chapter "The Configuration Folder" for a good description of pp_inc_disable.txt and pp_inc_startup.txt.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...