Below are the standard operators and functions that manage character strings:

Code

Operator / Function

+
CONCAT
MLENLEN
DELETE
INSERT
FIND
REPLACE
LEFT
RIGHT
MID
CHAR
ASCII
ATOH
HTOA
CRC16
ArrayToString
StringToArray

concatenation of strings
concatenation of strings
get string length
delete characters in a string
insert characters in a string
find characters in a string
replace characters in a string
extract a part of a string on the left
extract a part of a string on the right
extract a part of a string
build a single character string
get the ASCII code of a character within a string
converts string to integer using hexadecimal basis
converts integer to string using hexadecimal basis
CRC16 calculation
copies elements of an SINT array to a STRING
copies characters of a STRING to an SINT array

Other functions are available for managing string tables as resources:

Function

Description

StringTable
LoadString

Select the active string table resource
Load a string from the active string table

String operations

IEC 61131-3 Automation platform > Programming - Reference guide > String operations

Previous chapterNext chapter


Created with the Personal Edition of HelpNDoc: Make the switch to CHM with HelpNDoc's hassle-free WinHelp HLP to CHM conversion tool