Reading logbook entries of axes with MpComLoggerUI

Does anyone here have an example showing how to read the logbook entries of a servo axis using MpComLoggerUI?

I’ve been experimenting for quite a while now, but my MpComLoggerUIConnectType structure remains empty. Is this even possible?

I’m expecting something similar to what appears in the alarm list under Alarm Details.

According to this page
https://help.br-automation.com/#/de/6/services/mapp_services/mpcom/diagnose/faq.html
it says that this doesn’t work with mappMotion.

But here
https://help.br-automation.com/#/de/6/services/mapp_services/mpcom/lib/fb/mpcomloggerui/beschreibung.html
all examples use gConveyor.. or gAxis...

Thanks.

Hi!

This does appear to be a problem in the documentation that has never been resolved. The MpAxisBasic (screenshots as seen in the help pages you mentioned) has been part of “mapp” (the predecessor of “mapp Services”). At that time, because MpAxisBasic was part of “mapp”, the MpComLoggerUI could also display it’s log entries. As far as I know, the MpComLoggerUI can only display log entries from the $mapp (“Services”) logbook, not from any of the other logbooks (that has been a long-time limitation of this FB)…

It seems that the help was never fully updated (notice that this page mentions the “mapp Services Logger”, not the “Logger” in general).

Alright. Does anyone have a hint on how to access the log entries in the Motion Logbook? Essentially, I would like to retrieve the contents that are displayed in the cockpit when an axis encounters an error.

I have never tried it myself (so unfortunately I cannot give you any more clues), but there is the ArEventLog library, which according to the help can read log entries from all logbooks. Usage seems to be a bit difficult on first glance…

I do not know if there are “easier” ways with e.g. motion libraries directly…

Hi there,

first of all, the help seems to support the fact, that only mapp Services Logger is supported there:

I have never used it but I think mapp AlarmX is the way to go, since in the motion configuration you can configure the Alarms for MpAlarmX
https://help.br-automation.com/#/en/6/services/mapp_services/mpalarmx/mpalarmx.html

I am not sure if this what you are looking for, but I create a sample to embed the logbook into mappView

br-automation-community/mappView-Logbook: This is a sample project to read the PLC logbook with mappView.

You can also take a look at this example

br-automation-community/mappMotion-MpAlarmAx: The function block MpAxisAlarm reads all error messages for a specific axis

Maybe the function block MC_BR_ReadErrorText is what you are looking for**.**

Stephan

2 Likes

Hi Stephan,

This is exactly what I was looking for. I didn’t look under McBase. Thank you.

Steffen