Hi,
I have this two dimensional array in main POU:
checked_options : ARRAY[1..200, 1..3] OF BOOL := [200(0),3(0)];
How can I send to my function block only one row from my array (in FB i would like to 1D ARRAY)in short notation ? checked_options[1,1] , checked_options[1,2] and checked_options[1,3] ....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have this two dimensional array in main POU:
checked_options : ARRAY[1..200, 1..3] OF BOOL := [200(0),3(0)];
How can I send to my function block only one row from my array (in FB i would like to 1D ARRAY)in short notation ? checked_options[1,1] , checked_options[1,2] and checked_options[1,3] ....
My FB:
In POU:
Is posssible in this way assign only one row to my FB instance ?
you could use the alternative syntax ARRAY OF ARRAY
FB:
POU:
I can't change 2D ARRAY. They are a data form SCADA. Too much work.
What do you think about below solution ?
FB:
POU:
For example, one of row (25) transfer to FB :
my_fb1 (pNumberChecked:= ADR(checked_options[25,0]))
will it work ?
My soultion:
POU: (one of them row) 27 for example:
my_fb1 (pNumberChecked:= ADR(checked_options[27,0 ]) );
FB: