I am trying to take several individual CHAR bytes and turn them into a string. The CHAR bytes are located in a DB. I am trying to figure out the syntax, so that I can have global access to the DB and use the memory addressing (DB700.DBB10) or symbolic addressing to access the different bytes of data that contain my CHAR's.
Then use those address's in the CONCAT function to form one long string of CHAR's.
What I am trying to do.
VAR_TEMP
COMPARE_STRING : STRING[14];
END_VAR
COMPARE_STRING := CONCAT(IN1 := DB700.DBB10, IN2 :=DB700.DBB11, IN3 := DB700.DBB13);
Then use those address's in the CONCAT function to form one long string of CHAR's.
What I am trying to do.
VAR_TEMP
COMPARE_STRING : STRING[14];
END_VAR
COMPARE_STRING := CONCAT(IN1 := DB700.DBB10, IN2 :=DB700.DBB11, IN3 := DB700.DBB13);