Recovering a Project from a MER File

Details: When the development project files have been lost, some of the project information can be recovered from the MER (Machine Edition Runtime) file itself. However, the following cannot be recovered: · Parameter files · Alarm Setup · Datalog files · Macro files Under some circumstances, the Tag Database cannot be recovered either (described below under “Tag Database recovery”) Activation Requirements: In order to complete the recovery process, RSView Studio and RSView ME Station must have an activation (for applications over 5 displays). The RSView ME Station license is needed in order to run the application (Win32 licenses come with different display limits; maximum is 75). If the proper RSView ME Station license cannot be acquired, an alternative is to open the application on the VersaViewCE terminal (no activation required or display limit). Once the application is opened on the VVCE, use Windows Explorer to copy the temporary files to a CF Card. A Microsoft ActiveSync connection could also be used to transfer the files to a desktop PC. Recovering RSViewME 3.x application files: In order to recover the application files, it is assumed that you will be using a Win2K or WinXP machine that is already configured as a development station (ie. RSView Studio 3.x is installed). (1) Run the program RSView ME Station under Start Menu>Programs>Rockwell Software>RSView Enterprise. (2) Open the application MER file that you wish to recover from, but do not run the application. (3) Start RSView Studio ME, and begin to create a new application. Type in a new name and click the Import button. (4) Select the MED file type to be imported. (5) Now you need to locate the temporary files created for your running application. They should be located in the “C:\Documents and Settings\username\Local Settings\Temp\~MER.00” directory. NOTE: “username” will be the user that is currently logged into the computer. Also, “~MER.00” may be named as “~MER.01”, etc. (6) Once the “~MER.00” folder has been located, select the MED file to be imported and follow the remaining prompts. (7) After the import has completed and the application is finished loading into RSView Studio, close RSView Studio and RSView ME Station. At this point, the Parameter, Alarm Setup, Datalog, and Macro files are not useable and will need to be removed (see “Removing unrecoverable files” below). NOTE: While attempting to import the project an error may occur: "Failed to import
Page 1 of 4

x and earlier project files: In order to recover the project files. (5) Once the “~MER. They should be located in the “C:\Documents and Settings\username\Local Settings\Temp\~MER..00” may be named as “~MER. .00” directory. the same computer that opened the original MED (Machine Edition Development) file will be required (see below under “Tag Database recovery”). they are not recognizable by RSView Studio and must be removed.mal” file in the recovered project folder “M_Alarms” (Ex. Also.copy the rest of the folders from this directory to the new project directory: “C:\Documents and Settings\All Users\Documents\RSView Enterprise\ME\HMI projects\ProjectName”.mal”) (2) Delete the “MachineAlarms. (5) Locate and delete all of the following files from the Application Explorer window: · All Parameter Files · All Datalog files · All Macro files Recovering RSViewME 2.exe” in the “Rockwell Software\RSViewME” directory (default is “C:\Program Files\Rockwell Software\RSViewME”). Once the project is running.01”.mal” file.x is installed).Recovering a Project from a MER File project. NOTE: “username” will be the user that is currently logged into the computer. (2) Run the “MERuntime.00” directory. “~MER. Removing unrecoverable files While most of the application can be recovered from the MER file. (4) Now you need to locate the temporary files created for your running project. unable to rename file".med file of the ~mer.". Add all the gfx files from the "Gfx" folder in the “C:\Documents and Settings\username\Local Settings\Temp\~MER. (1) Locate the program “MERuntime.. (1) Open Windows Explorer and locate the “MachineAlarms.00 folder . etc.Create a new project with the same name as the . (3) Press the “Run” button. “C:\Documents and Settings\All Users\Documents\RSView Enterprise\ME\HMI Projects\MED_ProjectName\M_Alarms\MachineAlarms.exe” program and open the project MER file that you wish to recover from. RSView Studio 2. the following files cannot be recovered: · Parameter files · Alarm Setup · Datalog files · Macro files Although the files will be listed within the application.Right-click on the "Displays" in the Applications Explorer (of this new project) and choose "Add component into application. In order to workaround this issue: .00” folder has been located. open it and copy all of the folders and Page 2 of 4 . leave it running. If the Tag Database is to be recovered. it is assumed that you will be using a Win2K or WinXP machine that is already configured as a development station (ie. (3) Start RSView Studio and open the recovered application.

The Tag Database can be recovered using this data source. Datalog. the Parameter. (3) Under the “User DSN” tab. and Macro files are not useable and will need to be removed (see “Removing unrecoverable files” in a section above). (4) Open up the “Database Import & Export Wizard” for RSView Studio. “MED_ProjectName”).If it is not there. The Tag Database cannot be recovered from the MER file itself. (2) Open up “Data Sources (ODBC)”. “ActivityLog”. then skip part ‘A’ and proceed to part ‘B’. append “_bak” to the name (Ex. Recovering the Tag Database for an RSViewME 2. . you can now close the running project. (6) Open the newly created CSV file in Microsoft Excel and verify that the Tag Database is listed there correctly.Recovering a Project from a MER File files into a new directory (Ex. Press the Properties button. At this point. “MED_ProjectName”). Proceed on to step 4. Verify that the name of your recovered MED file is listed under the “Name” heading (Ex. However. you should be able to recover the Tag Database for your project. Part A (1) Open up “Administrative Tools” from “Start Menu\Settings\Control Panel”. (5) Export the Tag database of the recovered MED to a CSV file. (7) Once the files have been copied over to the new directory. . (9) In the Data Source Name text box. and “Tag”. It is necessary to add a Tag Database back into the project before you can open the project in RSView Studio. (7) Go back to “Data Sources (ODBC)”. Also. “C:\Temp\MED_ProjectName”) (6) You should now have a directory (Ex. Alarm Setup.…”Startup”. look at the list of names for the User Data Sources. Press OK and then OK again.If it is there. look at the list of names for the User Data Sources. “C:\Temp\MED_ProjectName”) that contains the: · MED file for your project · project folders “Accounts”. “MED_ProjectName_bak”). Proceed on to part ‘B’. there is no current Tag Database for the newly recovered project. It should be located in the Programs directory of the Start Menu under “Rockwell Software\RSView Studio Tools\ Database Import & Export Wizard”. If you are not using the same Windows2000 workstation that opened the original MED file. an ODBC data source should exist on the machine that previously opened the MED project.x project: The recovered project files so far do not include a Tag Database with them. It is only possible to recover the original Tag Database if you are using the same Windows2000 workstation that opened the original MED file. the Tag Database cannot be recovered. Part B Page 3 of 4 . Locate and select the name of your recovered MED file under the “Name” heading (Ex. (8) Under the “User DSN” tab.

Recovering a Project from a MER File (10) Start up RSView Studio and create a blank project with the exact same name as the MED file you are currently recovering. “C:\Projects\MED_ProjectName\ MED_ProjectName-Tags. you need only do this for one object per screen. In most cases. “C:\Projects\MED_ProjectName\MED_ProjectName.CSV”) (17) Verify that the Tag Database is correct by looking at the Tag Database Editor in RSView Studio. (11) After the project has been created. Parameter. You may need to open the display. “C:\Temp\MED_ProjectName”) and copy all of the files in it. You will need to do this in a separate directory than the recovered project (Ex.med”) NOTE: If you performed Part A successfully. Re-assign the startup macro for a Display). “C:\Projects\MED_ProjectName”). Additional Information If you had Macro. Page 4 of 4 . locate the recovered project files folder (Ex. then proceed on to step 17. you will encounter error messages when you run it. (16) Open up the “Database Import & Export Wizard” for RSView Studio and import the CSV Tag Database from step (5) into your recovered project (Ex. You will need to create these files again and re-assign them (ex. (15) Start up RSView Studio and open the recovered MED file from your new project folder. This is because there are references to files that no longer exist. If you did not perform Part A. objects with tag assignments may not work as they are right now. delete the tag assignment and then reassign the tag. or Datalog files added to your project. (13) Paste the copied files into the project folder of step (10) (Ex. (12) In Windows Explorer. (Ex. (14) You will be asked if you wish to overwrite files. then proceed to “Removing unrecoverable files”. Save the display. Also. “C:\Projects\MED_ProjectName”). close the project and shutdown RSView Studio. Click yes to all.

Sign up to vote on this title
UsefulNot useful