CODESYS - How to pass an array to F_ FB_ or M_ without knowing its size in the function itself
AT&U
0:00 / 0:00
CODESYS - How to pass an array to F_ FB_ or M_ without knowing its size in the function itself
4 593 просмотра · 4 г. назад
AT&U
676 подписчиков
4 593 просмотра · 4 г. назад
2 Ways how to pass an array to F_ FB_ or M_ without knowing its size in the F_ FB_ or M_
The bodies of the F_ are dummies and just fill the Arrays with the elements number.
I will create a video in which I'll pass an Array of Strings (List with program names) and create a sort function using the bubble sort method. A second method will filter the program names.
Tips:
Prefer the [*] operator over a pointer.
LOWER_BOUND = x & UPPER_BOUND = y in ARRAY [x...y] of Data Type.
You can pass a more dimensional array using the [*] operator