Hi
I'm having some problems comparing a string to an element from a Block_DB. My code look like this right now (I've removed some parts).
When I try to compile i get an error saying "Illegal parameter transfer". Does anyone know how to solve this?
Thanks
I'm having some problems comparing a string to an element from a Block_DB. My code look like this right now (I've removed some parts).
Code:
FUNCTION_BLOCK Recipe_handling
VAR
area_start : INT;
active_start : INT := 0;
END_VAR
VAR_INPUT
recipe : BLOCK_DB;
END_VAR
VAR_IN_OUT
article_nr : STRING[50];
END_VAR
BEGIN
WHILE EQ_STRNG(S1:=article_nr, S2:=REAL_TO_STRING(DWORD_TO_REAL(recipe.DD[area_start]))) DO
;
END_WHILE;
;
END_FUNCTION_BLOCK
When I try to compile i get an error saying "Illegal parameter transfer". Does anyone know how to solve this?
Thanks