F_ARGCPY

F_ARGCPY 1:

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.

F_ARGCPY 2: Return value

Name

Type

Description

F_ARGCPY

UDINT

 

F_ARGCPY 3: 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).

F_ARGCPY 4:/F_ARGCPY 5: 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)