Technical FAQs

Ask a Question

Nested call of functions can cause a wrong array handling with UnityPro V3.1

Goals and Symptoms

Nested call of Functions returning ANY_ARRAY_xxx to an input of type ANY tranfers only 2 bytes and not the complete array in UnityPro V3.1.
e.g.: IntArray10 := MOVE(StringToAscii('abcdefg'));
All programming languages are effected. See also attached list with examples of FB's which can cause this misbehaviour. The list is not complete.

Facts and Changes

UnityPro V3.1

Causes and Fixes

Do not use nested call of functions returning ANY_ARRAY_xxx to an input of type ANY with UnityPro V3.1. Also links between such FBs are not possible. In most other UnityPro versions you get an error message. Use temporary variables for Output / Input, if you need such a combination of FBs.

Was this helpful?
What can we do to improve the information ?