How can we help you today?

Migration from Premium to M580 range : MOVE of Arrays with common registers issue

With Premium range, the copy/paste was done from the last byte to the first.

Example of a code to move an array of 10 words from %MW300 to %MW302 with premium

If MoveArrayTest then

Reset(MoveArrayTest);

%MW302 :10 :=%MW300 :10 ;

%MW300 :=0 ;

%MW301 :=0 ;

End_if;

This same code will not work on M580 range as the copy/paste is executed from the first byte to the last !

When you migrate from a Premium application, please make sure you do not have such codes inside as the result will not be the same in a M580 CPU.

For instance you can use a temporary array which has no common registers with the arrays you want to move , or you can use unlocated arrays.

Schneider Electric USA

Explore more

Discuss this topic with experts

Visit our community and get advice 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 Center

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