F_BA_StrCmp2L

F_BA_StrCmp2L 1:

The function F_BA_StrCmp2L compares two strings to determine if they are equal. The length parameters can be used to check only a specific section.

Syntax

FUNCTION F_BA_StrCmp2L : BOOL
VAR_INPUT
  sValue1 : POINTER TO STRING;
  nValue1 : UDINT := 0;
  sValue2 : POINTER TO STRING;
  nValue2 : UDINT := 0;
END_VAR

F_BA_StrCmp2L 2: Inputs

Name

Type

Description

sValue1

POINTER TO STRING

First string.

nValue1

UDINT

Length of the first string. If the value is 0, it is determined automatically.

sValue2

POINTER TO STRING

Second string.

nValue2

UDINT

Length of the second string. If the value is 0, it is determined automatically.