How To Automatically Run A USB Flash Drive Script On The PanelView Plus

Sandisk Memory StickOn Monday and Tuesday we discussed how to access the “Configuration Mode” of the PanelView Plus and PanelView Plus 6. One additional way we did not yet cover is using an “autorun.bat” file on a USB Memory Stick (aka USB Thumb Drive, USB Flash Drive.)

These script are written to automatically move all your FactoryTalk View Machine Edition (ViewME) Runtime Files (.mer) off your terminal so when it's rebooted it doesn't find the needed .mer file and therefore returns to the “Configuration Mode.”

The “autorun.bat” file used for this purpose is a simple text based file reminiscent of the old DOS files of the same name.

When you place one of these files in the root folder of your USB Memory Stick, and insert it into your PVPlus, it immediately runs.

And while the commands in the “autorun.bat” file aren't limited to coping your “.mer” files to and from your USB memory stick, this is what the below samples scripts are designed to do.

PanelView-Plus-700-BackThe first two scripts are custom ones I created for a client with a PanelView Plus 6 firmware rev 6.0 terminal.

The first backs up all the .mer files on the terminal to the USB Memory Stick , and then deletes them from the terminal.

The second script copies all the .mer files from the USB Memory Stick back to the Terminal.

Update 08/11/15: The below scripts are now available as a bundled download here:

Update 08/11/15: I recently received a PVP7s donation (thanks RK!) and can confirm these files also work on it.

Update 08/11/15: I've added two new scripts whch have been edited to work on a PanelPlus v5.1, but I also tested them on a PanelView Plus v3.2 and they worked there as well.

PanelView Plus 6 / 7 autorun.bat file script text used to backup .mer files from the terminal to the usb memory stick, and then delete the .mer files from the terminal.

NOTE: This file was tested on a PanelView Plus 6 and PanelView Plus 7 Standard

UPDATE: The below text was updated on 08/11/2015 to correct a typo in the REMarks

echo on

REM    BACKUP AND DELETE ALL .MER FOR PVPLUS 6

REM **************************************************************
REM    CREDITS: This file was created by Shawn Tierney and may be purchased
REM    as part of a bundle for just $0.99 at theautomationblog.com. Thank you in
REM    advance for your support!
REM **************************************************************

REM **************************************************************
REM   REQUIREMENTS:
REM   1) THIS FILE MUST BE NAMED autorun.bat TO WORK
REM   2) THIS FILE IS FOR PANELVIEW PLUS 6
REM   3) THIS SCRIPT MAY TAKE UP TO 120 SECONDS TO COMPLETE
REM **************************************************************

REM **************************************************************
REM    STEP 1 – Make backup MER folder on the PVPlus 6 in case copy fails

CD\application data\rockwell software\rsviewme

MD backup

REM **************************************************************

REM **************************************************************
REM    STEP 2 – Copy MER files to the backup directory created above

CD runtime

COPY *.* “\application data\rockwell software\rsviewme\backup”

REM **************************************************************

REM **************************************************************
REM    STEP 3 – Copy the MER files to the USB STORAGE DEVICE

COPY *.* “\usb storage”

REM **************************************************************

REM **************************************************************
REM    STEP 4- Make correct directory on USB Drive (may already exist)

CD\usb storage

MD “Rockwell Software”

CD Rockwell Software

MD RSViewME

CD RSViewME

MD Runtime

CD Runtime

REM **************************************************************

REM **************************************************************
REM    STEP 5 – COPY MER files to correct directory on the USB Drive

CD\Application Data\Rockwell Software\RSViewME\Runtime

COPY *.* “\USB Storage\rockwell software\rsviewme\runtime”

REM **************************************************************

REM **************************************************************
REM    STEP 6 – Delete MER files from the PVPlus 6 application directory to
REM    force the system to return to Configuration Menu on reboot

DEL *.mer

REM **************************************************************

REM **************************************************************
REM    REMINDER – Tell the operators to allow 120 seconds from when they
REM    insert the card before they remove it
REM    The process is now complete
REM    Remove the USB Drive and cycle power to the terminal
REM **************************************************************

REM **************************************************************
REM    This file was written & tested by Shawn Tierney, InsightsInAutomation.com
REM    and may be purchased as part of a four file bundle for just $0.99
REM    at www.theautomationblog.com. Thank you in advance for your support!
REM **************************************************************

PanelView Plus 6 / 7 autorun.bat file script text used to copy .mer files from the usb memory stick to the terminal:

NOTE: This file was tested on a PanelView Plus 6 and PanelView Plus 7 Standard

UPDATE: The below text was updated on 08/11/2015 to correct a typo in the REMarks

echo on

REM    COPY ALL .MER FILES FROM USB TO  PVPLUS 6

REM **************************************************************
REM    CREDITS: This file was created by Shawn Tierney and may be purchased
REM    as part of a bundle for just $0.99 at theautomationblog.com. Thank you in
REM    advance for your support!

REM **************************************************************

REM **************************************************************
REM   REQUIREMENTS:
REM   1) THIS FILE MUST BE NAMED autorun.bat TO WORK
REM   2) THIS FILE IS FOR PANELVIEW PLUS 6
REM   3) THIS SCRIPT MAY TAKE UP TO 120 SECONDS TO COMPLETE

REM **************************************************************

REM **************************************************************
REM    STEP 1 – Copy all .MER files from the correct directory on the USB Drive
REM    to the correct directory on the PanelView Plus 6

CD\Application Data\Rockwell Software\RSViewME\Runtime

COPY “USB Storage\Rockwell Software\RSViewME\Runtime\*.*”

REM **************************************************************

REM **************************************************************
REM    REMINDER – Tell the operators to allow 120 seconds from when they
REM    insert the card before they remove it
REM    The process is now complete
REM    Remove the USB Drive and cycle power to the terminal

REM **************************************************************

REM **************************************************************
REM    This file was written & tested by Shawn Tierney, InsightsInAutomation.com
REM    and may be purchased as part of a four file bundle for just $0.99
REM    at www.theautomationblog.com. Thank you in advance for your support!
REM **************************************************************

NEW! PanelView Plus 5.1 autorun.bat file script text used to backup .mer files from the terminal to the usb memory stick, and then delete the .mer files from the terminal.

NOTE: This file was tested on a v5.1 and v3.2 PanelView Plus

echo on

REM    BACKUP AND DELETE ALL .MER FOR PVPLUS 5.1

REM **************************************************************
REM    CREDITS: This file was created by Shawn Tierney and may be purchased
REM    as part of a bundle for just $0.99 at theautomationblog.com. Thank you in
REM    advance for your support!
REM **************************************************************

REM **************************************************************
REM   REQUIREMENTS:
REM   1) THIS FILE MUST BE NAMED autorun.bat TO WORK
REM   2) THIS FILE IS FOR PANELVIEW PLUS FIRMWARE 3.0 TO 5.1
REM   3) THIS SCRIPT MAY TAKE UP TO 120 SECONDS TO COMPLETE
REM **************************************************************

REM **************************************************************
REM    STEP 1 – Make backup MER folder on the PVPlus in case copy fails

CD\storage card\rockwell software\rsviewme

MD backup

REM **************************************************************

REM **************************************************************
REM    STEP 2 – Copy MER files to the backup directory created above

CD runtime

COPY *.* “\storage card\rockwell software\rsviewme\backup”

REM **************************************************************

REM **************************************************************
REM    STEP 3 – Copy the MER files to the USB STORAGE DEVICE

COPY *.* “\usb storage”

REM **************************************************************

REM **************************************************************
REM    STEP 4- Make correct directory on USB Drive (may already exist)

CD\usb storage

MD “Rockwell Software”

CD Rockwell Software

MD RSViewME

CD RSViewME

MD Runtime

CD Runtime

REM **************************************************************

REM **************************************************************
REM    STEP 5 – COPY MER files to correct directory on the USB Drive

CD\storage card\rockwell software\rsviewme\runtime

COPY *.* “\usb storage\rockwell software\rsviewme\runtime”

REM **************************************************************

REM **************************************************************
REM    STEP 6 – Delete MER files from the PVPlus application directory to
REM    force the system to return to Configuration Menu on reboot

DEL *.mer

REM **************************************************************

REM **************************************************************
REM    REMINDER – Tell the operators to allow 120 seconds from when they
REM    insert the card before they remove it
REM    The process is now complete
REM    Remove the USB Drive and cycle power to the terminal
REM **************************************************************

REM **************************************************************
REM    This file was written & tested by Shawn Tierney, InsightsInAutomation.com
REM    and may be purchased as part of a four file bundle for just $0.99
REM    at www.theautomationblog.com. Thank you in advance for your support!
REM **************************************************************

New! PanelView Plus 5.1 autorun.bat file script text used to copy .mer files from the usb memory stick to the terminal:

NOTE: This file was tested on a v5.1 and v3.2 PanelView Plus

echo on

REM    COPY ALL .MER FILES FROM USB TO PVPLUS 5.1

REM **************************************************************
REM    CREDITS: This file was created by Shawn Tierney and may be purchased
REM    as part of a bundle for just $0.99 at theautomationblog.com. Thank you in
REM    advance for your support!
REM **************************************************************

REM **************************************************************
REM   REQUIREMENTS:
REM   1) THIS FILE MUST BE NAMED autorun.bat TO WORK
REM   2) THIS FILE IS FOR PANELVIEW PLUS FIRMWARE 3.0 TO 5.1
REM   3) THIS SCRIPT MAY TAKE UP TO 120 SECONDS TO COMPLETE
REM **************************************************************

REM **************************************************************
REM    STEP 1 – Copy all .MER files from the correct directory on the USB Drive
REM    to the correct directory on the PanelView Plus

CD\storage card\rockwell software\rsviewme\runtime

COPY “\usb storage\rockwell software\rsviewme\runtime\*.*”

REM **************************************************************

REM **************************************************************
REM    REMINDER – Tell the operators to allow 120 seconds from when they
REM    insert the card before they remove it
REM    The process is now complete
REM    Remove the USB Drive and cycle power to the terminal
REM **************************************************************

REM **************************************************************
REM    This file was written & tested by Shawn Tierney, InsightsInAutomation.com
REM    and may be purchased as part of a four file bundle for just $0.99
REM    at www.theautomationblog.com. Thank you in advance for your support!
REM **************************************************************

IMPORTANT: Please note, copying the above text from inside internet explorer may replace the standard “quotes” with angled “quotes,” which will in turn cause the copy and make directory functions to fail when executed on the PanelView Plus.


Update: The above scripts are now available as a bundled download here:

Hopefully the above autorun scripts will come in handy if you ever lock yourself out of your PVPlus, or if you just want an easy way to backup all your .mer runtime files on your terminal.

If you have any stories about being locked out of your PVPlus, or have a similar script to share, please click on the “post a comment or question” link below to share your comments with the rest of us.

Sincerely,

Shawn Tierney
Automation Instructor and Blogger

Enjoy the benifits of membership! Insider news, rewards, & more: Patreon.com/automation
If you enjoyed my article, you may like my courses at TheAutomationSchool.com
Have a question on this topic? Click here to scroll down to the comment link
Have a news tip? Share it with us here

Shawn Tierney

Shawn began sharing automation news and know-how online in 1996 when he launched his first BBS. Then in 1999 he moved to the internet launching ShawnMichael.com, which he later renamed ShawnMTierney.com. In 2013 he moved his automation efforts to a new website, TheAutomationBlog.com, which has since become the most popular independent industrial automation blog on the web.
Avatar

Latest posts by Shawn Tierney (see all)



Click HERE to scroll down to view or leave comments


Forum Comments:
  1. Good morning Stu A,
    The scripts in this blog article are for copying the .MER files to and/or from the PVPlus and will not set the IP address of the PVPlus.
    Hope this helps,
    Shawn Tierney,
    The Automation Blog
    I need to modify a customer's PanelView Plus 1250 Assembled Terminal Cat. 2711P-T12C4A8 Ser. A, which has logic module 2711P-RP8A Ser. A.
    I'm trying to upload the .mer file and the PVP has no magic white button in lower left corner at startup and nothing in the application to get me to its config utility. I've tried your script on USB stick to copy the file several times. At first try, it created the directories on the USB but left the runtime directory empty. I deleted the directory on USB stick and tried again and now it doesn't even create the directories. PVP application continues to run OK and it seems to run the scripts but it scrolls by so fast it's almost impossible to see the echo'd responses. Do you have any ideas? THANKS!
    Never mind... I got it... Solution was to get a USB keyboard plugged in and hit the 'default' button at boot up... It will bring up FactoryTalk View ME menu on the PVP and you can copy the .mer file to a memory stick... It's a bit cryptic for this 73 year old EE/programmer that's been doing this stuff for 40+ years... lol...
    Glad you got it working John,
    While your connected you may want to re-enable the little white box.
    Also, not sure why the scripts didn't work for you - did you copy them from the article or download them from TheAutomationExchange.com?
    Sincerely,
    Shawn Tierney,
    Instructor at The Automation School
    Anyone set Static IP of PVP? 6 or 7 with an autorun.bat?
    That would be helpful.
    Also, Load MER and Set initial passwords from autorun.bat.
    That I would pay $1 for.

67 Blog Comments

    • Deil, you would copy the text from the blog post above and paste it into the free windows Notepad program (Start, All Programs, Accessories, Notepad.) Then save the file as “autorun.bat.”

      Hope this helps,

      Shawn Tierney

      Find my articles or comments helpful? Check out my courses here.
      Support our site to disable ads, get free downloads, & more here.
      Have a news tip? Share it with us here.

  1. hi mr. SHAWN , i am new to panel view plus 600 , i am not familiar with it , what is the easy way to upload screen program from screen to usb , please and thank you , God bless you
    morees

  2. Hi Mr. Shawn , thank you very much for your help , that did work for me , but the issue is that file it is only read file , we cannot develop or make any changes , also we did not have any luck to upload from screen to pc on line
    , we called Rockwell and they said upload is not possible , any help please , thanks again
    morees

    • Good morning Morees,

      It sounds like you were able to get the .MER file off of your PVPlus, but you are not able to edit your .MER file, is that correct?

      In the beginning, the PVPlus had very little memory, so when the .MER file is created certain text heavy project files are compressed. Therefore, Rockwell initially did not provide a means of extracting an .MER back to a project.

      However, they did later post a procedure on how to take a pre-v5 .MER and convert it into a project and you’ll find that on the Rockwell Knowledgebase via the below link:

      https://rockwellautomation.custhelp.com/app/answers/detail/a_id/8913

      However, if your .MER is version 5 or greater, chances are you can use the Application Manager to restore the .MER file since beginning with version 5 Rockwell began putting all project contents into the .MER file so users could easily restore an MER. For more information about that see the below tech note:

      https://rockwellautomation.custhelp.com/app/answers/detail/a_id/63228

      As far as uploading your .MER using your PC, as long as your version of ViewME is the same version or newer than the PVPlus this is pretty easy – just launch the Transfer Utility and use the middle tab to upload 🙂

      Hope this helps,

      Shawn Tierney

      Find my articles or comments helpful? Check out my courses here.
      Support our site to disable ads, get free downloads, & more here.
      Have a news tip? Share it with us here.

  3. Hi Shawn again , how are you today , i uploaded mer file from a machine which was built by version 5.00 , i used version 7.00 , but what happened i could not continue converting mer to med file because it give a big warning , if i continue that , i wont be able to open screen again on version , so why i did not continue , any easy help please and thank you , morees

    • Good morning Morees,

      If you need to edit a project that was built in View Studio version 5 with View Studio version 7, the resulting project will be version 7, and no longer editable in version 5. However, you will still be able to create a version 5 runtime .MER with View Studio 7.

      I suggest saving a copy of the original version 5 .MER you uploaded in a safe place case you ever need to edit that original project in version 5 in the future.

      Then, I would convert a copy of that version 5 .MER to a project using the View Studio version 7 application manager. Next, make your edits in version 7, and then create a new runtime as version 5.

      Edit: I’m editing this part of my comments from this morning as I forgot about one thing – V7 will only create an MER which is convertible back to a project if you save the MER as v6.1 or v7 (i.e. 64 bit compatible versions.) If you use V7 to save an MER as a version previous to v6.1 it will not allow conversion.

      However, version 6 will allow MER conversions of MER’s created as v6, v5.1 or v5 (this feature first showed up in version 5)

      Now, even though the new runtime is a version 5 .MER, since it was compiled with version 7 it will only be convertible back to a project using version 7.

      Note – I think it helps to think about version 5 and later MER files as containing two parts:
      – 1) Runtime files
      – 2) Development files.

      So even though I can make a version 5 .MER with version 7, it really is only making the runtime file part version 5 so the MER file can run on a version 5 PVPlus. The development files included it that same .MER file are version 7, which is why a version 5 .MER built with version 7 can’t be converted to a version 5 project.

      Hope this helps!

      Shawn Tierney

      Find my articles or comments helpful? Check out my courses here.
      Support our site to disable ads, get free downloads, & more here.
      Have a news tip? Share it with us here.

        • Thank you – you too!

          Shawn Tierney

          Find my articles or comments helpful? Check out my courses here.
          Support our site to disable ads, get free downloads, & more here.
          Have a news tip? Share it with us here.

          • Hi Shawn , one question about ( 9 pins serial port ) beneath panel view plus screen , what is it about ? can i use it to down or upload file ? and how do i configure that port from the configuration mode ? any help please and thank you morees

            • Morees,

              The 9 pin serial port can be used to upload and download (albeit much slower then the Ethernet port) as we as communicate to PLC’s from many different vendors.

              To use it for upload or download, or to communicate to a A-B PLC, you need to have It configured in RSLinx Enterprise. You can do this manually, or reset the PVPlus’s communications to defaults in the configuration mode.

              To use it to communicate to third party PLC’s, you need to setup Kepware which comes with ViewStudio.

              Hope this helps!

              Shawn Tierney

              Find my articles or comments helpful? Check out my courses here.
              Support our site to disable ads, get free downloads, & more here.
              Have a news tip? Share it with us here.

  4. Shawn,
    I picked up a panelview plus 1000 that when powered up run a machine operation program that does not allow me to access the rsviewme or anything else. I have tried your program without much success even after editing for the older 4.x versions.
    Any thoughts?
    Thanks,
    John

    • Your welcome Morees, hope it helps,

      Shawn Tierney

      Find my articles or comments helpful? Check out my courses here.
      Support our site to disable ads, get free downloads, & more here.
      Have a news tip? Share it with us here.

  5. Currently I have Panle View Plus 1000 FW 3.0. And I want to Copy VNC server through External Device i.e USB so Is it possible. As well when I pluged USB Pendrive in PVP USB port …under file management it doesn’ enable external devide. So is it required specific pen drive? ..is PanelView Plus V 3.0 support USB devices like Pendriv…pl. guide

    • Good morning Manasi,

      The PanelView Plus 3.0 is the original version of the PVPlus, and runs the oldest version of Windows CE of any PVPlus.

      This means it doesn’t support as wide a range of USB devices as say a PVPlus 3.1 or 6.0.

      That said, I suggest trying other USB memory sticks until you find one that works. I use the “Sandisk Cruser” line and they work great on both old and new PVPlus models.

      http://www.theautomationblog.com/sandisk-cruzer

      Hope this helps,

      Shawn Tierney

      Find my articles or comments helpful? Check out my courses here.
      Support our site to disable ads, get free downloads, & more here.
      Have a news tip? Share it with us here.

    • Octavio,

      If your PVPlus is set to autorun a project, and there is no goto config button in that project, and you don’t get the little white box when the panelview boots, you’re left with two options to access the config mode:

      – Download a program with a goto config button in it
      – Use the autorun.bat file to either rename or copy off the project .mer file which is auto-running

      Aside from that, I’ve never attempted to use the autorun.bat file to change the time and date – its a great idea but I don’t know if Windows CE supports any command prompt commands like that? It may be as simple as just having two lines, like this:

      Time 6:30:00
      Date 08-24-14

      If you find out it works please let us know!

      Thanks,

      Shawn Tierney

      Find my articles or comments helpful? Check out my courses here.
      Support our site to disable ads, get free downloads, & more here.
      Have a news tip? Share it with us here.

  6. Hi Shawn , how are you today , long time i did not ask for help , now we have at work
    Panelview600c HMI ,i know to go on line using ethernet ip address , but i want to use usb cable
    i downloaded the drive from rockwell site , still i could not go on line , which ip address i should
    put in the URL bar for internet explorer ?
    Thank you , my greetings

  7. HI Shawn , how are you , we did not speak long time
    my pc crashed weeks ago , i had rslogix 5000 from version 10 to 20 , they opened normally
    after i replaced the hard disk , on windows xp professional , service pack 3
    i installed rslogix 5000 version 10 to 19 , no issue i can open the software normally , but the problem is when i try to install version 20.01 it does not complete it , it shows message saying
    ( registry did not complete register redsui.dll contact rockwell automation ) then i click ok to finish installation , but when i try
    to open the software , it does not , and shows message ( fatal error .dmp ) , the i have to
    uninstall version 20.01 again in order to open it

    Thank you

    • Good morning,

      Since I’ve never run into this issue myself I don’t have any insight on how to resolve it…

      However the below Rockwell Tech Note lists three solutions:

      https://rockwellautomation.custhelp.com/app/answers/detail/a_id/471247

      1) Make sure no Rockwell or FactoryTalk services are disabled

      2) If you can’t open the FT Admin Console, reinstall FactoryTalk Services Platform that comes with v20.

      3) Try running the RS5000.exe directly vs through the icon in the start menu

      Hope this helps,

      Shawn Tierney

      Find my articles or comments helpful? Check out my courses here.
      Support our site to disable ads, get free downloads, & more here.
      Have a news tip? Share it with us here.

Leave A Blog Reply Here

Please enter your blog comment!
Please enter your name here