MappView Alarm ,Audit Export

I have configured MpAlarmX,MpAlarmXHistory ,MpAuditTrail and the Audit widget in mappView. The audit history ,alarm history is displayed correctly on the HMI mappview.

When I click the Export button:

  • In Simulation: Export works correctly and the CSV file is created.
  • Runtime on the Windows Panel PC 3100: Export fails with the following error:
-1064124498 : mpAUDIT_ERR_WRITE_EXPORT_FILE
Error writing export file

My file device configuration is:

Name : Alarms
Path : C:\Users\BLOKOMATIC\Desktop\Blokomatic\Alarm

The folder exists on the Windows Panel PC, and the application has write permission.

I have configured:

DeviceName := 'Alarms'

and I am exporting to the Alarms file device.

  1. Are there any additional settings or permissions required for exporting audit files .alarm history?
  2. Is there any difference between Simulation and Runtime regarding MpAuditExport file devices?

Any suggestions or examples of a working configuration would be greatly appreciated.

Hi Elanthamilan,

This works in simulation because ARSim is running within Windows, so files can export to your Windows C:\ drive**. However once you transfer your application to a real target, Automation Runtime only has access to its own disk partitions. Even if you’re running Hypervisor (Windows and AR both running on the same PC), the runtime side will only be able to access its own files. In order to make the export work, you’ll need to change the file path to something on the USER partition. You can use the keyword USER_PATH for this. For example, your file device configuration could be:

Name : Alarms
Path : USER_PATH\Alarm

** This is only supported in AS 4.x, it is not allowed in AS 6.

Hello,
Usually these files are exported to the User Partition as Marcus has mentioned.
You can then use the FileIO library and set up a USB connection to copy the files over to a USB when troubleshooting.
If you would like to save the files onto a Windows folder then I would recommend setting up an FTP connection.
On the Automation Runtime side you can use/reference this project to set up a network device GitHub - br-automation-community/AS-NET: Sample application for mounting a network share on a B&R PLC · GitHub
This community repo has other resources that may be beneficial to you as well such as setting up a USB file device or a mappview file explorer GitHub - br-automation-community/awesome-B-R: A curated list of awesome B&R frameworks, libraries, resources, and shiny things. Inspired by awesome-... stuff. · GitHub .