Hi,
I would appreciate if you could tell me if there is a way to synchronize a data array with two redundant AXC-F-3152. I only see FBs for synchronizing simple data (ASR_Data_x) but not for data arrays.
thanks
Hello Gati_1976,
Yes, I see that only the elementary data types are supported (except arrays).
If the array is small, you can assign the single values to array elements with the same datatype in a program (executed by ESM-Task).
Or/And you can provide the needed Requirement directly to the App Developer, please use the button „Contact Developer“ in PLCnext App Store: PLCnext Store | ASR AXC F 3152
image.png
BR Eduard
Dear Gati_1976,
The ASR library only provides data synchronization function blocks for elementary data types.
If you want to synchronize an Array, you can use an FOR loop. For example for an ArrayOfInt it would look as follows:
FOR iIndex := 1 TO 100 DO
ASR_Data_INT.iValue := arrData[iIndex];
ASR_Data_INT.udtSyncData := udtSyncData;
ASR_Data_INT();
END_FOR;
If you want to synchronize an ArrayOfStruct you could do this in a similar way by using several data synchronization function blocks within the FOR loop. At the following example “Element1” is of the data type “REAL” and “Element2” of the data type “INT”:
FOR iIndex := 1 TO 100 DO
ASR_Data_REAL.rValue := arrData[iIndex].Element1;
ASR_Data_REAL.udtSyncData := udtSyncData;
ASR_Data_REAL();
ASR_Data_INT.iValue := arrData[iIndex].Element2;
ASR_Data_INT.udtSyncData := udtSyncData;
ASR_Data_INT();
END_FOR;
Best regards
Friedrich