How can we help you today?

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 New Zealand

Explore more

Discuss this topic with experts

Visit our Community for first-hand insights from experts and peers on this topic and more.

Explore more

Need help?

Product Selector

Quickly and easily find the right products and accessories for your applications.

Get a Quote

Start your sales inquiry online and an expert will connect with you.

Where to buy?

Easily find the nearest Schneider Electric distributor in your location.

Help Centre

Find support resources for all your needs, in one place.