Import

This guide shows how to import the demo project into an existing project.

Open the windows file explorer and navigate to the folder \mappExplorer\Logical\mappView\Widgets in the sample project. Copy the folder brXtended to the same directory in your existing project.

Start Automation Studio and open the demo project. Start a second instance of Automation Studio and open your exiting project so that you have both project open side by side. Go to the logical view in both projects.

  1. Copy the packages mappFileExplorer, USBdevice and NETdevice from the demo project
  2. Paste the packages into the existing project at the top
  3. Assign the new task to the CPU
  4. Make sure that the B&R libraries MpFile, MpBase, MpServer, AsZip, ArBrStr, AsUSB, standard, SysLib and FileIO are in the existing project, add the libraries if needed.

  1. Open the mappView tree in the demo project and navigate to ExplorerPage, right click and copy it
  2. In the existing project paste the page onto pages
  3. Assign the new task to the CPU

  1. Expand the new page and double click on ExplorerPage.page
  2. Select the default layout for the existing project the properties window

  1. Once the default layout is set in the existing project click each section and make sure that correct content is selected
  2. Select contentExplorer for the main section
  3. Save the project

  1. If the existing project uses a navigation bar add a new button that points to the new explorer page

  1. Open the configuration view in the existing project and open the OPC configuration
  2. Select the global variables EXPL, NET and USB. if the variable does not show up, save and compile the project, then reopen the window
  3. Enable the variables with green checkmark
  4. Set Automatic Enable to true in the properties window

  1. Select the elements CMD, PAR, DAT and VIS
  2. Set Show array elements in the properties to true

  1. Select the elements device_list in the sub structure EXPL.VIS[0] and EXPL.VIS[1]
  2. Set “Show array elements” in the properties to true

  1. Select the element USB.PAR.is_connected
  2. Set Show array elements in the properties to true

  1. Expand the section mappView in the existing project and select Explorer.binding and Explorer.eventbinding
  2. Copy the two files
  3. Paste the two files in the existing project under mappView

  1. In the existing project open the file Visualizat.vis
  2. Add the ExplorerPage in the section pages
  3. Add the Explorer_binding in the section binding sets
  4. Add the Explorer_eventbinding in the section EventBindingSets

  1. In the existing project open the Physical View, Right click on the CPU and open the configuration
  2. Navigate to files devices
  3. Adjust the device information. The USER_PATH is located on the 4. partition of the memory card. The size of the user partition can be configured under Module system on target.

  1. In the existing project open the Configuration View, click on the mappServices
  2. Add a new mappService of type MpFileManager
  3. Enter the device name from the previous step
  4. Add user roles and permissions as needed

Pay attention to the "well known roles" as described in the Automation Help.