Wrap

Wrap 1:

Appends text to the end of the string currently being built with the String Builder.

The text to be added consists of the input variables sOpen, sText, and sClose, which are concatenated without any additional separators.

Syntax

VAR_INPUT
  sText         : T_MaxString;
  sOpen         : STRING := '(';
  sClose        : STRING := ')';
  bCondition    : BOOL := TRUE;
END_VAR

Wrap 2: Inputs

Name

Type

Description

sText

T_MaxString

Text to be added.

sOpen

STRING

Opening character inserted before sText.

sClose

STRING

The closing character that is inserted after sText.

bCondition

BOOL

An optional condition that must be met in order to execute the function.