Features II JS/JSR4400N SCARA Robot
JSG GANTRY Robot
JR2000N Desktop Robot
34
String System Functions
The following string built-in functions can be used:
x, y: Numerical value or numerical variable
n, m: Numeric value becomes larger than a certain value through rounding or truncation
a, b: String or string variable
Type Identifier Description
str chr (x)
Return a string (1 character) with the given character code.
num ord (a) Return the top character code. Other codes are ignored.
num len (a) Return the string length (non-multibyte).
num strPos (a,b) Return the first part string position in a matching b.
str strMid (a,n,m) Return the strings n – m counted from the top of the given string a.
str str (x) Convert a numeric value to a decimal digit string.
str strBin (n,m)
Convert a numeric value to a binary string.
m: Number of binary string digits
str strHex (n,m)
Convert a numeric value to a hexadecimal string.
m: Number of hexadecimal string digits
str str1SI (x)
Round a numeric value to a 1-byte signed integer to convert it to a
1-byte string. (1-byte Signed Integer)
str str2SIBE (x)
Round a numeric value to a 2-byte signed integer to convert it to a
2-byte string using the Big Endian byte order. (2-byte Signed Integer
Big Endian)
str str2SILE (x)
Round a numeric value to a 2-byte signed integer to convert it to a
2-byte string using the Little Endian byte order. (2-byte Signed Integer
Little Endian)
str str4SIBE (x)
Round a numeric value to a 4-byte signed integer to convert it to a
4-byte string using the Big Endian byte order. (4-byte Signed Integer
Big Endian)
str str4SILE (x)
Round a numeric value to a 4-byte signed integer to convert it to a
4-byte string using the Little Endian byte order. (4-byte Signed Integer
Little Endian)
str str4FBE (x)
Regard a numeric value as a float to convert it to a 4-byte string using
the Big Endian byte order. (4-byte Signed Float Big Endian)
str str4FLE (x)
Regard a numeric value as a float to convert it to a 4-byte string using
the Little Endian byte order. (4-byte Signed Float Big Endian)
str str8DBE (x)
Regard a numeric value as a float to convert it to an 8-byte string using
the Big Endian byte order. (8-byte Signed Float Big Endian)
str str8DLE (x)
Regard a numeric value as a float to convert it to an 8-byte string using
the Little Endian byte order. (8-byte Signed Float Little Endian)
num val (a)
Regard a string as a decimal digit string to convert it to a numeric
value.
num valBin (a)
Regard a string as a binary string (sequence of “0”, “1”) to convert it to
a numeric value.