Running a trace on Acopos parameter through mappCockpit result in CPU overload

Hi community,

I’m currently using module X20SBD4M1 to control a BLDC motor, it’s running pretty well for now, I just want to adjust speed and position controllers to get an even better control of the motor.

Just to mention, the BLDC motor is encoderless and so I use the encoderless configuration.

When I try to using mappCockpit trace an Acopos parameter of the axis (like PCTRL_S_ACT for example), when the trace start recording, my PLC goes from 25% to 100% CPU usage on core 1. PLC type and software versions are below.

I try to change the ACOPOS sample time from 400us to 4ms, my powerlink interface is the timer for system tick and run at 400us where my X20SBD4M1 is on a X2X interface running 4000us. But the result is the same.

I made a profiler to check who’s taking my CPU! Result is a System Task “McBase_AXIS_GET_TRACE_DATA_1”:

This doesn’t happen on some PLC variable.

Versions:

  • AS6.7.0.187
  • AR 6.8.1
  • mappCockpit 6.8.1
  • mappMotion 6.8.1
  • mappView 6.8.1
  • mappService 6.8.0
  • X20SBD4M1: V1.2.1.2
  • MotorBLDC_any: V1.0.0.1

Anyone already encounter this type of CPU usage during tracing?

Regards,
Florent

Hi @florent.boissadier ,

Anyone already encounter this type of CPU usage during tracing?

to be honest when I do traces normally I don’t check cpu usage, but I see few customers have reported high cpu usage and mappCockpit.
MappCockpit R&D is working on that topic and I see improvements on version 6.9 not available for everyone at the moment.
Could you report the issue to our Support in France? It would be nice if R&D can reproduce your issue and see (I hope) improvements on the new release.

Small note: that internal system task has priority 90 so not super high (higher number higher priority).

Thanks
Ciao
Valerio

Hi @valerio.manenti

Thanks for this feedback!
Indeed I’m not usally checking CPU usage during trace, but in my case I saw that trace was taking too much time and also mappCockpit webpage goes in timeout, that’s why I start diag what’s happenning!

Yeah the system task hasn’t a big priority, that’s why I’m not understanding what’s happening ^^’

I’ll report this to my local support and update this post when I have more information!

Regards,
Florent

Just a quick update, after talking with my local support, I’ll wait for next version (6.9) to see if this is already solved.
In the meantime, I’ll try to trace on another Drive than the AcoposX2, to identify if it’s link to the mapp component or to the hardware drive component.

Hi @florent.boissadier ,
I’m so sorry but I didn’t read your post with attention!
We can’t compare ACOPOS P3 or ACOPOSmulti with ACOPOS X2. On ACOPOS X2, the setpoints are generated on the CPU and then sent to the drive through X2X.
I checked your settings with our motion expert in US and He recommended to reduce your X2X cycle time from 4 ms to 2 ms or 1.6 ms.
Below his settings:

Note: X2X cycle time has to be multiple of EPL cycle time!

Even with this settings He also said uploading trace data on ACOPOS X2 takes time.
Ciao
Valerio

Hi @valerio.manenti

Thanks for this, I’ll try to change the X2X cycle time to a lower value and ofc with a multiple of EPL!
Well in my case it takes time but also I’m not sure I trace the correct time window I want as for example with a 5s trace record configuration, I didn’t check exactly but it’s more about 30s delay before results are available ^^’

Just to add I may try some X20SM cards, to be on the X2X bus too. Last time I use one mappCockpit wasn’t here so I don’t know if it’s handle the same way than Acopos X2.
I just want to try to identify if it’s from software or a hardware ^^’

Hi @florent.boissadier ,
I don’t have ACOPOS X2 with me at the moment, but I think another settings could help your case:

Could you try to increase that default values? Same idea when you have SLX on your X2X network.

Ciao
Valerio

That’s a good point! I didn’t think about this, I’ll try!

Hello,

the trace upload from ACOPOS X2 has been optimized for mapp Motion V6.10 and will not consume the entire idle time anymore.

Unfortunately, in older versions, it is not possible to alter the behavior by changing any parameters. The upload background-job is quite low in priority, but still higher than the communication tasks for AS and mappCockpit, which can lead to temporary communication loss.

Thanks for this info!!