En quoi pouvons-nous vous aider aujourd'hui ?

Why does overlapping array copy behavior differ when migrating from Modicon Premium to Modicon M580?

Issue

An application migrated from Modicon Premium to Modicon M580 may produce a different result when copying data between overlapping memory areas.

For example:

IF MoveArrayTest THEN
Reset(MoveArrayTest);
%MW302 :10 := %MW300 :10;
%MW300 := 0;
%MW301 := 0;
END_IF;

In this example, the source area %MW300:10 and destination area %MW302:10 overlap.

The original application relies on the copy behavior of Modicon Premium. The same operation may produce a different result on Modicon M580 because the overlapping data is not copied in the same order.

Product Line

  • Modicon Premium
  • Modicon M580

Environment

Migration of an application from Modicon Premium to Modicon M580 containing assignments between overlapping memory areas.

Resolution

When migrating the application, identify assignments where the source and destination arrays use overlapping %MW addresses.

Do not rely on the original Modicon Premium copy order when implementing the same operation on Modicon M580.

Use an intermediate array that does not overlap with either the source or destination area.

Alternatively, consider using unlocated arrays when appropriate for the application.

Schneider Electric Belgium

En savoir plus

Gamme :

En savoir plus

Gamme :

Besoin d'aide ?

Sélectionnez le bon produit

Trouvez rapidement et facilement les produits et accessoires adaptés à vos applications.

Obtenir un devis

Effectuez une demande de renseignements en ligne et un expert vous contactera.

Où acheter ?

Trouvez facilement le distributeur Schneider Electric local le plus proche.

Centre d'aide

Trouvez des ressources de support pour tous vos besoins, en un seul endroit.