Welcome, Guest. Please login or register.
Did you miss your activation email?
February 09, 2012, 06:36:43 AM
Home Help Login Register
News: Any Problems or Experience with Industrial Robots ?
Register and place your Question / Answer to worldwide Robotexperts right here !

+  Robotforum | Support for Robotprogrammer and Users
|-+  Industrial Robot Help and Discussion Center
| |-+  ABB Robot Forum (Moderators: Werner Hampel, Sven Weyer, Jim Tyrer, Napierian)
| | |-+  Displaying the System backup time stamp in the main routine.
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Displaying the System backup time stamp in the main routine.  (Read 378 times)
Steven
Newbie
*
Offline Offline

Gender: Male
Posts: 22



« on: March 01, 2010, 05:37:29 AM »

Does anyone have any ideas on how to display the current system backup that is loaded in the main routine?   kopfkratz The way that I have it set up now, I have to go into the main routine and change the date everytime that I make a backup.  The reason for this is to make it easier for the operator.
Logged
luetin
Jr. Member
**
Offline Offline

Posts: 93


« Reply #1 on: March 01, 2010, 06:39:47 AM »

I'm not quite sure what you are trying to do. Are you talking about loading of modules from the main routine or are you really restoring a backup? Maybe you could show us some code?

If you mean backups, there's a textfile called backinfo.txt that is created for every backup. It contains a timestamp, maybe you can use that?
Logged
Steven
Newbie
*
Offline Offline

Gender: Male
Posts: 22



« Reply #2 on: March 01, 2010, 07:25:33 AM »

Right now we are in the middle of changing over to our new product line. The new product requires a different welding gun and eventually the old programs will be obsolete. As of now when we change from product to product we just load the backup that contains everything that is needed for that product.  In order not to cause any confusion for the operator, I had the idea of placing a comment at the start of the main routine that stated what product backup was loaded and the date when the backup was generated. I was trying to find out a way to generate this data by a routine call maybe. I wanted to place it in the main routine because that is the first thing that the operator views after start up. When I generate a backup I want that backup name and time stamp to be visible.  Here is an example below. 

    !*******************************************************
    !Product A BACKUP 2/9/2010
    !*******************************************************
    StartUp;
    WHILE NOT Done DO
      RunProgram ProgQueue,stProgList;
      IF DOutput(doMENU)=1 THEN
        WaitUntil diMENU_REQ=0;
        WW_Menu doMENU;
      ELSEIF DOutput(doWORKING)=0 THEN
        ! idle
        WaitTime 0.2;
      ELSE
        IF bParkAct MovePark;
        Reset doWORKING;
      ENDIF
      !
    ENDWHILE
    !
  ENDPROC
« Last Edit: March 01, 2010, 07:29:44 AM by Steven » Logged
luetin
Jr. Member
**
Offline Offline

Posts: 93


« Reply #3 on: March 01, 2010, 09:45:22 AM »

I think that adding lines of code in existing modules would be pretty difficult. I would have a routine at the beginning of the program that displays info about the backup.

ie: PERS string strProduct:="Product A"; in backup A
and PERS string strProduct:="Product B"; in backup B
...

However, to get the timestamp of the backup I think your only chance is to read the backinfo.txt. Someone correct me if I'm wrong...
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!