F_ARGCPY
This function copies the value of a variable of type T_Arg into another variable and supplies the number of successfully copied data bytes as return parameter.
FUNCTION F_ARGCPY: UDINT
VAR_INPUT
VAR_INPUT
typeSafe : BOOL;
END_VAR
typeSafe: If TRUE => identical types can be compared (type-safe comparison). FALSE => different types can be compared (type-independent comparison).
VAR_IN_OUT
VAR_IN_OUT
dest : T_Arg;
src : T_Arg;
END_VAR
dest: Target variable for the copy operation (type: T_Arg).
src: Source variable for the copy operation (type: T_Arg).
Return parameter |
Meaning |
---|---|
0 |
Incorrect parameter values. Type, length or value of dest or src == 0 |
> 0 |
If successful, the number of bytes copied. |
Requirements
Development environment |
Target platform |
PLC libraries to be integrated (category group) |
---|---|---|
TwinCAT v3.1.0 |
PC or CX (x86, x64, ARM) |
Tc2_Utilities (System) |