Hi
I am trying to crate a function that needs to join strings together but it wont comile. complaining about the CONCAT code, Illegal parameter assignment
I am trying to crate a function that needs to join strings together but it wont comile. complaining about the CONCAT code, Illegal parameter assignment
Code:
FUNCTION FC99 : VOID
VAR_TEMP
Day_str: STRING[3];
Day:INT;
END_VAR
VAR_OUTPUT
DateString : STRING[20] ;
END_VAR
BEGIN
//// assign some test data
Day_str:='' ; DateString :=''; Day := 5 ;
DateString := CONCAT(IN1:= INT_TO_STRING(Day) ,IN2:='/');
END_FUNCTION