Hello gentlemen,
Why does this work:
And this doesn't work, I get the error :Initialisation of constant variable 'MOTOR_DATA_LOWER_BOUND ' not constant
What am I missing?
Thanks
Why does this work:
Code:
VAR CONSTANT
SIZE_OF_dutEVENT : UDINT := SIZEOF (DUT_Event);
MAX_SIZE_OF_dutEVENT : UDINT := 5;
NUMBER_OF_BYTES_FOR_ALL_dutEVENTS : UDINT := MAX_SIZE_OF_dutEVENT * SIZE_OF_dutEVENT;
END_VAR
Code:
MOTOR_DATA_LOWER_BOUND : DINT := LOWER_BOUND(ioaMotors,1);
Thanks