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 successfull copied databytes as return value.

FUNCTION F_ARGCPY: UDINT

VAR_INPUT

VAR_INPUT
    typeSafe: BOOL;
END_VAR

typeSafe: If TRUE => Only equal types can be compared  (type safe compare). FALSE => Different types can be compared(type independent compare).

VAR_IN_OUT

VAR_IN_OUT
    dest : T_Arg;
    src : T_Arg;
END_VAR

dest: Target variable to be copied into.

src: Source variable to be copied.

Return parameter

Meaning

0

False parameter values, type, length, value of adest or src == 0

> 0

On success, the number of copied bytes

Requirements

Development Environment

Target System

PLC libraries to include

TwinCAT v2.10.0 Build >= 1326

PC or CX (x86, ARM)

TcUtilities.Lib