F_BA_StrSet2

F_BA_StrSet2 1:

The function F_BA_StrSet2 writes a string to a specified position in a target string. If necessary, the target string is then null-terminated.

Syntax

FUNCTION F_BA_StrSet2 : BOOL
VAR_INPUT
  sSrcString    : POINTER TO STRING;
  nSrcSize      : UDINT;
  sInsertString : POINTER TO STRING;
  nPos          : UDINT;
END_VAR

F_BA_StrSet2 2: Inputs

Name

Type

Description

sSrcString

POINTER TO STRING

Target string.

nSrcSize

UDINT

Size of the destination buffer.

sInsertString

POINTER TO STRING

String to be inserted.

nPos

UDINT

The position where the insertion will occur.