Browse FAQs

How do you initialize an Array of INT to a specific value using an Operate Block in Control Expert LD (formerly Unity Pro) ?

Published date: 30 April 2019

To set all the values in an 100 element Array of INT to "0", the Operate Block would use the following syntax.

MOVE_INT_ARINT(0, %MW2600:100);

With a slight modification of the syntax you can preset the array elements to a specific value.
For example if you wanted to preset all of the array elements to a value of "1", the syntax would appear as follows.

MOVE_INT_ARINT(1, %MW2600:100);

Note: In these examples the Array of INT is located at %MW2600 - %MW2699.


Legacy KB System (APS) Data: RESL201823 V1.0, Originally authored by DaSo on 03/30/2010, Last Edited by DaSo on 03/30/2010
Related ranges: Unity Pro

Was this helpful?

What can we do to improve the information ?

Can't find what you are looking for?

Reach out to our customer care team to receive information on technical support, assistance for complaints and more.