CODESYS - How to pass an array to F_ FB_ or M_ without knowing its size in the function itself

AT&U
AT&U
3.5 هزار بار بازدید - 3 سال پیش - - 2 Ways how to
- 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
3 سال پیش در تاریخ 1400/08/06 منتشر شده است.
3,515 بـار بازدید شده
... بیشتر