This function block can copy 4-byte 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_Byte1: BYTE;
Read_Byte2: BYTE;
Read_Byte3: BYTE;
Read_Byte4: BYTE;
END_VAR
VAR_OUTPUT
Copied_Byte1: BYTE;
Copied_Byte2: BYTE;
Copied_Byte3: BYTE;
Copied_Byte4: BYTE;
END_VAR