Hi,
In Twincat3 x64 is it possible to get value of variable of which name is read from a string variable?
In Twincat3 x64 is it possible to get value of variable of which name is read from a string variable?
Code:
VAR
VAL1 :REAL:=555;
POINTER :STRING:= 'VAL1';
RESULT :REAL;
WORKS :BOOL;
END_VAR
<ST>
RESULT := GET_THE_VALUE(POINTER) // WE WANT THE VAL1 VALUE 555 SOMEHOW
IF RESULT == VAL1 THEN
WORKS := TRUE;
END_IF;
</ST>