This function block can copy 4 string values. The copy/reset signal should come from the “normal” or “simple” PDA FBs.
VAR_INPUT CopyData: BOOL; (* Start signal to copy data *) ResetData: BOOL; (* Start signal to reset data *) Read_String1: STRING[40]; Read_String2: STRING[40]; Read_String3: STRING[40]; Read_String4: STRING[40]; END_VAR
VAR_OUTPUT Copied_String1: STRING[40]; Copied_String2: STRING[40]; Copied_String3: STRING[40]; Copied_String4: STRING[40]; END_VAR