Can I load an array of 1900 alarms in a single scan using MpComConfigAdvanced?

Hi everyone,

I’m working with MpComConfigAdvanced to dynamically load alarms into a MpAlarmXListConfig structure. I already have an array of 1900 alarms (MpAlarmXCfgListAlarmType) fully prepared from an XML file.

I’m using:

Data := ADR(Alarm)

DataType := mpALARMX_CFG_ALARM

Path := ’ ’ (empty string)

WriteMode := mpCOM_CONFIG_WRITE_DEFAULT

However, only one alarm is loaded. If I use Data := ADR(Alarm[1]) (still with Path := ‘’), then alarm 1 is written correctly. But when I pass the full array (ADR(AlarmArray)), nothing is written.

According to the documentation, leaving the Path empty should allow writing the entire array at once. Is it possible to load all 1900 alarms in a single scan, or is an individual call per alarm required?

I’m using mapp Services version 6.3.3.

Thanks in advance.

Hello.
Topic resolved. I was able to successfully load the entire alarm array. Thanks to everyone who viewed the post!

1 Like