F_BA_MemSet

F_BA_MemSet 1:

The function F_BA_MemSet of return type UDINT describes the address range starting with pDestAddr with the value of a variable xValue of any type.

The function return value itself is assigned the result of the internal MEMCPY function, i.e. "0" for incorrect copying and values greater than "0" for the number of bytes copied.

Syntax

FUNCTION F_BA_MemSet : UDINT
VAR_INPUT
  pDestAddr    : PVOID;
  xValue       : ANY;
END_VAR

F_BA_MemSet 2: Inputs

Name

Type

Description

pDestAddr

PVOID

Destination address of the write operation.

xValue

ANY

Value to be written.

Requirements

Development environment

Required PLC library

TwinCAT 3.1 4024.35

Tc3_BA2_Common from V2.1.20.0