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.
Return value
Name | Type | Description |
---|---|---|
F_ARGCPY | UDINT |
|
Inputs
VAR_INPUT
typeSafe : BOOL;
END_VAR
Name | Type | Description |
---|---|---|
typeSafe | BOOL | If TRUE => identical types can be compared (type-safe comparison). FALSE => different types can be compared (type-independent comparison). |
/
Inputs/outputs
VAR_IN_OUT
dest : T_Arg;
src : T_Arg;
END_VAR
Name | Type | Description |
---|---|---|
dest | T_Arg | Target variable for the copy operation (type: T_Arg). |
src | T_Arg | 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) |