BEGIN_RUNG
register int RLO1, RLO2;
/* BusBar Inited RLOs */
RLO1 = RLO2 = RLO;
/* BusBar */
BEGIN_BLOCK
/* 1. Direct Contact */
ACC_AND(RLO1, _op_op9F23C19D);
/* 2. Set Coil */
SET(RLO1, _op_op08576FC6[12]);
/* 3. Reset Coil */
RESET(RLO1, _op_op9F23C19D);
END_BLOCK
BEGIN_BLOCK
/* 4. Find in Array */
FIND_IN_ARRAY(RLO2, _op_op08576FC6, 20, 0, 1, _op_op7DDFD44C);
/* 5. Store */
_ERROR_IN_ELEMENT(Error in Element ID = 855f5872-dd58-4b3c-83cb-9ceac16033c3, Message = Error during operand compile )
END_BLOCK
/* End Junction */
END_RUNG
Can you see what I display here? Don't know another way to display.
I just want to store a certain value in an array by entering not a number but an integer between the [ ]
Maybe writing a UDFB could be the solution, but is it also possible for multiple arrays?