Functions Syntax Result
type
Description
deg deg(rad) NUM Convert radians to degrees.
rad rad(deg) NUM Convert degrees to radians.
pow pow(x,y) NUM Calculate a to the power of b (x^y).
exp exp(x) NUM Calculate e to the power of x (e^x).
ln ln(x) NUM Calculate the natural logarithm of x.
log10 log10(x) NUM Calculate the logarithm of x (base 10).
7.7.8.5 String operators
Table 8: String operators
Operator Syntax Result
type
Description
"" "x" STR String representation.
.. x .. y STR Concatenation of strings x and y.
= x = y BOOL Check if two strings x and y are equal, with wildcard func‐
tionality.
7.7.8.6 String functions
Table 9: String functions
Function Syntax Result
type
Description
matches matches(str,
pat‐
tern,mode)
BOOL Check if a string matches a regular expression. The
mode variable can be set to "unicode" or "binary", the
default setting is "unicode".
hasSub‐
String
hasSub‐
string(str,sub
str)
BOOL Check if a string contains a substring. Case sensitive.
find find(str,sub‐
str)
NUM Check if a string contains a substring. Returns index of
the first character of a found substring. Case sensitive.
length length(str) NUM Calculate the length of a string in bytes.
substr sub‐
str(str,start,e
nd)
STR Get a substring from a string.
token token(str,d) Array Create an array of a string of tokens with delimiter d.
prefix pre‐
fix(str,filler,le
n)
STR Fill the beginning of a string with a filler character up to a
specified length.
postfix post‐
fix(str,filler,le
n)
STR Fill the end of a string with a filler character up to a spec‐
ified length.
roundToStr round‐
ToStr(num‐
ber,dec)
STR Convert a number to a string, with a given number of
decimals,
7.7.8.7 String wildcards
Table 10: String wildcards
Wildcard Syntax Description
* *S Any string precedes a certain string. Equal to regular expression
".*"
OPERATION 7
8021808/12ID/2019-01 | SICK O P E R A T I N G I N S T R U C T I O N S | TriSpector1000
49
Subject to change without notice