Data transfer within the PLC
826
Part III FP Instructions
Example
In this example the function has been programmed in ladder diagram (LD) and structured text
(ST).The same POU header is used for all programming languages.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
When the variable start is set to TRUE, the function is carried out.
LD
ST
When programming with structured text, enter the following:
IF start THEN
(* Copy the value 11 to data_array[3], *)
(* data_array[4] and data_array[5] *)
F11_COPY( s:= 11,
d1_Start=> data_array[3],
d2_End=> data_array[5]);
END_IF;