mpAudit, migration from AS4 to AS6, how to configure text properly

There seems to be other things that might have to be adjusted as well.
This is how my configuration looked like in AS 4.12:

Now, after I’ve converted my project to AS 6 the same configuration looks like this:

I believe that these changes are the reason that I can’t see any audit events in the HMI.

I’m not sure, @Johnny_Sandberg. In AS4.12, symbolic names were used for events, but these are represented by constants. So if in AS6 you can see numbers, the value could be the same as a CONSTANTS (I have not checked in HELP).

Text to display. In AS4.12, you refer to the text system where the configuration is, and in AS6, there is the configuration itself (copied from text system??). It could be very likely the same. So what exactly have you changed to make events visible in the AS6 project??

By changing the event ID, the events was visible in my HMI. However I still haven’t managed to get the correct texts in the event since I don’t really understand how to configure the Text/Display property.

I did observe that the constants of the event types have changed. For instance, let’s look at the audit custom event:
In AS 4: Event ID = 18
In AS 6: Event ID = 402

1 Like

I would double check migration changes. B&R Online Help

I’ve now learned that in AS 6, you need to add ‘=$’ at the beginning of the text ID and bracers { } around the text ID.

In my project, I’m using a .tmx file for the audit texts of my custom events. The text ID (namespace) is Audit/Event

Configuring the text source:
AS 4: Audit/Event/Root
AS 6: {=$Audit/Event/Root}

When converting a project from AS 4 to AS 6, the text source will be set to default value: {&evtime[TIME=%c]} {&ev}
So you need to change this manually.

The Text source property in the MpAudit configuration is now called Text/Display.

The picture below shows what I had to change in order to get the audit event texts to show properly in the HMI:

1 Like